Ray Rewind
Doctor
I get this error
The Script should do like this.
IF player use ITEM with UID 45500 --- Boss Snake God Essence will spawn and TP outside will remove so nobody can enter the room where people fight the boss.
and nobody can use the item before the snake god died !
Code:
[12/11/2013 13:58:08] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/wote/addmonster.lua:39: 'end' expected (to close 'function' at line 9) near '<eof>'
[12/11/2013 13:58:08] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/wote/addmonster.lua)
[12/11/2013 13:58:08] data/actions/scripts/quests/wote/addmonster.lua:39: 'end' expected (to close 'function' at line 9) near '<eof>'
[12/11/2013 13:58:08] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/wote/addmonster.lua:39: 'end' expected (to close 'function' at line 9) near '<eof>'
[12/11/2013 13:58:08] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/wote/addmonster.lua)
[12/11/2013 13:58:08] data/actions/scripts/quests/wote/addmonster.lua:39: 'end' expected (to close 'function' at line 9) near '<eof>'
PHP:
-- Config #1 --
local tpin = {{x=1233, y=1233, z=11}, {x=1233, y=1233, z=11}}
local tpout = {{x=1255, y=1255, z=9}, {x=1255, y=1255, z=9}}
local glo = {x=123, y=123, z=11}
ttime = {10, 30}
local isEvent = 45500;
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 45500 then
doTransformItem(item.uid, item.itemid - 5)
doCreatureSay(cid, "Snake God Essence has spawned", TALKTYPE_ORANGE_1)
doCreateMonster("Snake God Essence", {x= 1303, y= 1468, z= 7})
local function fixGlobe()
doItemSetAttribute(getTileItemById(glo, 9767).uid, "aid", 45501)
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 45500 then
doItemSetAttribute(item.uid, "aid", 45500)
else
doCreatureSay(cid, "You have to wait some time before this item will charge.", TALKTYPE_ORANGE_1)
return;
end
local tp = getTileItemById(tpin[1],1387).uid;
if(tp > 0)then
doRemoveItem(tp)
end
tp = getTileItemById(tpout[1],1387).uid;
if(tp > 0)then
doRemoveItem(tp)
end
end
return TRUE
end
The Script should do like this.
IF player use ITEM with UID 45500 --- Boss Snake God Essence will spawn and TP outside will remove so nobody can enter the room where people fight the boss.
and nobody can use the item before the snake god died !