View Single Post
Old 06.04.2007, 21:58   #22
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by SilverCloud View Post
These commands are only available when the character is offline right? If so, thats too bad.. I was about to create an auction site (php). Second, is it possible to check if a char is online?
You can check if player is online with this function...
PHP Code:
#1 CheckCharacterPacket("dS")
function CheckCharacterPacket($char_id) {
    
$buf = pack("c", 1);
    
$buf .= pack("i", $char_id);
    return 
CacheDInteractive($buf);
} 

But always you can kick him first and problem solved.
PHP Code:
#5 KickCharacterPacket("dS")
function KickCharacterPacket($char_id) {
    
$buf = pack("c", 5);
    
$buf .= pack("i", $char_id);
    return 
CacheDInteractive($buf);
} 
FidoW is offline