Jump to content
  • 0

[REQUEST]JAVA CODE


~Ge0rge~

Question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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;

Link to comment
Share on other sites

  • 0

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;
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...