Skip to content

Magic Reuse

Featured Replies

Help please.

I want make magic reuse, depending on cast.

In L2Character.java

// Init the reuse time of the skill

int reuseDelay;

 

if (skill.isStaticReuse())

{

reuseDelay = (skill.getReuseDelay());

}

else

{

if (skill.isMagic())

{

                reuseDelay = (int)(skill.getReuseDelay() * getStat().getMReuseRate(skill)*(double)(getMAtkSpd()/1000));

}

else

{

reuseDelay = (int) (skill.getReuseDelay() * getStat().getPReuseRate(skill));

}

}

This method.

Repeir please.

Magic re-use depend to casting speed if u have low casting u have low re-use dude... at all clients..

Else it's defined in skills .xml <set name="staticReuse" val="true"/>

Create an account or sign in to comment

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.