PDA

View Full Version : [CacheD Interactive] PledgeChangeOwnerPacket


aralyon
08.07.2007, 22:28
Hi, does anyone have working PledgeChangeOwnerPacket on admin socket in CacheD? I use the code below and although I'm getting a success code, nothing happens. Did I do anything wrong?

$data = pack('cVV',37,$clanid,$rulerid);
$data.=$this->tounicode($this->signature);
$data = pack("v",strlen($data)+2).$data;
fwrite($this->sock,$data);

djvogans
09.07.2007, 04:05
//$command="37\t$pledge_name\t$owner\t0\t0\n";
//$command = pack( "c" , 37 ).pack( "i" , 1 ).pack( "i" , 304265 ).getUnicode( "zero" );
// $command = pack( "c" , 37 ).pack( "i" , $pledge_name ).pack( "i" , $char[char_id] ).getUnicode( "zero" );

Ra1n0
09.07.2007, 06:18
$data = pack('cVV',37,$clanid,$rulerid).$this->tounicode($this->signature);
fwrite($this->sock,pack("s",(strlen($data)+2)).$data);

aralyon
09.07.2007, 11:29
Hm, all of them are equivalent with my code - return success code but nothing happened

_Untitled
09.07.2007, 13:19
These functions don't work in C4 cached :
37 PledgeChangeOwnerPacket
38 PledgeDeletePacket

aralyon
09.07.2007, 20:03
These functions don't work in C4 cached :
37 PledgeChangeOwnerPacket
38 PledgeDeletePacket
Any equivalent functions to change clan leader?

m4rk
09.07.2007, 22:23
//reset_clan_leader ingame xD

~Marquis~
10.07.2007, 09:01
or a mssql request, but you gotta wait a server reboot if you want the clan leader to be changed.

djvogans
10.07.2007, 20:03
i use those and are working perfectly

FidoW
11.07.2007, 00:04
i use those and are working perfectly

How ? I just tried all permutations i can with char_name, char_id, pledge_id, pledge_name... nothing work, i always get error 24 or 04, encoding name as unicode even, nothing seens to work, i only get 01 response from cached using boths ids but have no effect...