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

Solved Teleport -How to make to Tp jump in server-

killing

Member
Joined
Feb 23, 2012
Messages
815
Reaction score
11
Location
BIH
hello
I need agend Just little help..
How to make to tp jump into server evry 1 hourd (I mean Zombie Tp)
I made a little weird Zombie event lol..
I need Script for tp,Special Tp.xD :p
 
Last edited:
Make an global event with inteval. And local = pos bla bla where the teleport gonna lead

try make something like:

LUA:
function onThink(interval, lastExecution, thinkInterval)
local pos = {x = 1954, y = 879, z = 10} --- Where tp gonna go
local tpcreate = {x = 1954, y = 879, z = 10} --- where to create the tp
    doCreateTeleport(1387, pos, tpcreate)
	return true
end

Then add line to globalevents.xml like :

LUA:
<globalevent name="tp" interval="2000" event="script" value="tp.lua"/>
 
Last edited:
Make an global event with inteval. And local = pos bla bla where the teleport gonna lead

try make something like:

LUA:
function onThink(interval, lastExecution, thinkInterval)
local pos = {x = 1954, y = 879, z = 10} --- Where tp gonna go
local tpcreate = {x = 1954, y = 879, z = 10} --- where to create the tp
    doCreateTeleport(1387, pos, tpcreate)
	return true
end

Then add line to globalevents.xml like :

LUA:
<globalevent name="tp" interval="2000" event="script" value="tp.lua"/>


Can it Remove it self?
I cant be online evry Hour lol..?
 
LUA:
local config = {
	topos = {x=94,y=119,z=7}, -- where player goes to
	tppos= {x=94,y=117,z=7}, -- where teleport is created
	removetime = 60 -- time in seconds
}

function removeTele()
	doRemoveItem(getTileItemById(config.tppos,1387).uid,1)
	doBroadcastMessage("The teleport is removed.")
	return true
end 

function onThink(interval, lastExecution)
	doBroadcastMessage("The teleport is created!")
	doCreateTeleport(1387, config.topos, config.tppos)
	addEvent(removeTele, config.removetime * 1000)
	return true
end
 
LUA:
local config = {
	topos = {x=94,y=119,z=7}, -- where player goes to
	tppos= {x=94,y=117,z=7}, -- where teleport is created
	removetime = 60 -- time in seconds
}

function removeTele()
	doRemoveItem(getTileItemById(config.tppos,1387).uid,1)
	doBroadcastMessage("The teleport is removed.")
	return true
end 

function onThink(interval, lastExecution)
	doBroadcastMessage("The teleport is created!")
	doCreateTeleport(1387, config.topos, config.tppos)
	addEvent(removeTele, config.removetime * 1000)
	return true
end


If I may ask.
Did u create that script now?
Or you have it from someone?
 
Those are just a few lines, of course I made it. What about showing some appreciation for once instead of accusing people who help you.
 
Back
Top