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

why the tp action is not working? help me :D

CheatsBCN

New Member
Joined
Mar 6, 2012
Messages
131
Reaction score
1
Hello y rtyed to do the script myself so ppl wont complain about me asking it but i cant manage how to do it and as u may imagine i have to ask a bit. i want a tp to teleport only one character each 5 min, when a char goes in tp the teleport wont teleport agian to rewrd room till 5min passes. it will teleport u next to the tp again.

i added on remers map a tp with unique id 3333


then on creaturevents


PHP:
	<movevent type="StepIn" uniqueid="3333" event="script" value="removetp.lua"/>


and finally i added the script

PHP:
function onStepIn(cid, item, position, fromPosition)
 
local teleportto {x=1206, y=1121, z=5}
local teleportcreate {x=1206, y=1123, z=5}
local teleportback {x=1206, y=1124, z=5}
local seg = 30 --seconds to make it work again
local get = getThingfromPos(teleport)
  if get.uid == 3333 then
	local abierto = true
	if abierto then
		doTeleportThing(cid, teleporto)
		abierto = false
		addEvent(removeTeleport, (1000*seg))
	else
		doTeleportThing(cid, teleportback)
	end
	end
	end
	
	
function removeTeleport()
abierto = true
end



but when i steep in nothing happnes :(
 
Back
Top