This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
tomy123
how i can make like this http://www.maxcheaters.com/forum/index.php?topic=61184.0
on eclipse need find this java/net/sf/l2j/gameserver/model/L2Character.java
all delete from L2Character.java or anywher copy this?
--- 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)
{
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now