BigBratti
11-27-2012, 04:50 AM
I was just wondering is there anyway to sync my spells attack with my sword attack like self combo's. I'd like it to function alot like
function Self.CastSpell(WORDS, MANA)
if (Self.Mana() >= MANA) then
Self.Say(WORDS)
end
end
while (true) do
for i = CREATURES_LOW, CREATURES_HIGH do
local CREATURE = Creature.GetFromIndex(i)
if (CREATURE:isOnScreen() and CREATURE:isVisible() and CREATURE:isAlive() and CREATURE:isTarget()) then
if (CREATURE:DistanceFromSelf() == 1) then
if (Self.GetSpellCooldown("exori ico") == 0) then
Self.CastSpell("exori ico", 30)
end
if (Self.GetSpellCooldown("exori hur") == 0) then
Self.CastSpell("exori hur", 40)
end
end
end
end
sleep(100)
end
Like Hur and Ico just sync to right after my melee attack
function Self.CastSpell(WORDS, MANA)
if (Self.Mana() >= MANA) then
Self.Say(WORDS)
end
end
while (true) do
for i = CREATURES_LOW, CREATURES_HIGH do
local CREATURE = Creature.GetFromIndex(i)
if (CREATURE:isOnScreen() and CREATURE:isVisible() and CREATURE:isAlive() and CREATURE:isTarget()) then
if (CREATURE:DistanceFromSelf() == 1) then
if (Self.GetSpellCooldown("exori ico") == 0) then
Self.CastSpell("exori ico", 30)
end
if (Self.GetSpellCooldown("exori hur") == 0) then
Self.CastSpell("exori hur", 40)
end
end
end
end
sleep(100)
end
Like Hur and Ico just sync to right after my melee attack