~Ge0rge~ Posted December 5, 2010 Share Posted December 5, 2010 I Need a java code that tell players cant change subclass when they are combat or when they are on a party Link to comment Share on other sites More sharing options...
0 Rain^ Posted December 5, 2010 Share Posted December 5, 2010 L2PcInstance find addSubClass method and put below this: if(isInCombat()) return false; Link to comment Share on other sites More sharing options...
0 ~Ge0rge~ Posted December 5, 2010 Author Share Posted December 5, 2010 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 Link to comment Share on other sites More sharing options...
0 Rain^ Posted December 5, 2010 Share Posted December 5, 2010 can u give me exactly the line plz, and i want for change,not add then find ModifySubclass method omigod what line , ctrl + f and search >.> Link to comment Share on other sites More sharing options...
0 Akken Posted December 5, 2010 Share Posted December 5, 2010 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 More sharing options...
0 ~Ge0rge~ Posted December 5, 2010 Author Share Posted December 5, 2010 omg i cant,search for what?:S exactly....what :/ Link to comment Share on other sites More sharing options...
0 Akken Posted December 5, 2010 Share Posted December 5, 2010 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 More sharing options...
0 ~Ge0rge~ Posted December 5, 2010 Author Share Posted December 5, 2010 didnot work Link to comment Share on other sites More sharing options...
0 Akken Posted December 5, 2010 Share Posted December 5, 2010 :/ dn put it on l2villagemaster or put spaces on if(space) and the other Link to comment Share on other sites More sharing options...
0 ~Ge0rge~ Posted December 5, 2010 Author Share Posted December 5, 2010 :/ dn put it on l2villagemaster or put spaces on if(space) and the other yea man i compiled withour errors.it didnot work Link to comment Share on other sites More sharing options...
0 Akken Posted December 5, 2010 Share Posted December 5, 2010 yea man i compiled withour errors.it didnot work you confused me once y say without errors and then didnt work wtf? take a decision Link to comment Share on other sites More sharing options...
0 ~Ge0rge~ Posted December 5, 2010 Author Share Posted December 5, 2010 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 More sharing options...
0 Akken Posted December 5, 2010 Share Posted December 5, 2010 then put it on changeSubclass method :D on l2pcinstance Link to comment Share on other sites More sharing options...
0 ~Ge0rge~ Posted December 5, 2010 Author Share Posted December 5, 2010 then put it on changeSubclass method :D on l2pcinstance pf...i cant find it :S tell me where exactly is xD.for example give me the line Link to comment Share on other sites More sharing options...
0 Akken Posted December 5, 2010 Share Posted December 5, 2010 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 More sharing options...
0 ~Ge0rge~ Posted December 5, 2010 Author Share Posted December 5, 2010 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 More sharing options...
Question
~Ge0rge~
I Need a java code that tell players cant change subclass when they are combat or when they are on a party
Link to comment
Share on other sites
26 answers to this question
Recommended Posts