Jump to content
  • 0

Help-skills cooltime


Question

Posted

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...

 

5 answers to this question

Recommended Posts

  • 0
Posted

on enter to server:

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

  • 0
Posted

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

hm?

  • 0
Posted

probably, you are adding it on EnterWorld

 

find

L2PcInstance activeChar = getClient().getActiveChar();

 

and make it like

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

 

Guest
This topic is now closed to further replies.


×
×
  • Create New...