Page 1 of 1

[help]attacker triggers onActionReq.() of attacked player ;S

Posted: Thu Oct 28, 2010 9:00 pm
by takhs7
L2J Revision Number: 4422
L2JDP Revision Number: 7669

hi, well i noticed that when a player attacks another player then it triggers the onActionRequest() of the attacked player (and the attacker's too obviously, that's normal).. and that causes the spawn/teleport protection of the attacked player to go off.. i think the same happens when a mob attacks(didnt test that tho).. so in other words.. spawn & tele. protection is totally not working.. with Debug = True the gameserver shows something like this.. "Spawn protection for player blabla removed by packet: [C] 04 Action"

uhh... help please.. as soon as u can ><!

Re: [help]attacker triggers onActionReq.() of attacked playe

Posted: Sat Mar 19, 2011 6:47 pm
by pipiou211
Well, as i saw on your server you have already fixxed it, but if someone still want it...

Code: Select all

  Index: C:/Users/George/Desktop/Lineage II Server Files/Workspace/L2Shadows_Gameserver/java/com/l2jserver/gameserver/network/clientpackets/L2GameClientPacket.java===================================================================--- C:/Users/George/Desktop/Lineage II Server Files/Workspace/L2Shadows_Gameserver/java/com/l2jserver/gameserver/network/clientpackets/L2GameClientPacket.java  (revision 4447)+++ C:/Users/George/Desktop/Lineage II Server Files/Workspace/L2Shadows_Gameserver/java/com/l2jserver/gameserver/network/clientpackets/L2GameClientPacket.java  (working copy)@@ -65,7 +65,7 @@             * Since GE: True for all packets             * except RequestItemList and UseItem (in case the item is a Scroll of Escape (736)             */-           if (triggersOnActionRequest())+           if (triggersOnActionRequest() && !(getType() == "[C] 04 Action"))            {                final L2PcInstance actor = getClient().getActiveChar();                if(actor != null && (actor.isSpawnProtected() || actor.isInvul())) 
I don't know if is there any bug, or something...