Jump to content

Question

Posted

This is my cancellation return buffs.
Can anyone help me add a restriction so it doesn't work at the Olympiads?

 

  Reveal hidden contents

 

Recommended Posts

  • 0
Posted
  On 10/5/2019 at 8:25 AM, L2 TokTil said:

if ((_actor == null) || _actor.isDead() || _actor.isInOlympiadMode())

Expand  

its an option but not the best. RestoreBuf class shouldn't be called if the player is in oly.. so your restriction must be used in the other file

  • 0
Posted (edited)
  On 10/5/2019 at 9:02 AM, HARDECORE said:

excuse me. I am not a dev. Where can I find the code you asked for?

this is it?

olwzQQn.png

Expand  
-if (getEffected().isPlayable())
+if (getEffected() instanceof Player && !getEffected().getActingPlayer().isInOlympiadMode())

 

Edited by melron
  • 0
Posted

NOTE this code is abusable if not implemented correctly and provides about 5-7 exploits for players i think 2 was important for low rate servers but even for pvp servers is very buggy if you don't add restrictions

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock