Jump to content
  • 0

[REQUEST]JAVA CODE


Question

Recommended Posts

  • 0
Posted

public boolean addSubClass(int classId, int classIndex)
   {
   	if (getTotalSubClasses() == 3 || classIndex == 0)
   		return false;

   	if (getSubClasses().containsKey(classIndex))
   		return false;
+
+       if(isInCombat())
+   	    return false;
+
+        if(isInParty())
+        	return false;

on l2pcinstance

  • 0
Posted

public boolean addSubClass(int classId, int classIndex)
    {
    	if (getTotalSubClasses() == 3 || classIndex == 0)
    		return false;

    	if (getSubClasses().containsKey(classIndex))
    		return false;
+
+       if(isInCombat())
+   	    return false;
+
+        if(isInParty())
+        	return false;

on l2pcinstance

  • 0
Posted

you confused me once y say without errors and then didnt work wtf? take a decision

yes man i compipled it ok. but id has not affect in game..(only in add subclass).

i want on change subclass.

  • 0
Posted

i am not 100% sure that it will work but try it

ON L2VILLAGEMASTER.JAVA

case 3: // Change/Cancel Subclass - Initial
                    content.append("Change Subclass:<br>Which of the following sub classes would you like to change?<br>");
                    int classIndex = 1;
                    
+                           if(isInCombat())
+                    	   	    return false;
+                    	
+                    	        if(isInParty())
+                    	        	return false;

  • 0
Posted

i am not 100% sure that it will work but try it

ON L2VILLAGEMASTER.JAVA

case 3: // Change/Cancel Subclass - Initial
                    content.append("Change Subclass:<br>Which of the following sub classes would you like to change?<br>");
                    int classIndex = 1;
                    
+                           if(isInCombat())
+                    	   	    return false;
+                    	
+                    	        if(isInParty())
+                    	        	return false;

error on return false;
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

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..