hello guys, anyone can help with this script, i want use 3 times the skill Blood Pact, is a chain.
if Helper:CheckAvailable( "Body Smash" ) then
Helper:CheckExecute( "Body Smash" );
end
if Helper:CheckAvailable( "Blood Pact" ) then
Helper:CheckExecute( "Blood Pact" );
Helper:CheckExecute( "Blood Pact" );
Helper:CheckExecute( "Blood Pact" );
end
please help
the next is my script Templar.lua:
function Attack( Entity, Range, Stunned )
if self.AttackStarted ~= Entity:GetID() then
self.AttackStarted = Entity:GetID();
Helper:CheckExecute( "Attack/Chat" );
end
Helper:CheckExecute( "Attack/Chat" );
if Helper:CheckAvailable( "Reroute Power" ) and Range <= 6 then
Helper:CheckExecute( "Reroute Power" );
end
if Helper:CheckAvailable( "Empyrean Fury" ) and Range <= 6 then
Helper:CheckExecute( "Empyrean Fury" );
end
if Helper:CheckAvailable( "Divine Fury" ) and Range <= 6 then
Helper:CheckExecute( "Divine Fury" );
end
if Helper:CheckAvailable( "Break Power" ) then
Helper:CheckExecute( "Break Power" );
end
if Helper:CheckAvailable( "Pitiless Blow" ) then
Helper:CheckExecute( "Pitiless Blow" );
end
if Helper:CheckAvailable( "Courageous Shield" ) then
Helper:CheckExecute( "Courageous Shield" );
end
if Helper:CheckAvailable( "Face Smash" ) then
Helper:CheckExecute( "Face Smash" );
end
if Helper:CheckAvailable( "Shield Counter" ) then
Helper:CheckExecute( "Shield Counter" );
end
if Helper:CheckAvailable( "Face Smash" ) then
Helper:CheckExecute( "Face Smash" );
end
if Helper:CheckAvailable( "Avenging Blow" ) then
Helper:CheckExecute( "Avenging Blow" );
end
if Helper:CheckAvailable( "Face Smash" ) then
Helper:CheckExecute( "Face Smash" );
end
if Helper:CheckAvailable( "Remove Shock" ) then
Helper:CheckExecute( "Remove Shock" );
end
if Helper:CheckAvailable( "Refresh Spirit" ) then
Helper:CheckExecute( "Refresh Spirit" );
end
-- ATAQUES CHAIN
--PRIMER ATAQUE
if Helper:CheckAvailable( "Dazing Severe Blow" ) then
self.FerociousTrigger = true;
Helper:CheckExecute( "Dazing Severe Blow" );
end
if Helper:CheckAvailable( "Divine Blow" ) then
Helper:CheckExecute( "Divine Blow" );
end
if Helper:CheckAvailable( "Judgement" ) then
Helper:CheckExecute( "Judgement" );
end
--SEGUNDO ATAQUE
if Helper:CheckAvailable( "Ferocious Strike" ) then
Helper:CheckExecute( "Ferocious Strike" );
end
if Helper:CheckAvailable( "Rage" ) then
Helper:CheckExecute( "Rage" );
elseif Helper:CheckAvailable( "Robust Blow" ) then
Helper:CheckExecute( "Robust Blow" );
end
if Helper:CheckAvailable( "Slash Artery" ) then
Helper:CheckExecute( "Slash Artery" );
end
if Helper:CheckAvailable( "Wrath Strike" ) then
Helper:CheckExecute( "Wrath Strike" );
end
--TERCER ATAQUE
if Helper:CheckAvailable( "Body Smash" ) then
Helper:CheckExecute( "Body Smash" );
end
if Helper:CheckAvailable( "Blood Pact" ) then
Helper:CheckExecute( "Blood Pact" );
end
--cuarto
if Helper:CheckAvailable( "Shield Bash" ) then
Helper:CheckExecute( "Shield Bash" );
end
if Helper:CheckAvailable( "Shield Shock" ) then
Helper:CheckExecute( "Shield Shock" );
end
if Helper:CheckAvailable( "Inquisitor's Blow" ) then
Helper:CheckExecute( "Inquisitor's Blow" );
end
if Helper:CheckAvailable( "Punishing Thrust" ) then
Helper:CheckExecute( "Punishing Thrust" );
end
if Helper:CheckAvailable( "Swinging Shield Counter" ) then
Helper:CheckExecute( "Swinging Shield Counter" );
end
if Helper:CheckAvailable( "Holy Punishment" ) then
Helper:CheckExecute( "Holy Punishment" );
end
if Helper:CheckAvailable( "Provoking Roar" ) then
Helper:CheckExecute( "Provoking Roar" );
end
if Helper:CheckAvailable( "Shieldburst" ) then
Helper:CheckExecute( "Shieldburst" );
end
if Helper:CheckAvailable( "Sword Storm" ) and Range <= 6 then
Helper:CheckExecute( "Sword Storm" );
end
end
function Heal( BeforeForce)
if Helper:CheckAvailable( "Empyrean Armor" ) and Player:GetHealth() <= 75 then
Helper:CheckExecute( "Empyrean Armor" );
return false;
end
if Helper:CheckAvailable( "Iron Skin" ) and Player:GetHealth() <= 50 then
Helper:CheckExecute( "Iron Skin" );
end
-- Health Recover: Prayer of Resilience
if Player:GetHealth() <= 70 and Helper:CheckAvailable( "Prayer of Resilience" ) then
Helper:CheckExecute( "Prayer of Resilience" );
end
if Helper:CheckAvailable( "Hand of Healing" ) and Player:GetHealth() <= 20 then
Helper:CheckExecute( "Hand of Healing" );
return false;
end
-- Nothing was executed, continue with other functions.
return true;
end
function Pause()
-- Nothing was executed, continue with other functions.
return true;
end