Heal.java gone - help?

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Yuki
Posts: 12
Joined: Sun Feb 18, 2007 10:44 am

Heal.java gone - help?

Post 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.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Heal.java gone - help?

Post by janiii »

Heal.java is not gone, it is only moved to datapack/data/scripts/handlers/skillshandlers/Heal.java
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Yuki
Posts: 12
Joined: Sun Feb 18, 2007 10:44 am

Re: Heal.java gone - help?

Post by Yuki »

Thank you, found it... I did only search on the gameserver folder ^^.
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Heal.java gone - help?

Post by momo61 »

can we just add those lines of codes to prevent raidboss healing ? :O
vaderek
Posts: 11
Joined: Tue Nov 11, 2008 1:34 am

Re: Heal.java gone - help?

Post by vaderek »

with a config option maybe? i mean, raid-healing was off-like i thought?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Heal.java gone - help?

Post 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
vaderek
Posts: 11
Joined: Tue Nov 11, 2008 1:34 am

Re: Heal.java gone - help?

Post 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
Post Reply