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

script? if you help me i give a rep!

narko

vertrauenswürdig ~
Joined
Oct 19, 2008
Messages
1,317
Solutions
2
Reaction score
132
Location
Unknown
Hello, OTLanders i need this script:

Example:
If i put one item in the position create teleport if i remove item in the position, removes the teleport.
sorry for my bad English
 
try using this in globalevent make interval "1" if you not using 0.4

LUA:
local tpplace = {x=92,y=114,z=7}    -- place of tp
local itemplace = {x=92,y=117,z=7}    --place of item
local itemid = 2446    -- the itemid
local tpto =   {x=95,y=117,z=7}    --place that tp teleport to
function onThink(interval)
 if getTileItemById(itemplace,itemid).uid > 0 then
     if getTileItemById(tpplace,1387).uid < 1 then
	      doCreateTeleport(1387,tpto,tpplace)
	 end
 elseif getTileItemById(itemplace,itemid).uid < 1 then
     if getTileItemById(tpplace,1387).uid > 0 then
	      doCleanTile(tpplace)
	 end
 end
return true
end
 
Back
Top