PDA

View Full Version : Is it Possible?



Mitsuwa
06-23-2012, 07:35 AM
Is it possible to tell Xenobot to kill a monster when it is x% Health with a secondary skill?

Im killing wyrms on a mage and every single time it gets red health it runs away and i end up endangering myself into luring more monsters on me and i die. I would rather juse use exori gran frigo to finish the bitch off every single time so i dont have to run after it lol. Or possibly using a rune?

Please help, Thanks youss!

Spectrus
06-23-2012, 07:49 AM
Meh, it's an ugly script but I'm not going to write anything better this late at night.



local TargetName = "Wyrm" -- Change to target
local TargetHealthPerc = 15 -- Change to amount you want to cast spell
local SpellWords = "exori gran frigo" -- Spell to cast when monster is below TargetHealthPerc
local SpellMana = 1000 -- Mana required to cast spell.

while true do
local Target = Creature.GetByID(Self.TargetID()0
if Target:Name() == TargetName then
if Target:HealthPercent() <= TargetHealthPerc then
Self.Cast(SpellWords, SpellMana)
end
end
sleep(50)
end