Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 131)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -601,6 +601,7 @@
- /** Buffs */
- public static boolean STORE_SKILL_COOLTIME;
- public static boolean EXPERTISE_PENALTY;
- + public static boolean NPC_ATTACKABLE;
- public static int BUFFS_MAX_AMOUNT;
- // --------------------------------------------------
- @@ -1428,6 +1429,7 @@
- BUFFS_MAX_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
- STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
- EXPERTISE_PENALTY = players.getProperty("ExpertisePenality", true);
- + NPC_ATTACKABLE = players.getProperty("NpcAttackable", false);
- // server
- ExProperties server = load(SERVER_FILE);
- Index: java/net/sf/l2j/gameserver/model/actor/L2Npc.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/L2Npc.java (revision 129)
- +++ java/net/sf/l2j/gameserver/model/actor/L2Npc.java (working copy)
- @@ -303,7 +303,10 @@
- @Override
- public boolean isAttackable()
- {
- - return true;
- + if (Config.NPC_ATTACKABLE || this instanceof L2Attackable)
- + return true;
- +
- + return false;
- }
- /**
- Index: java/net/sf/l2j/gameserver/model/actor/L2Character.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/L2Character.java (revision 129)
- +++ java/net/sf/l2j/gameserver/model/actor/L2Character.java (working copy)
- @@ -233,6 +233,11 @@
- for (L2Skill skill : getAllSkills())
- addStatFuncs(skill.getStatFuncs(this));
- }
- +
- + if (!Config.NPC_ATTACKABLE || !(this instanceof L2Attackable))
- + {
- + setIsInvul(true);
- + }
- }
- }
- Index: config/players.properties
- ===================================================================
- --- config/players.properties (revision 131)
- +++ config/players.properties (working copy)
- @@ -314,3 +314,8 @@
- # False: Players can use equip S grade at level 1.
- # True: Players can't use equip S grade at level 1.
- ExpertisePenality= False
- +
- +# Npc Attackable
- +# True: You can attack Npcs
- +# False: Npc/Mobs don't take damages
- +NpcAttackable = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement