L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Heal script
Author Message
ekin Offline
Expired VIP Member
**

Posts: 10
Joined: Oct 2015
Reputation: 0
Version: 1.4.2.142
Post: #1
Heal script

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);
(This post was last modified: 11-01-2015 00:16 AM by ekin.)
10-31-2015 23:54 PM
Find all posts by this user Quote this message in a reply
ekin Offline
Expired VIP Member
**

Posts: 10
Joined: Oct 2015
Reputation: 0
Version: 1.4.2.142
Post: #2
RE: Heal script

Here is the screenshot....I'm i doing something wrong since it doesnt buffs or heal??



[Image: buff_heal.png]
(This post was last modified: 11-01-2015 21:54 PM by ekin.)
11-01-2015 21:52 PM
Find all posts by this user Quote this message in a reply
snapit Offline
Expired VIP Member
**

Posts: 79
Joined: Jul 2015
Reputation: 18
Version: 1.4.2.133
Post: #3
RE: Heal script

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
11-01-2015 22:26 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Heal mackiemsau 1 1,315 05-27-2022 10:40 AM
Last Post: JennaDeh
  How i do to prophet heal the party player ? sectorzueira 2 2,850 09-11-2015 13:40 PM
Last Post: sectorzueira
  Help Auto Buff Or Heal For Not In Party Verheiden 3 4,218 04-27-2015 16:58 PM
Last Post: Hebdzik
Information Dark items CP lf HEAL / ISS !! FreeXi 6 4,411 03-20-2015 21:37 PM
Last Post: FreeXi
  how to heal Cttdav 3 4,440 12-31-2014 18:46 PM
Last Post: tophersoccer
  heal doesnt self heal rokeza 3 3,454 10-03-2013 15:21 PM
Last Post: godd555
  Pet Heal/Party Heal vlast666 0 2,964 09-11-2013 19:07 PM
Last Post: vlast666
  PvP heal Bot Zinx 1 4,124 06-16-2013 14:09 PM
Last Post: Limerick
  Need Heal Aeore Healer + Wynn sc2love 5 5,527 05-13-2013 00:05 AM
Last Post: sc2love
Star Heal help holty 1 2,796 04-23-2013 07:54 AM
Last Post: Hebdzik



User(s) browsing this thread: 1 Guest(s)