Openkore.com

OpenKore Forums
It is currently 18 Nov 2018, 02:32

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: src/Network/Receive/kRO/Sakexe_0.pm::party_join()
PostPosted: 05 Nov 2013, 20:22 
Offline
Noob
Noob

Joined: 01 Nov 2013, 17:47
Posts: 7
After my bot started to spam "Party EXP set to Even Share" every time a party member was on another map, I started to follow code paths. It lead me to Sakexe_0::party_join(), which ends (unconditionally) in:

Code:
   if ($config{partyAutoShare} && $char->{party} && $char->{party}{users}{$accountID}{admin}) {
      $messageSender->sendPartyOption(1, 0);
   }
}


So every packet 0x01E9 triggers the bot to (re-)set exp sharing. Looks right, but it seems 0x01E9 is received much more often than on a real join. About on every move a party member makes on another map?

So I dumped the packets and looked them over. At first glance it seems $type is 1 on map changes and teleport, and it is 0 on move. (I did not check a real party join.) I had to guess, because I could not find any docs on it. So does anyone know what the values for $type are?

If my guess is right, this would be a valid fix:

Code:
   if ($config{partyAutoShare} && $char->{party} && $char->{party}{users}{$accountID}{admin} && $type) {
      $messageSender->sendPartyOption(1, 0);
   }
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group