Jump to content
  • 0

[REQUEST]JAVA CODE


Question

Recommended Posts

  • 0
Posted

L2PcInstance find addSubClass method and put below

this:

    if(isInCombat())

    return false;

can u give me exactly the line plz, and i want for change,not add
  • 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...