• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Tample Login.

Potar

SocialWorld
Senator
Joined
Mar 1, 2009
Messages
1,661
Reaction score
125
Location
Warsaw, Poland
Hello !

I looking for script or anything,

When player login into the game (in tample) , or he died, he log on in tample in 1 SQM.

For example:

Tample:

x-1000
y-1000
z-7

I want to change it, I just don't want to log each player on the same square,
I want every player who logs on to the temple land on random squares.
 
put action id or uniqueid on the tile and use this script
LUA:
local config = {
	fromPosition = {x=123,y=123,z=7},
    toPosition = {x=120,y=125,z=7},
    }
local pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)}
function onStepIn(cid, item, position, fromPosition)
return getTileInfo(position).creatures > 1 and doTeleportThing(cid, pos) and doSendMagicEffect(getPlayerPosition(cid), 12) end
 
LUA:
function onLogin(cid)
    if getPlayerLastLoginSaved(cid) == 0 then
        local p = getArea(getTownTemplePosition(getPlayerTown(cid)), 2, 2)
        doTeleportThing(cid, p[math.random(#p)])
    end
    return true
end

You can change these two to other numbers to decrease or increase the position range.

LUA:
2, 2
 
Last edited:
Back
Top