Jump to content
  • 0

Help-skills cooltime


DnR

Question

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

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

on enter to server:

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

Link to comment
Share on other sites

  • 0

probably, you are adding it on EnterWorld

 

find

L2PcInstance activeChar = getClient().getActiveChar();

 

and make it like

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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...