Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.07.2007, 22:28   #1
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default [CacheD Interactive] PledgeChangeOwnerPacket

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?
PHP Code:
$data = pack('cVV',37,$clanid,$rulerid);
$data.=$this->tounicode($this->signature);
$data = pack("v",strlen($data)+2).$data;
fwrite($this->sock,$data); 
aralyon is offline  
Old 09.07.2007, 04:05   #2
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

//$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" );
djvogans is offline  
Old 09.07.2007, 06:18   #3
Ra1n0
Архивный участник
 
Join Date: Feb 2007
Posts: 139
Default

PHP Code:
$data = pack('cVV',37,$clanid,$rulerid).$this->tounicode($this->signature);
fwrite($this->sock,pack("s",(strlen($data)+2)).$data); 
Ra1n0 is offline  
Old 09.07.2007, 11:29   #4
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

Hm, all of them are equivalent with my code - return success code but nothing happened
aralyon is offline  
Old 09.07.2007, 13:19   #5
_Untitled
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

These functions don't work in C4 cached :
37 PledgeChangeOwnerPacket
38 PledgeDeletePacket
_Untitled is offline  
Old 09.07.2007, 20:03   #6
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

Quote:
Originally Posted by _Untitled View Post
These functions don't work in C4 cached :
37 PledgeChangeOwnerPacket
38 PledgeDeletePacket
Any equivalent functions to change clan leader?
aralyon is offline  
Old 09.07.2007, 22:23   #7
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

//reset_clan_leader ingame xD
m4rk is offline  
Old 10.07.2007, 09:01   #8
~Marquis~
Архивный участник
 
Join Date: Dec 2006
Posts: 252
Default

or a mssql request, but you gotta wait a server reboot if you want the clan leader to be changed.
~Marquis~ is offline  
Old 10.07.2007, 20:03   #9
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

i use those and are working perfectly
djvogans is offline  
Old 11.07.2007, 00:04   #10
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by djvogans View Post
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...
FidoW is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:52.