Jump to content
  • 0

Battle force bug fix


Question

Posted

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.

Recommended Posts

  • 0
Posted

Just when you are changing subclasses remove buffs,weapons.

dont work, i already have this...

 

Remove those skills from the NPCs (at least until you find a fix).

Remove skills...??

  • 0
Posted

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

  • 0
Posted

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?

  • 0
Posted

tested and working in my server 100+ :)

well did it exactly like the diff but its not working, are u sure u are doing the bug fine?

  • 0
Posted

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();
}

  • 0
Posted

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 :)

  • 0
Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...