this script summons 4 monsters on cast spell but it also gives 4 errors oncastspell
it works though the summons become mine and the dont attack me but if any1 could help me get the errors out of my console i would apreciate it
heres the script
and here is my error in the console
it works though the summons become mine and the dont attack me but if any1 could help me get the errors out of my console i would apreciate it
heres the script
Code:
function onCastSpell(cid, var)
local dir = getPlayerLookDir(cid)
local pos = getPlayerPosition(cid)
local Monster = demonic soldier
if(dir==1)then
pos.x = pos.x + 1
elseif(dir==2)then
pos.y = pos.y + 1
elseif(dir==3)then
pos.x = pos.x - 1
elseif(dir==0)then
pos.y = pos.y - 1
end
doSummonMonster(cid)
doConvinceCreature(cid,"demonic soldier")
doSummonMonster(cid)
doConvinceCreature(cid,"demonic soldier")
doSummonMonster(cid)
doConvinceCreature(cid,"demonic soldier")
doSummonMonster(cid)
doConvinceCreature(cid)
return LUA_NO_ERROR
end
and here is my error in the console
Code:
[03/10/2010 06:38:53] [Error - Spell Interface]
[03/10/2010 06:38:53] data/spells/scripts/Enslaver/Slaves.lua:onCastSpell
[03/10/2010 06:38:53] Description:
[03/10/2010 06:38:53] (luaDoConvinceCreature) Creature not found
[03/10/2010 06:38:53] [Error - Spell Interface]
[03/10/2010 06:38:53] data/spells/scripts/Enslaver/Slaves.lua:onCastSpell
[03/10/2010 06:38:53] Description:
[03/10/2010 06:38:53] (luaDoConvinceCreature) Creature not found
[03/10/2010 06:38:53] [Error - Spell Interface]
[03/10/2010 06:38:53] data/spells/scripts/Enslaver/Slaves.lua:onCastSpell
[03/10/2010 06:38:53] Description:
[03/10/2010 06:38:53] (luaDoConvinceCreature) Creature not found
[03/10/2010 06:38:53] [Error - Spell Interface]
[03/10/2010 06:38:53] data/spells/scripts/Enslaver/Slaves.lua:onCastSpell
[03/10/2010 06:38:53] Description:
[03/10/2010 06:38:53] (luaDoConvinceCreature) Creature not found