Lineage 2 Tower Forum

Full Version: Heal script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I'm playing on l2classic, I've been searching the forums on how to set up CP/HP/MP and Party Buffs and i did exactly what everyone told...but somehow it wont heal at all or buffs. The healer ONLY heal the one that is being targeted, it wont heal himself or the rest of the party b/c it wont target...ANY HELP IS GREATLY APPRECIATED! Smile

p/s i found this script but when i run it in game it says error script not valid...

CharNameToHeal = "xxx";
CharNameToHeal = "xxx";
CharNameToHeal = "xxx";
HPWhenHeal = 73; -- HP%
HealInRange = 850; -- Max Range
HealSkillId = 11756; -- Panic Heal
ResSkillId = 11784; -- Blessed Resurrection
----------------------------------------------------------------
WhoToHeal = nil;
HealSkill = GetSkills():FindById(HealSkillId);
ResSkill = GetSkills():FindById(ResSkillId);


repeat
----------
PlayerList = GetPartyList();
for user in PlayerList.list do

if(user:GetHpPercent() < HPWhenHeal) and
(GetMe():GetRangeTo(user) < HealInRange) and
(HealSkill ~= nil) and (HealSkill:CanBeUsed())then
Target(user);
Sleep(500);
UseSkill(HealSkillId); -- Healing Melody
ClearTargets();
ClearTargets();
end;
--------------
for user in PlayerList.list do
if(user:IsAlikeDeath() == true) and
(GetMe():GetRangeTo(user) < HealInRange) and
(ResSkill ~= nil) and
(ResSkill:CanBeUsed()) then
Target(user);
Sleep(300);
UseSkillRaw(11784, false, false); -- Blessed Resurrection
Sleep(400);
ClearTargets();
Sleep(400);
end;
end;
end;
until false;




just use /recstart_skillname use ress + heal skill then /recstop... open file into script folder with name "skillname", there are your skill's ID.... copy and paste them on top of the script i just posted (and remember to change ress id here too:
LUA Programming
Sleep(300);
UseSkillRaw(11784, false, false); -- Blessed Resurrection
Sleep(400);
Here is the screenshot....I'm i doing something wrong since it doesnt buffs or heal??



[Image: buff_heal.png]
Targeting doesn't work by itself on l2classic, to fix it you can use my plugin, that should fix CP/HP/MP recovery for you. About buffs, I think there are two reasons why it doesn't work, first one being l2tower's targeting doesn't work, second reason being that on most servers (at least wherever I tried) Party Buffs function just doesn't detect that a party members is missing buffs. Id share my own cleric script which buffs/heals/cures poison/reses even 2 days ago, but atm I'm trying to sell my plugin.

My plugin: http://forum.l2tower.eu/thread-wts-targe...lassic-com
Reference URL's