Boring to set Spells and Potions in your Scripts?
Just Create a Persistent with action below and ENABLE!
Feel free to change any value.
Here we go!
--Smart Healing by Borges
--Knight Spells and Potions Configuration
local UturaGranK = true -- Use Utura Gran? set true or false
local UturaK = false -- Use Utura? set true or false
local ExuraGranIcoK = 40 -- Percentage to use Exura Gran Ico
local ExuraIcoK = 80 -- Percentage to use Exura Ico
local ManaTrainK = 95 -- Percentage to Mana Train
local ManaTrainSpellK = "utani hur" -- Spell to Mana Train
local UltimateHealthPotionk = 30 -- Percentage to use Ultimate Health Potion
local GreatHealthPotionk = 30 -- Percentage to use Great Health Potion
local StrongHealthPotionk = 30 -- Percentage to use Strong Health Potion
local HealthPotionk = 30 -- Percentage to use Health Potion
local ManaPotionK = 70 -- Percentage to use Mana Potion
--Mage Spells and Potions Configuration
local ExuraVitaM = 40 -- Percentage to use Exura Vita
local ExuraGranM = 70 -- Percentage to use Exura Gran
local ExuraM = 90 -- Percentage to use Exura
local ManaTrainM = 95 -- Percentage to Mana Train
local ManaTrainSpellM = "exura vita" -- Spell to Mana Train
local GreatManaPotionM = 70 -- Percentage to use Great Mana Potion
local StrongManaPotionM = 70 -- Percentage to use Strong Mana Potion
local ManaPotionM = 70 -- Percentage to use Mana Potion
--Paladin Spells and Potions Configuration
local UturaGranP = true -- Use Utura Gran? set true or false
local UturaP = false -- Use Utura? set true or false
local ExuraGranSanP = 30 -- Percentage to use Exura Gran San
local ExuraSanP = 50 -- Percentage to use Exura San
local ExuraGranP = 70 -- Percentage to use Exura Gran
local ExuraP = 90 -- Percentage to use Exura
local ManaTrainP = 95 -- Percentage to use Mana Train
local ManaTrainSpellP = "utani hur" -- Spell to Mana Train
local GreatSpiritPotionP = 30 -- Percentage to use Great Spirit Potion
local StrongHealthPotionP = 30 -- Percentage to use Strong Health Potion
local HealthPotionP = 30 -- Percentage to use Health Potion
local StrongManaPotionP = 70 -- Percentage to use Strong Mana Potion
local ManaPotionP = 70 -- Percentage to use Mana Potion
---------------------DO NOT EDIT BELOW---------------------
auto(200,500)
--Spells
if $vocation == "knight" then
if $hppc <= ExuraGranIcoK and cancast("exura gran ico") then
cast("exura gran ico")
elseif $hppc <= ExuraIcoK and cancast("exura ico") then
cast("exura ico")
end
elseif $vocation == "druid" or $vocation == "sorcerer" then
if $hppc <= ExuraVitaM and cancast("exura vita") then
cast("exura vita")
elseif $hppc <= ExuraGranM and cancast("exura gran") then
cast("exura gran")
elseif $hppc <= ExuraM and cancast("exura") then
cast("exura")
end
elseif $vocation == "paladin" then
if $hppc <= ExuraGranSanP and cancast("exura gran san") then
cast("exura gran san")
elseif $hppc <= ExuraSanP and cancast("exura san") then
cast("exura san")
elseif $hppc <= ExuraGranP and cancast("exura gran") then
cast("exura gran")
elseif $hppc <= ExuraP and cancast("exura") then
cast("exura")
end
end
if not $strenghtened and $vocation == 'knight' and $hppc <= 95 then
if UturaGranK then
cast("utura gran")
elseif UturaK then
cast("utura")
end
end
if not $strenghtened and $vocation == 'paladin' and $hppc <= 95 then
if UturaGranP then
cast("utura gran")
elseif UturaP then
cast("utura")
end
end
--Potions
if $vocation == "knight" then
if $hppc <= UltimateHealthPotionk and $level >= 130 and itemcount("ultimate health potion") >= 1 then
pausewalking(200,500)
useoncreature("ultimate health potion",$self)
elseif $hppc <= GreatHealthPotionk and $level >= 80 and itemcount("great health potion") >= 1 then
pausewalking(200,500)
useoncreature("great health potion",$self)
elseif $hppc <= StrongHealthPotionk and $level >= 50 and itemcount("strong health potion") >= 1 then
pausewalking(200,500)
useoncreature("strong health potion",$self)
elseif $hppc <= HealthPotionk and itemcount("health potion") >= 1 then
pausewalking(200,500)
useoncreature("health potion",$self)
elseif $mppc <= ManaPotionK and itemcount("mana potion") >= 1 then
pausewalking(200,500)
useoncreature("mana potion",$self)
end
elseif $vocation == "druid" or $vocation == "sorcerer" then
if $mppc <= GreatManaPotionM and $level >= 80 and itemcount("great mana potion") >= 1 then
pausewalking(200,500)
useoncreature("great mana potion",$self)
elseif $mppc <= StrongManaPotionM and $level >= 50 and itemcount("strong mana potion") >= 1 then
pausewalking(200,500)
useoncreature("strong mana potion",$self)
elseif $mppc <= ManaPotionM and itemcount("mana potion") >= 1 then
pausewalking(200,500)
useoncreature("mana potion",$self)
end
elseif $vocation == "paladin"then
if $hppc <= GreatSpiritPotionP and $level >= 80 and itemcount("great spirit potion") >= 1 then
pausewalking(200,500)
useoncreature("great spirit potion",$self)
elseif $hppc <= StrongHealthPotionP and $level >= 50 and itemcount("strong health potion") >= 1 then
pausewalking(200,500)
useoncreature("strong health potion",$self)
elseif $hppc <= HealthPotionP and itemcount("health potion") >= 1 then
pausewalking(200,500)
useoncreature("health potion",$self)
elseif $mppc <= StrongManaPotionP and $level >= 50 and itemcount("strong mana potion") >= 1 then
pausewalking(200,500)
useoncreature("strong mana potion",$self)
elseif $mppc <= ManaPotionP and itemcount("mana potion") >= 1 then
pausewalking(200,500)
useoncreature("mana potion",$self)
end
end
--Mana Trainer
if $vocation == "knight" then
if $mppc >= ManaTrainK and cancast(ManaTrainSpellK) then
cast(ManaTrainSpellK)
end
elseif ($vocation == "druid" or $vocation == "sorcerer") then
if $mppc >= ManaTrainM and cancast(ManaTrainSpellM) then
cast(ManaTrainSpellM)
end
elseif $vocation == "paladin" then
if $mppc >= ManaTrainP and cancast(ManaTrainSpellP) then
cast(ManaTrainSpellP)
end
end
--Food Eater
eatfoodfull()
--Paralyze
if $vocation == "knight" then
if $hppc <= ExuraGranIcoK and $paralyzed and cancast("exura gran ico") then
cast("exura gran ico")
elseif $paralyzed then
cast("exura ico")
end
elseif ($vocation == "druid" or $vocation == "sorcerer") then
if $hppc <= ExuraVitaM and $paralyzed and cancast("exura vita") then
cast("exura vita")
elseif $hppc <= ExuraGranM and $paralyzed and cancast("exura gran") then
cast("exura gran")
elseif $paralyzed then
cast("exura")
end
elseif $vocation == "paladin" then
if $hppc <= ExuraGranSanP and $paralyzed and cancast("exura gran san") then
cast("exura gran san")
elseif $hppc <= ExuraSanP and $paralyzed and cancast("exura san") then
cast("exura san")
elseif $hppc <= ExuraGranP and $paralyzed and cancast("exura gran") then
cast("exura gran")
elseif $paralyzed then
cast("exura")
end
end