View Single Post
Old 02.05.2007, 12:37   #2
_Untitled
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

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);
        }
_Untitled is offline