Jump to content
  • 0

Battle force bug fix


Gxz

Question

hello guys, there is a bug when you battle force another player and he make subclass and then he go back to the class the other player made battle force, battle force stays there.. how to fix it? i already tried this fix http://www.maxcheaters.com/forum/index.php?topic=70765.0  not working, i have interlude l2j server.

Link to comment
Share on other sites

Recommended Posts

  • 0

L2VillageMasterInstance.java

 

               case 5: // Change Class - Action

                   /*

                    * If the character is less than level 75 on any of their previously chosen

                    * classes then disallow them to change to their most recently added sub-class choice.

                    *

                    * Note: paramOne = classIndex

                    */

 

                   if (Olympiad.getInstance().isRegisteredInComp(player) || player.getOlympiadGameId() > 0)

                   {

                       player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_ALREADY_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_AN_EVENT));

                       return;

                   }

 

                   player.setActiveClass(paramOne);

+                    player.stopSkillEffects(FORCE SKILL ID);

+                    player.stopSkillEffects(SPELLF SKILL ID);

                   content.append("Change Subclass:<br>Your active sub class is now a <font color=\"LEVEL\">"+ CharTemplateTable.getClassNameById(player.getActiveClass()) + "</font>.");

                                 

                   player.sendPacket(new SystemMessage(SystemMessageId.SUBCLASS_TRANSFER_COMPLETED)); // Transfer completed.

                   break;

 

maybe it work :D

Link to comment
Share on other sites

  • 0

L2VillageMasterInstance.java

 

                case 5: // Change Class - Action

                    /*

                    * If the character is less than level 75 on any of their previously chosen

                    * classes then disallow them to change to their most recently added sub-class choice.

                    *

                    * Note: paramOne = classIndex

                    */

 

                    if (Olympiad.getInstance().isRegisteredInComp(player) || player.getOlympiadGameId() > 0)

                    {

                        player.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_ALREADY_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_AN_EVENT));

                        return;

                    }

 

                    player.setActiveClass(paramOne);

+                    player.stopSkillEffects(FORCE SKILL ID);

+                    player.stopSkillEffects(SPELLF SKILL ID);

                    content.append("Change Subclass:<br>Your active sub class is now a <font color=\"LEVEL\">"+ CharTemplateTable.getClassNameById(player.getActiveClass()) + "</font>.");

                                 

                    player.sendPacket(new SystemMessage(SystemMessageId.SUBCLASS_TRANSFER_COMPLETED)); // Transfer completed.

                    break;

 

maybe it work :D

not working, any other ideas?

Link to comment
Share on other sites

  • 0

find this in L2VillageMasterInstance.java :

player.sendPacket(new SystemMessage(SystemMessageId.SUBCLASS_TRANSFER_COMPLETED));

 

and put above:

if (player.getFirstEffect(426) != null || player.getFirstEffect(427) != null) {
   player.stopSkillEffects(426);
   player.stopSkillEffects(427);
    player.updateEffectIcons();
   player.broadcastUserInfo();
}

Link to comment
Share on other sites

  • 0

find this in L2VillageMasterInstance.java :

player.sendPacket(new SystemMessage(SystemMessageId.SUBCLASS_TRANSFER_COMPLETED));

 

and put above:

if (player.getFirstEffect(426) != null || player.getFirstEffect(427) != null) {
    player.stopSkillEffects(426);
    player.stopSkillEffects(427);
    player.updateEffectIcons();
    player.broadcastUserInfo();
}

same shit but you don't need for check if != null :)

Link to comment
Share on other sites

  • 0

find this in L2VillageMasterInstance.java :

player.sendPacket(new SystemMessage(SystemMessageId.SUBCLASS_TRANSFER_COMPLETED));

 

and put above:

if (player.getFirstEffect(426) != null || player.getFirstEffect(427) != null) {
    player.stopSkillEffects(426);
    player.stopSkillEffects(427);
    player.updateEffectIcons();
    player.broadcastUserInfo();
}

not working

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock