SaLeoTragem Posted May 29, 2009 Share Posted May 29, 2009 Index: java/net/sf/l2j/gameserver/model/L2Character.java =================================================================== --- java/net/sf/l2j/gameserver/model/L2Character.java (revision 1225) +++ java/net/sf/l2j/gameserver/model/L2Character.java (working copy) @@ -51,13 +51,17 @@ import net.sf.l2j.gameserver.model.L2Skill.SkillType; import net.sf.l2j.gameserver.model.actor.instance.L2ArtefactInstance; import net.sf.l2j.gameserver.model.actor.instance.L2BoatInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2ControlTowerInstance; import net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2GuardInstance; import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2SummonInstance; import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2RiftInvaderInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PetInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2SiegeGuardInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.SkillDat; import net.sf.l2j.gameserver.model.actor.knownlist.CharKnownList; import net.sf.l2j.gameserver.model.actor.knownlist.ObjectKnownList.KnownListAsynchronousUpdateTask; @@ -251,6 +255,11 @@ _calculators = new Calculator[stats.NUM_STATS]; Formulas.getInstance().addFuncsToNewCharacter(this); } + if (!(this instanceof L2PcInstance) && !(this instanceof L2MonsterInstance) && + !(this instanceof L2GuardInstance) && !(this instanceof L2SiegeGuardInstance) && + !(this instanceof L2ControlTowerInstance) && !(this instanceof L2SummonInstance) && + !(this instanceof L2DoorInstance)) + setIsInvul(true); } protected void initCharStatusUpdateValues() @@ -4613,7 +4622,7 @@ public boolean isInsidePeaceZone(L2Object attacker, L2Object target) { if (target == null) return false; - if (target instanceof L2MonsterInstance) return false; + if (target instanceof L2NpcInstance) return false; if (attacker instanceof L2MonsterInstance) return false; if (Config.ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE) { Credits : L2jForum Link to comment Share on other sites More sharing options...
eydie Posted May 19, 2010 Share Posted May 19, 2010 i will test it but thx :X Link to comment Share on other sites More sharing options...
xAddytzu Posted May 19, 2010 Share Posted May 19, 2010 i will test it but thx :X « on: May 29, 2009, 04:55:28 PM » ! Link to comment Share on other sites More sharing options...
sanyoo Posted May 19, 2010 Share Posted May 19, 2010 thnx..i was looking forward for something like that :P Link to comment Share on other sites More sharing options...
B1ggBoss Posted May 19, 2010 Share Posted May 19, 2010 seriously, that code its an example of what is NOT efficiency Link to comment Share on other sites More sharing options...
Recommended Posts