Did you add functions ins lib/functions.lua?
gr8 thanks dudeYe, the function onTimer changed in 0.4_SVN..
Just go on globalevents/daysremover.lua
Replace:
Code:onTimer
With:
Code:onTime
function onUse(cid, item, frompos, item2, topos)
if getPlayerVipDays(cid) >= 1 then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
return true
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Only VIP Account can go there.')
end
return true
end
[09/04/2010 18:46:06] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/login.lua:47: 'end' expected (to close 'function' at line 6) near 'registerCreatureEvent'
[09/04/2010 18:46:06] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua)
[09/04/2010 18:46:06] data/creaturescripts/scripts/login.lua:47: 'end' expected (to close 'function' at line 6) near 'registerCreatureEvent'
[09/04/2010 18:46:06] [Error - LuaScriptInterface::loadFile] data/globalevents/scripts/daysremover.lua:4: 'end' expected (to close 'function' at line 2) near '<eof>'
[09/04/2010 18:46:06] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/daysremover.lua)
[09/04/2010 18:46:06] data/globalevents/scripts/daysremover.lua:4: 'end' expected (to close 'function' at line 2) near '<eof>'