function onThink(interval, lastExecution, thinkInterval)
local npc = doCreateNpc("Nazwa")
addEvent(doRemoveCreature, 3 * 60 * 60 * 1000, npc)
return true
end
function doRemoveSiusiak()
local npc = getCreatureByName("Siusiak")
if(npc ~= nil) then
doRemoveCreature(npc)
end
end
function onThink(interval, lastExecution, thinkInterval)
local npc = doCreateNpc("Siusiak")
addEvent(doRemoveSiusiak, 30 * 60 * 1000)
return true
end
<globalevent name="siusiak" interval="10800000" event="script" value="siusiak.lua"/>
[03/02/2010 18:57:24] [Error - GlobalEvent Interface]
[03/02/2010 18:57:24] data/globalevents/scripts/siusiak.luanThink
[03/02/2010 18:57:24] Description:
[03/02/2010 18:57:24] (luaDoCreateNpc) Npc with name '' not found