Skip to content

Help-skills cooltime

Featured Replies

Hi guys,

I need a code to add reuse time to all character's skills(like they were used that moment) when he logs in.

I tried something but it permanently disabled skills.

I guess i have to include timestamp but i get errors all the time...

 

on enter to server:

activeChar.disableAllSkills();
long delay = 60000; //in millis
ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
{
@Override
public void run()
{
	activeChar.enableAllSkills();
}
}, delay);

  • Author

local variable activeChar is accessed from within inner class; needs to be declared final

hm?

probably, you are adding it on EnterWorld

 

find

L2PcInstance activeChar = getClient().getActiveChar();

 

and make it like

final L2PcInstance activeChar = getClient().getActiveChar();

 

  • Author

Thanks a lot B1ggBoss!

You are the only one who could handle this here ;P

Problem solved so locked.

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.