PDA

View Full Version : spells



kikothepower
11-10-2013, 11:59 AM
hello i just started with this bot and i want to know if i can do exori max flam and then exori flam when cooldown is over it does max flam again or gran flam.

PromB
11-10-2013, 02:57 PM
Just change SPELL = "to whatever you want to cast"


local TargetSpells = {}

TargetSpells[1] = {SPELL = "Exori Max Frigo", CREATURE = {"Lizard High Guard", "Lizard Legionnaire", "Lizard Dragon Priest"}, DISTANCE = 3, ENABLED = false}
TargetSpells[2] = {SPELL = "Exori Gran Frigo", CREATURE = {"Lizard High Guard", "Lizard Legionnaire", "Lizard Dragon Priest"}, DISTANCE = 3, ENABLED = true}
TargetSpells[3] = {SPELL = "Exori Frigo", CREATURE = {"Lizard High Guard", "Lizard Legionnaire", "Lizard Dragon Priest"}, DISTANCE = 3, ENABLED = true}

--_____________DON'T EDIT BELOW UNLESS YOU KNOW WHAT YOU'RE DOING_____________

Module.New('Spell Caster by PromB', function(module)
for _, V in ipairs(TargetSpells) do
local target = Creature.GetByID(Self.TargetID())
if (V.ENABLED) then
if (V.CREATURE and table.find(V.CREATURE, target:Name(), false)) and (target:isOnScreen() and target:isVisible() and target:isAlive()) then
if (target:DistanceFromSelf() <= V.DISTANCE) and Creature.New(V.CREATURE) then
if Self.CanCastSpell(V.SPELL) then
Self.Cast(V.SPELL)
module:Delay(400)
end
end
end
end
end
end)

varies
11-10-2013, 02:58 PM
I think this is what you're looking for?

http://forums.xenobot.net/showthread.php?11556-Xenobot-Community-Scripts/page10&p=141773#post141773


Edit: 1 mintue too late.. :'(