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 ><!
[help]attacker triggers onActionReq.() of attacked player ;S
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 110
- Joined: Sun Aug 31, 2008 7:16 am
-
- Posts: 3
- Joined: Thu Feb 18, 2010 11:06 pm
Re: [help]attacker triggers onActionReq.() of attacked playe
Well, as i saw on your server you have already fixxed it, but if someone still want it...
I don't know if is there any bug, or something...
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()))