Page 1 of 1

Heal.java gone - help?

Posted: Thu Jun 18, 2009 8:17 am
by Yuki
Hello everyone,

I've been using this fix that someone contributed here on the forums

Code: Select all

 Index: java/net/sf/l2j/gameserver/handler/skillhandlers/Heal.java===================================================================--- java/net/sf/l2j/gameserver/handler/skillhandlers/Heal.java  (revision 2123)+++ java/net/sf/l2j/gameserver/handler/skillhandlers/Heal.java  (working copy)@@ -25,6 +25,7 @@ import net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance; import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;+import net.sf.l2j.gameserver.model.actor.instance.L2RaidBossInstance; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.serverpackets.StatusUpdate; import net.sf.l2j.gameserver.serverpackets.SystemMessage;@@ -142,6 +143,8 @@             // Healer proficiency (since CT1)             hp *= activeChar.calcStat(Stats.HEAL_PROFICIENCY, 100, null, null) / 100; +       if(target.isRaid())+       hp = 0;        target.setCurrentHp(hp + target.getCurrentHp());        target.setLastHealAmount((int)hp);        StatusUpdate su = new StatusUpdate(target.getObjectId()); 
But now since Heal.java is gone, what should I do? Is there any way I could make this work, I need that heals skill won't heal raidbosses and grandbosses...

Thanks.

Re: Heal.java gone - help?

Posted: Thu Jun 18, 2009 8:28 am
by janiii
Heal.java is not gone, it is only moved to datapack/data/scripts/handlers/skillshandlers/Heal.java

Re: Heal.java gone - help?

Posted: Thu Jun 18, 2009 8:40 am
by Yuki
Thank you, found it... I did only search on the gameserver folder ^^.

Re: Heal.java gone - help?

Posted: Thu Jun 18, 2009 8:43 am
by momo61
can we just add those lines of codes to prevent raidboss healing ? :O

Re: Heal.java gone - help?

Posted: Thu Jun 18, 2009 1:13 pm
by vaderek
with a config option maybe? i mean, raid-healing was off-like i thought?

Re: Heal.java gone - help?

Posted: Thu Jun 18, 2009 1:21 pm
by janiii
vaderek wrote:with a config option maybe? i mean, raid-healing was off-like i thought?
maybe healing a RB by a player is retail-like, but a minion or RB himself can still heal RB, or? so there would be another check needed - if a player healing rb then 0 hp else fine.

Re: Heal.java gone - help?

Posted: Thu Jun 18, 2009 1:34 pm
by vaderek
good point, i must admit i dont know whether this code concerns the healing of npc by npc; but ant queen wouldnt be the same w/o it ;P