Hey!
I've got:
and this error:
[22:2:47.330] [Error - MoveEvents Interface]
[22:2:47.334] data/movements/scripts/summony.lua
nStepIn
[22:2:47.342] Description:
[22:2:47.346] (luaDoConvinceCreature) Creature not found
How to fix it?
I've got:
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(isPlayerGhost(cid)) then
return true
end
local summons = getCreatureSummons(cid)
-- remove all summons if player already have summons ;)
if(table.maxn(summons) > 0) then
for _, pid in ipairs(summons) do
doRemoveCreature(pid)
end
end
if(table.maxn(summons) <= 0) then
local monster = "Raditz" -- change this to the monster you want to summon
local monsterAmount = 2 -- Amount of monsters to summon
for i = 1, monsterAmount do
doConvinceCreature(monster, getCreaturePosition(cid))
end
end
return true
end
and this error:
[22:2:47.330] [Error - MoveEvents Interface]
[22:2:47.334] data/movements/scripts/summony.lua
[22:2:47.342] Description:
[22:2:47.346] (luaDoConvinceCreature) Creature not found
How to fix it?