Jump to content

Recommended Posts

Posted

Saves all active toggle skills from player and it restores them back on revive.  Ideal for a pvp zone or in general if u want to.

 

//To save player effects (onDie) 
RestoreEffectsManager.getInstance().savePlayerEffects(player);
//To Restore player effects (onRevive)
RestoreEffectsManager.getInstance().restorePlayerEffects(player);

 

Video

 

pastebin pass: maxcheaters

RestoreEffects.java

RestoreEffectsManager.java

  • Like 1
Posted
On 2/14/2023 at 1:39 PM, LordPanic said:

Saves all active toggle skills from player and it restores them back on revive.  Ideal for a pvp zone or in general if u want to.

 

//To save player effects (onDie) 
RestoreEffectsManager.getInstance().savePlayerEffects(player);
//To Restore player effects (onRevive)
RestoreEffectsManager.getInstance().restorePlayerEffects(player);

 

Video

 

pastebin pass: maxcheaters

RestoreEffects.java

RestoreEffectsManager.java

 

I updated for you Restore Effects toggle by LordPanic (github.com)

Posted

Use computeIfAbsent() to avoid creating empty effect maps for players with no effects.
Use Entry in the forEach() loop instead of two parameters.

  • 1 year later...
Posted
On 2/14/2023 at 1:39 PM, LordPanic said:

Saves all active toggle skills from player and it restores them back on revive.  Ideal for a pvp zone or in general if u want to.

 

//To save player effects (onDie) 
RestoreEffectsManager.getInstance().savePlayerEffects(player);
//To Restore player effects (onRevive)
RestoreEffectsManager.getInstance().restorePlayerEffects(player);

 

Video

 

pastebin pass: maxcheaters

RestoreEffects.java

RestoreEffectsManager.java

Does it work on L2JSunrise H5?

Can anyone help me adapt?

  • 1 month later...

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
Reply to this topic...

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