Hi guys, i am try put my templar bot, but i have many problem with someone skills, i am lvl 69 asmodian. the error is 597 line but, i dont know, this is my Templar.lua fixed for me, is simple and is functional but if anyone can help me performance it, i want use buff attack and potions, but i dont know how, please help me, and sorry for my english
function Attack( Entity, Range, Stunned )
--if Settings.CritFood then
-- self:CheckCritFood();
-- end
--if Settings.AttackFood then
--self:CheckAttackFood();
--end
--if Settings.NaturalHeal then
-- self:CheckNaturalHeal();
--end
-- if Settings.AttackScroll then
-- self:CheckAttackScroll();
-- end
-- if Settings.RunScroll then
-- self:CheckRunScroll();
-- end
-- if Helper:CheckAvailable( "Aether Leash" ) then
-- Helper:CheckExecute( "Aether Leash" );
-- return false;
-- end
-- if Helper:CheckAvailable( "Empyrean Fury" ) then
-- Helper:CheckExecute( "Empyrean Fury" );
-- return false;
-- end
-- if Helper:CheckAvailable( "Divine Fury" ) then
-- Helper:CheckExecute( "Divine Fury" );
-- return false;
-- end
-- if Settings.Templar.AllowDoomLure and Range >= 5 and Range <= 17 and Helper:CheckAvailable( "Aether Leash" ) then
-- Helper:CheckExecute( "Aether Leash" );
-- return false;
-- end
-- -- Ranged Stumbled 1: Springing Slice
-- if Helper:CheckAvailable( "Illusion Chains" ) then
-- Helper:CheckExecute( "Illusion Chains" );
-- return false;
-- end
-- if Player:GetDP() >= 2000 then
-- if Helper:CheckAvailable( "Empyrean Chastisement" ) then
-- Helper:CheckExecute( "Empyrean Chastisement" );
-- return false;
-- elseif Helper:CheckAvailable( "Hand of Healing" ) then
-- Helper:CheckExecute( "Hand of Healing" );
-- return false;
-- end
-- end
if self.AttackStarted ~= Entity:GetID() then
self.AttackStarted = Entity:GetID();
Helper:CheckExecute( "Attack/Chat" );
return false;
end
if Helper:CheckAvailable( "Dazing Severe Blow" ) then
self.FerociousTrigger = true;
Helper:CheckExecute( "Dazing Severe Blow" );
return false;
end
if Helper:CheckAvailable( "Ferocious Strike" ) then
Helper:CheckExecute( "Ferocious Strike" );
return false;
end
if Helper:CheckAvailable( "Body Smash" ) then
Helper:CheckExecute( "Body Smash" );
return false;
elseif Helper:CheckAvailable( "Inquisitor's Blow" ) then
Helper:CheckExecute( "Inquisitor's Blow" );
return false;
end
if Helper:CheckAvailable( "Punishing Thrust" ) then
Helper:CheckExecute( "Punishing Thrust" );
return false;
end
if Helper:CheckAvailable( "Punishment" ) then
Helper:CheckExecute( "Punishment" );
return false;
end
if Helper:CheckAvailable( "Holy Punishment" ) then
Helper:CheckExecute( "Holy Punishment" );
return false;
end
if Helper:CheckAvailable( "Sword Storm" ) then
Helper:CheckExecute( "Sword Storm" );
return false;
end
return true;
end
function Heal( BeforeForce )
if Helper:CheckAvailable( "Empyrean Armor" ) and Player:GetHealth() <= 75 then
Helper:CheckExecute( "Empyrean Armor" );
return false;
end
-- Defense 2: Iron Skin
if Helper:CheckAvailable( "Iron Skin" ) and Player:GetHealth() <= 50 then
Helper:CheckExecute( "Iron Skin" );
return false;
end
-- Health Recover: Prayer of Resilience
if Player:GetHealth() <= 55 and Helper:CheckAvailable( "Prayer of Resilience" ) then
Helper:CheckExecute( "Prayer of Resilience" );
return false;
end
-- Nothing was executed, continue with other functions.
return true;
end
function Pause()
if ( self.StateBuffTime == nil or self.StateBuffTime < Time()) then
-- Retrieve the state.
local EntityState = Player:GetState();
-- Update the state checking timer.
self.StateBuffTime = Time() + 1000;
end
-- Nothing was executed, continue with other functions.
return true;
end