desche188
08-18-2012, 03:41 PM
i am trying to put this in my script but no matter what i change it wont let
if (Do Spell ==true) then in my script
if you are able to help your a god
23:35 XenoScript Error:
Script: ?necro.lua
Line #: 301
Chunk: C:?Users?jonnda?Documents?XenoBot?Scripts??necro.l ua
Error: ')' expected near 'Spell'
This is an error with user-input and should not be reported as a bug with XenoBot.
function TrainMana(range, spell, drainTo)
if (Do Spell = true) then ------------ problem here ------------------
if (Self.Mana() >= range)) then
if (math.random(1, 5) == 5) then
Self.Say(spell)
sleep(math.random(200,600))
else
return math.random(800, 1700)
end
end
return 300end while (true) do
local spell = "Spell"
local castAt = Self.MaxMana() - 5
sleep(TrainMana(castAt, spell, castTo))
end
if (Do Spell ==true) then in my script
if you are able to help your a god
23:35 XenoScript Error:
Script: ?necro.lua
Line #: 301
Chunk: C:?Users?jonnda?Documents?XenoBot?Scripts??necro.l ua
Error: ')' expected near 'Spell'
This is an error with user-input and should not be reported as a bug with XenoBot.
function TrainMana(range, spell, drainTo)
if (Do Spell = true) then ------------ problem here ------------------
if (Self.Mana() >= range)) then
if (math.random(1, 5) == 5) then
Self.Say(spell)
sleep(math.random(200,600))
else
return math.random(800, 1700)
end
end
return 300end while (true) do
local spell = "Spell"
local castAt = Self.MaxMana() - 5
sleep(TrainMana(castAt, spell, castTo))
end