This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in
Off-Topic Discussion.
Yuki
Posts: 12 Joined: Sun Feb 18, 2007 10:44 am
Post
by Yuki » Thu Jun 18, 2009 8:17 am
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.
janiii
L2j Veteran
Posts: 4269 Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia
Post
by janiii » Thu Jun 18, 2009 8:28 am
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 flOO der dancing dEVIL oper ♀
I don't give private support - PM will be ignored!
Yuki
Posts: 12 Joined: Sun Feb 18, 2007 10:44 am
Post
by Yuki » Thu Jun 18, 2009 8:40 am
Thank you, found it... I did only search on the gameserver folder ^^.
momo61
Posts: 1648 Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe
Post
by momo61 » Thu Jun 18, 2009 8:43 am
can we just add those lines of codes to prevent raidboss healing ? :O
vaderek
Posts: 11 Joined: Tue Nov 11, 2008 1:34 am
Post
by vaderek » Thu Jun 18, 2009 1:13 pm
with a config option maybe? i mean, raid-healing was off-like i thought?
janiii
L2j Veteran
Posts: 4269 Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia
Post
by janiii » Thu Jun 18, 2009 1:21 pm
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 flOO der dancing dEVIL oper ♀
I don't give private support - PM will be ignored!
vaderek
Posts: 11 Joined: Tue Nov 11, 2008 1:34 am
Post
by vaderek » Thu Jun 18, 2009 1:34 pm
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