L2Tower Discord
Let's keep the community alive with discord.
Discussions about plugins and scripts
L2Tower Discord
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
LF script Iss Doomcryer OOP healing
Author
Message
jokey
Expired VIP Member
Posts: 13
Joined: Jun 2013
Reputation: 2
Version:
1.4.2.142
RE: LF script Iss Doomcryer OOP healing
Use and check for me
.
Add chars needs to buff in 3 list : LstWar (buff warrior), LstWiz (buff wizard), LstKni (buff knight). It's ok on my iss dominator.
Rep me if it's useful for u ^^!
Attached File(s)
6-Domi-Harmony-Test.lua (Size: 1.4 KB / Downloads: 85)
(This post was last modified: 09-22-2014 14:07 PM by jokey .)
09-22-2014 13:02 PM
exxolon
Expired VIP Member
Posts: 4
Joined: Sep 2014
Reputation: 0
Version:
1.4.2.132
RE: LF script Iss Doomcryer OOP healing
Name for Iss write somewhere or not , and auto inv/leave is OK ? Only char for WAr or wiz or Kight is need ? Ty
09-22-2014 17:02 PM
dumwian
Seer of Hallate
Posts: 83
Joined: Aug 2013
Reputation: 13
Version:
1.4.2.142
RE: LF script Iss Doomcryer OOP healing
not saying it's bad script, I just think the op was looking for OOP heals not buffs, it's not the same thing.
09-23-2014 15:35 PM
TheQQmaster
Trolling the Trolls
Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version:
1.4.2.133
RE: LF script Iss Doomcryer OOP healing
LUA Programming
ShowToClient( "HEAL" ,"OOP WYN HEAL ISS" ) ;
-- CONFIG --
CheckUser = "" ; -- name
PetHealing = false ; -- enable pet heal
HPWhenHealMaster = 75 ; -- Heal master percent
HPWhenHealPet = 70 ; -- Heal pets
HealInRange = 900 ; -- Range
HealSkillId = 11570 ; -- Healing skill
FindUser = nil ;
HealSkill = GetSkills( ) :FindById( HealSkillId) ;
function PetBelongs( pet)
if CheckUser == pet:GetNickName( ) then
return true ;
end ;
return false ;
end ;
-- MAIN LOOP --
repeat
if ( GetUserByName( CheckUser) == nil ) then
repeat
Sleep( 1000 ) ;
until ( GetUserByName( CheckUser) ~= nil ) ;
FindUser = GetUserByName( CheckUser) ;
elseif ( GetUserByName( CheckUser) ~= nil ) then
FindUser = GetUserByName( CheckUser) ;
end ;
if PetHealing then
pets = GetPetList( ) ;
for pet in pets.list do
if PetBelongs( pet) and ( pet:GetHpPercent( ) <= HPWhenHealPet) and not pet:IsAlikeDeath( ) and ( GetMe( ) :GetRangeTo( pet) < HealInRange) and ( HealSkill ~= nil ) and ( HealSkill:CanBeUsed( ) ) then
Target( pet) ;
Sleep( 200 ) ;
UseSkill( HealSkillId) ;
ClearTargets( ) ;
end ;
end ;
Sleep( 500 ) ;
end ;
if ( FindUser:GetHpPercent( ) < HPWhenHealMaster) and ( GetMe( ) :GetRangeTo( FindUser) < HealInRange) and ( HealSkill ~= nil ) and ( HealSkill:CanBeUsed( ) ) then
Target( FindUser) ;
Sleep( 200 ) ;
UseSkill( HealSkillId) ;
ClearTargets( ) ;
end ;
Sleep( 500 ) ;
until false ;
LUA Programming
WarriorHarmonyList = { "" } ;
WizardHarmonyList = { "" } ;
WarriorFrenzyId = 11596 ;
WarriorFrenzySkill = GetSkills( ) :FindById( WarriorFrenzyId) ;
WizardFrenzyId = 11597 ;
WizardFrenzySkill = GetSkills( ) :FindById( WizardFrenzyId) ;
function Search( user,list)
for x,b in pairs ( list) do
if ( user == b) then
return true ;
end ;
end ;
end ;
repeat
if ( GetMe( ) :IsAlikeDeath( ) == true ) then
Sleep( 5 * 1000 )
repeat
Sleep( 1000 ) ;
until ( GetMe( ) :IsAlikeDeath( ) == false ) ;
end ;
playerlist = GetPlayerList( ) ;
for player in playerlist.list do
if player:GetDistance( ) < 900 then
if player:GetClanName( ) == GetMe( ) :GetClanName( ) then
-- ShowToClient("Debugger","Checked "..player:GetName());
if ( Search( player:GetName( ) ,WarriorHarmonyList) ) then
Target( player:GetId( ) ) ;
if GetTarget( ) ~= nil and GetTarget( ) :GotBuff( WarriorFrenzyId) == false and player:IsAlikeDeath( ) == false then
if ( WarriorFrenzySkill ~= nil ) and ( WarriorFrenzySkill:CanBeUsed( ) ) and ( WarriorFrenzySkill:IsSkillAvailable( ) ) then
UseSkillRaw( WarriorFrenzyId,false ,false ) ;
--ShowToClient("Debugger","WarriorFrenzy Buff casted ON "..player:GetName());
ClearTargets( ) ;
Sleep( 1000 ) ;
end ;
end ;
end ;
if ( Search( player:GetName( ) ,WizardHarmonyList) ) then
Target( player:GetId( ) ) ;
if GetTarget( ) ~= nil and GetTarget( ) :GotBuff( WizardFrenzyId) == false and player:IsAlikeDeath( ) == false then
if ( WizardFrenzySkill ~= nil ) and ( WizardFrenzySkill:CanBeUsed( ) ) and ( WizardFrenzySkill:IsSkillAvailable( ) ) then
UseSkillRaw( WizardFrenzyId,false ,false ) ;
--ShowToClient("Debugger","WizardFrenzy Buff casted ON "..player:GetName());
ClearTargets( ) ;
Sleep( 1000 ) ;
end ;
end ;
end ;
Sleep( 1000 ) ;
ClearTargets( ) ;
end ;
end ;
end ;
Sleep( 60 * 1000 ) ;
until false ;
PUSH IF HELPED
09-23-2014 15:51 PM
Possibly Related Threads...
Thread:
Author
Replies:
Views:
Last Post
Doomcryer or Spectral dancer? or else?
vito54
2
3,834
07-26-2014 21:16 PM
Last Post : capucine
Trouble with pet healing
lianx1
3
3,020
07-14-2014 20:40 PM
Last Post : tophersoccer
ISS Healing OOP
badjoras
2
3,957
07-05-2013 13:57 PM
Last Post : badjoras
Wynn+ Iss Healing
mitonas
5
4,565
02-26-2013 19:19 PM
Last Post : capucine
Problem whith healing
Dncmike
1
2,405
01-14-2013 12:11 PM
Last Post : anderpr
Iss healing
Kramp
13
10,099
06-03-2012 09:09 AM
Last Post : Kramp
Healing Delay
MrGalun
1
3,696
05-19-2012 21:01 PM
Last Post : ambiance
Healing
bolas2000
0
2,428
01-16-2012 21:17 PM
Last Post : bolas2000
Party-healing Bishop bot
lolman
6
20,469
08-03-2011 21:18 PM
Last Post : lolman
healing config
wizofoz
3
5,011
07-19-2011 09:02 AM
Last Post : SiN
User(s) browsing this thread: 1 Guest(s)