Jump to content

Recommended Posts

Posted (edited)

A code i wrote for healers to receive pvp upon heal.

 

https://pastebin.com/Ewgb6uv8

 

2 Things to adjust:

 

1. The method that calculate if healer has heal enough ( hasHealEnough ). I did the "calculate" randomly. Make it as you want base on levels or fixed heal value

2. Add the addHeal method to your Heal.java or whatever file your project has. And add the healerId of the healer who healed you.

Edited by Kara`
Posted
Quote

_healerInfo.stream().filter(i -> i.hasHealEnough()).filter(i -> i.isCloseTo(this)).forEach(i ->

 

very slow

 

.. 

 

Instead of giving just +1 at _pvpKills, you should run the entire increasePvPKills function and bypass the recursion, only then it will be a real PvP assist

Posted
33 minutes ago, xxdem said:

 

very slow

 

.. 

 

Instead of giving just +1 at _pvpKills, you should run the entire increasePvPKills function and bypass the recursion, only then it will be a real PvP assist

 

Tell that to elfo who used the same thing on a threadpool each second for handle fake objects.

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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