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.


  • Posts

    • @Maxtor @Celestine @Atom  why not block this gypsy?
    • We appreciate your feedback and want to make the service even better! If you have used our services and are ready to share your experience (any — positive or constructive), leave a review on Trustpilot and receive $1 as a thank-you. Link: https://www.trustpilot.com/review/socnet.pro How to receive the bonus: 1. Go to Trustpilot and leave your review 2. Send us a screenshot confirming the publication and a screenshot of your authorized account with the username matching the review. 3. Specify which store should receive the $1 bonus. Depending on the store, your username/email may be required. Your feedback helps us grow and makes the project better for every community member. Thank you for staying with us! Terms: The promotion applies to one unique user. Multi-accounting is not allowed. Active project links: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the template “SEND ME BONUS, MY USERNAME IS...” — you must post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • We appreciate your feedback and want to make the service even better! If you have used our services and are ready to share your experience (any — positive or constructive), leave a review on Trustpilot and receive $1 as a thank-you. Link: https://www.trustpilot.com/review/socnet.pro How to receive the bonus: 1. Go to Trustpilot and leave your review 2. Send us a screenshot confirming the publication and a screenshot of your authorized account with the username matching the review. 3. Specify which store should receive the $1 bonus. Depending on the store, your username/email may be required. Your feedback helps us grow and makes the project better for every community member. Thank you for staying with us! Terms: The promotion applies to one unique user. Multi-accounting is not allowed. Active project links: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the template “SEND ME BONUS, MY USERNAME IS...” — you must post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • We appreciate your feedback and want to make the service even better! If you have used our services and are ready to share your experience (any — positive or constructive), leave a review on Trustpilot and receive $1 as a thank-you. Link: https://www.trustpilot.com/review/socnet.pro How to receive the bonus: 1. Go to Trustpilot and leave your review 2. Send us a screenshot confirming the publication and a screenshot of your authorized account with the username matching the review. 3. Specify which store should receive the $1 bonus. Depending on the store, your username/email may be required. Your feedback helps us grow and makes the project better for every community member. Thank you for staying with us! Terms: The promotion applies to one unique user. Multi-accounting is not allowed. Active project links: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the template “SEND ME BONUS, MY USERNAME IS...” — you must post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • We appreciate your feedback and want to make the service even better! If you have used our services and are ready to share your experience (any — positive or constructive), leave a review on Trustpilot and receive $1 as a thank-you. Link: https://www.trustpilot.com/review/socnet.pro How to receive the bonus: 1. Go to Trustpilot and leave your review 2. Send us a screenshot confirming the publication and a screenshot of your authorized account with the username matching the review. 3. Specify which store should receive the $1 bonus. Depending on the store, your username/email may be required. Your feedback helps us grow and makes the project better for every community member. Thank you for staying with us! Terms: The promotion applies to one unique user. Multi-accounting is not allowed. Active project links: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the template “SEND ME BONUS, MY USERNAME IS...” — you must post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • 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