Jump to content

Recommended Posts

Posted

Properties:

+# Defines whether NPCs are attackable by default
+# Retail: False
+AltAttackableNpcs = False 

 

Config.java

@@ -857,4 +857,5 @@
     public static boolean L2JMOD_WEDDING_FORMALWEAR;
     public static int     L2JMOD_WEDDING_DIVORCE_COSTS;

+    public static boolean   ALT_ATTACKABLE_NPCS; 

    /** Ilegal Skills Checker */ 
     public static boolean            CHECK_SKILLS_ON_ENTER; 
@@ -2098,7 +2099,8 @@
                 L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));

+                ALT_ATTACKABLE_NPCS                     = Boolean.parseBoolean(L2JModSettings.getProperty("AltAttackableNpcs", "False"));

                 CHECK_SKILLS_ON_ENTER                   = Boolean.parseBoolean(L2JModSettings.getProperty("CheckSkillsOnEnter", "False")); 
         ALLOWED_SKILLS                          = L2JModSettings.getProperty("AllowedSkills", "541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,617,618,619"); 

 

L2NpcInstance.java

@@ -324,5 +324,5 @@
	public boolean isAttackable()
     {
-        return false;
+        return Config.ALT_ATTACKABLE_NPCS;
     }

Posted

alredy shared, and ur code is kinda lame :P ur making npcs attackable but they wont be able to be done with forced attack if their in peace zone or general, also no skills too :P

 

 

credits for an boolean ? :D

 

 

P.W.N

  • 1 month later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...