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

Random teleport

Code:
local t = {
	{x = 100, y = 100, z = 7},
	{x = 100, y = 100, z = 7},
	{x = 100, y = 100, z = 7}
}
function onStepIn(cid, item, position, fromPosition)
	local v = t[math.random(#t)]
	doSendMagicEffect(position, CONST_ME_TELEPORT)
	doTeleportThing(cid, v)
	doSendMagicEffect(v, CONST_ME_TELEPORT)
end
 
@up was first. :C Boring. :C

It is an onStepIn, which means it should be located in data/movements/script. And then loaded from data/movements/movements.xml
 
Last edited:
Back
Top