Jump to content
  • 0

[Help]Big Problem with the subclass


Banana007

Question

Hello,

I work on an interlude l2j datapack. My problem is that when a char change subclass it keeps the buffs from the previous class, that means that anyone can stuck skill such as spell/battle force and touch of life.

I searched a bit on the L2PcInstance but i counldn't solve the problem. If anyone know how to make it removing all the effects while changing subclass please tell me

Thanks!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

whe i had my server up, i did some changes in skills.xml i added a line like this <name="stayAfterDead" val="true" /> i dont remember the correct syntax, check if u have this in ur skills.xml :D

 

PD: yes "stayAfterDead" mean, the buff will stay if u die, but when u change subclass the buff stay too like u where died.

 

my english sucks, i know!!! and i am happy iohoo, i dont like english teachers!!! and i do my best whit traslators or typing words as hell

Link to comment
Share on other sites

  • 0

look since many datapacks has this mode(remove effect on subclass) there should be a java code on the file L2PcInstance. That's why I am asking. I need the code..

If anyone knows the code please tell me!

Link to comment
Share on other sites

  • 0
Index: /trunk/L2JRok-Game/src/main/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /trunk/L2JRok-Game/src/main/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 175)
+++ /trunk/L2JRok-Game/src/main/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 177)
@@ -8738,5 +8738,5 @@
         regiveTemporarySkills();
         rewardSkills();
-        restoreEffects();
+        //restoreEffects();
         sendPacket(new EtcStatusUpdate(this));
         

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
    • 用于解密、加密和编辑 .u 文件的工具。
    • It's always awesome when you find someone who not only delivers great quality but also does it way ahead of schedule. Makes you feel like you hit the jackpot, right? I'm new around here, just stumbled upon this forum, and seeing posts like yours really gives me hope that there are some real pros hanging out in this community.
    • Dear friends! We have good news to announce that the server that will open in June 1 will be the Main server and every 4 months we will make another season server and integrate ( merge ) it into the main that will always be open..  
  • Topics

×
×
  • Create New...