twan
03-25-2013, 01:28 PM
Hello,
I got a little problem, and I dont know someone can help me with it, or not, but i'll try.
I'm using a script which is attacking the target with exori hur and exori ico, but often it spams one of the spells at the same time I'm trying to hit with my sword, so it skips the sword hit. I've tried alot to fix this but it's still not working:S Can anybody help me with this? Script i'm using:
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 (Self.GetSpellCooldown("exori hur") == 0) then
Self.CastSpell("exori hur", 40)
end
if (CREATURE:DistanceFromSelf() == 1) then
if (Self.GetSpellCooldown("exori ico") == 0) then
Self.CastSpell("exori ico", 30)
end
end
end
end
sleep(100)
end
Thanks
Sorry for bad English
I got a little problem, and I dont know someone can help me with it, or not, but i'll try.
I'm using a script which is attacking the target with exori hur and exori ico, but often it spams one of the spells at the same time I'm trying to hit with my sword, so it skips the sword hit. I've tried alot to fix this but it's still not working:S Can anybody help me with this? Script i'm using:
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 (Self.GetSpellCooldown("exori hur") == 0) then
Self.CastSpell("exori hur", 40)
end
if (CREATURE:DistanceFromSelf() == 1) then
if (Self.GetSpellCooldown("exori ico") == 0) then
Self.CastSpell("exori ico", 30)
end
end
end
end
sleep(100)
end
Thanks
Sorry for bad English