Skip to content

Debuff Duration

Featured Replies

How can I modify debuff duration in source ? I want to make example if the full duration like of hamstring is 12 seconds, but if target player bla bla bla, duration is reduced , 12/2=6 seconds. Cant find anything related with durations, so i need a help :/

Edited by lsj14

java/net/sf/l2j/gameserver/skills/DocumentBase.java

 

The method is called attachEffect()

  • Author

Oh yeah, i found that too, but it reads from xml, and i dont have idea how to make like player condition, example: if player (or target) == bla bla, duration = x. Simple help wouldbe very usefull for me :-)

Hi, everything is in Formulas.java or Skill.java, better use Formulas.java

 

calcEffectAbnormalTime - search in Formulas.java

 

Here you can edit Effect's time :)

still if it reads the example you can also make for the specific skill to be divided by 2

  • Author

Hi, everything is in Formulas.java or Skill.java, better use Formulas.java

 

calcEffectAbnormalTime - search in Formulas.java

 

Here you can edit Effect's time :)

Sorry, but there is nothing like that :/

Sorry, but there is nothing like that :/

I'm using L2J_Server - High Five, can you post in pastebin your all Formulas.java and L2Skill.java?

  • Author

Nevermind, managed to do it, thanks for the help, topic may be locked :)

Nevermind, managed to do it, thanks for the help, topic may be locked :)

Okay

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.