• 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!

player login at temple

Triggah

TrigCore
Joined
Aug 1, 2007
Messages
436
Reaction score
2
i need help with a script that when a player logs in, its always at temple, doesnt matter where logged out, if log in, log in at temple.

ive tried scripting one but then players cant log it just shows the effect at the location but they cant get in.
so im not gonna even bother posting that in here.

thanks in advance ;)
 
you can create a new file and paste exactly what I wrote(dont forget to add it to the creaturescripts.xml)

Or just add this line to your already existing login.lua
PHP:
doTeleportThing(cid,getTownTemplePosition(getPlayerTown(cid)))
 
dont put it after the end.

Maybe you should learn to code or something, you never seem to get stuff working. No offense, and sorry if it feels like that.
 
Lua:
local temple = {x=100, y=100, z=7}
function onLogin(cid)
    doTeleportThing(cid, temple)
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have been teleported to the temple.")
    return TRUE
end
 
this doesnt work when placed in login.lua, i have created a similar script to it and it didnt work.

should i just make a new .lua and add to creaturescripts?
 
Back
Top