• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [TFS 0.4] 8.6 server character logout right after login

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.lua:eek:nLogin
[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?
 
you wut m8? you one cheeky cunt. there is no fixing that script

By all appearance the code itself is fine. It's what it's trying to do.

You're trying to grab a swath of area 32000 squares centered to the player's temple and then randomly teleport them somewhere in that.

Maybe... just not fucking do something that silly?
 

Similar threads

Back
Top