Nice share
Delete char packet supported .... hmm ....
Code:
function RestoreCharToAccount($char_id,$new_char_name,$account_id,$account_name) {
$buf = pack("c", 49);
$buf .= pack("V", $char_id);
$buf .= tounicode($new_char_name);
$buf .= pack("V", $account_id);
$buf .= tounicode($account_name);
$buf .= $this -> tounicode($this -> webadmin);
return $this -> CacheDInteractive($buf);
}
some func's
Code:
function AddHennaChar($char_id,$henna_id) {
$buf = pack("c", 72);
$buf .= pack("V", $char_id);
$buf .= pack("V", $henna_id);
$buf .= $this -> tounicode($this -> webadmin);
return $this -> CacheDInteractive($buf);
}
function DelHennaChar($char_id,$henna_id) {
$buf = pack("c", 71);
$buf .= pack("V", $char_id);
$buf .= pack("V", $henna_id);
$buf .= $this -> tounicode($this -> webadmin);
return $this -> CacheDInteractive($buf);
}
function SetQuestToChar($char_id,$quest_id,$queststate) {
$buf = pack("c", 10);
$buf .= pack("V", $char_id);
$buf .= pack("V", $quest_id);
$buf .= pack("V", $queststate);
$buf .= $this -> tounicode($this -> webadmin);
return $this -> CacheDInteractive($buf);
}
function DelQuestToChar($char_id,$quest_id) {
$buf = pack("c", 11);
$buf .= pack("V", $char_id);
$buf .= pack("V", $quest_id);
$buf .= $this -> tounicode($this -> webadmin);
return $this -> CacheDInteractive($buf);
}