jykemainio
New Member
- Joined
- Jan 21, 2010
- Messages
- 7
- Reaction score
- 0
Hi.
I would like to know what does this script do and why characters logout right after login.
Here is the error:
[12:34:39.508] [Error - CreatureScript Interface]
[12:34:39.510] data/creaturescripts/scripts/templebug.luanLogin
[12:34:39.513] Description:
[12:34:39.515] data/lib/032-position.lua:79: attempt to index local 'position' (a boolean value)
[12:34:39.520] stack traceback:
[12:34:39.522] data/lib/032-position.lua:79: in function 'getArea'
[12:34:39.525] data/creaturescripts/scripts/templebug.lua:3: in function <data/creaturescripts/scripts/templebug.lua:1>
And here is the templebug.lua script:
I'd like to solve this problem, so where should I start?
I would like to know what does this script do and why characters logout right after login.
Here is the error:
[12:34:39.508] [Error - CreatureScript Interface]
[12:34:39.510] data/creaturescripts/scripts/templebug.luanLogin
[12:34:39.513] Description:
[12:34:39.515] data/lib/032-position.lua:79: attempt to index local 'position' (a boolean value)
[12:34:39.520] stack traceback:
[12:34:39.522] data/lib/032-position.lua:79: in function 'getArea'
[12:34:39.525] data/creaturescripts/scripts/templebug.lua:3: in function <data/creaturescripts/scripts/templebug.lua:1>
And here is the templebug.lua script:
Lua:
function onLogin(cid)
if getPlayerLastLoginSaved(cid) == 0 then
local p = getArea(getTownTemplePosition(getPlayerTown(cid)), 32369, 32243)
doTeleportThing(cid, p[math.random(#p)])
end
return true
end
I'd like to solve this problem, so where should I start?