Kara Posted October 4, 2018 Share Posted October 4, 2018 (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 October 4, 2018 by Kara` Quote Link to comment Share on other sites More sharing options...
xxdem Posted October 4, 2018 Share Posted October 4, 2018 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 Quote Link to comment Share on other sites More sharing options...
Kara Posted October 4, 2018 Author Share Posted October 4, 2018 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. Quote Link to comment Share on other sites More sharing options...
Pamela32 Posted October 4, 2018 Share Posted October 4, 2018 thanks a lot for this share , i will use it at future for sure ! <3 1 1 Quote Link to comment Share on other sites More sharing options...
xrhstos1994 Posted November 30, 2018 Share Posted November 30, 2018 i have errors . i use l2jacis pack . you can help me Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.