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

i need an easy global event script

extasy

New Member
Joined
Oct 28, 2010
Messages
14
Reaction score
0
Location
Spain
i have a war ot and i need a script to teleport all players to X zone each 15 minutes
i think its a global event script

thanks
 
LUA:
local loc = { --locations
	[1] = {5} -- [number {lastnumber+1 (so 2 after this)}], id of town
	}

local t = 0
function onThink(interval)
local r = math.random(1,#loc)
	
	table.insert(t,r)
	for _,pid in ipairs(getPlayersOnline()) do
		doTeleportThing(pid,getTownTemplePosition(t))
		doPlayerSendTextMessage(pid,MESSAGE_STATUS_CONSOLE_RED,'Map changed to '..getTownName(t)..'.')
	end
	return true
end
 
Huh you really create ot? Ohhh... Don't do that...


Code:
	<globalevent name="eventName" interval="900000" event="script" value="fileName.lua"/>
 
Back
Top