Jump to content
  • 0

DecayTaskManager: how get the summom max time life.


everest-rj

Question

I changed the scrollofresurrection.java to allow ress summons too. after ress the summon i cancel the decay task ...

 

DecayTaskManager.getInstance().cancelDecayTask(targetSummon);

 

Now the summuon is alive but your green bar or life time not reduce, so i do ...

 

DecayTaskManager.getInstance().addDecayTask(targetSummon,3600000); //1hour for decaytime

 

but i no want type 3600000 i want get the real or the max decay time configured for this summon.

 

thks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

did it

 

DecayTaskManager.getInstance().addDecayTask(targetSummon,targetSummon.getTimeRemaining());

//not de max time, i changed for 'time remaining' is better for me.

 

i ress the summon and your your green bar decrase normal but no consume any crystals per interval of time.. some clues?

 

EDITED: After ress the summon he no run and no follow the master i try...

 

targetSummon.stopMove(null, true);

targetSummon.followOwner();

 

but dont work

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...