prostylw1 Posted January 14, 2021 Posted January 14, 2021 I have add this in heal.java but you can heal raidboss and grandboss where is my mistake ? please help rev382
0 prostylw1 Posted January 14, 2021 Author Posted January 14, 2021 (edited) Problem Solved the java file was HealPercent.java and not Heal.java Edited January 14, 2021 by prostylw1
0 Zake Posted January 14, 2021 Posted January 14, 2021 (edited) The method you are looking for is Player#checkDoCastConditions. Although this works too, players can cast the spell but it won't heal the boss Edited January 14, 2021 by Zake
0 scraw Posted January 14, 2021 Posted January 14, 2021 (edited) 5 hours ago, prostylw1 said: I have add this in heal.java but you can heal raidboss and grandboss where is my mistake ? please help rev382 Heal.java: if(!Config.PLAYERS_CAN_HEAL_RB && !activeChar.isGM() && target instanceof L2MonsterInstance) { activeChar.sendPacket(ActionFailed.STATIC_PACKET); continue; } or try this : + if (target instanceof L2RaidBossInstance) + continue; + if (target instanceof L2GrandBossInstance) + continue; // Player holding a cursed weapon can't be healed and can't heal +if (target instance of L2MonsterInstance) +continue; Edited January 14, 2021 by scraw
Question
prostylw1
I have add this in heal.java but you can heal raidboss and grandboss where is my mistake ? please help
rev382
4 answers to this question
Recommended Posts