Hi,
Im training with high guard lizards on my paladin, and i need Persistente script for changing stance if a monster is below 50% and changing back when it above 90%.
Thats because none of the other training scripts suits this function.
Thanks
Hi,
Im training with high guard lizards on my paladin, and i need Persistente script for changing stance if a monster is below 50% and changing back when it above 90%.
Thats because none of the other training scripts suits this function.
Thanks
I did not test.
--Trainer
auto(1000)
local Trainer = true
local monster = getcreature('Lizard High Guard')
local CheckRangeMonster = true
local RangeMonster = 1
local HpLarger = random(80,90) --percentage, hp larger lizard, attack
local HpLess = random(40,50) --percentage, hp less lizard, stop attack
if $connected then
if Trainer then
if CheckRangeMonster then
if monster.dist <= RangeMonster then
if monster.hppc >= HpLarger then
attack(monster.name)
elseif monster.hppc <= HpLess then
stopattack()
end
end
else
if monster.hppc >= HpLarger then
attack(monster.name)
elseif monster.hppc <= HpLess then
stopattack()
end
end
end
end