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

help with a script

donacool

Mapper Scripter Ot Owner
Joined
Jan 15, 2010
Messages
97
Reaction score
0
can someone post a script that i can take at base of a onStepIn function that if you walk over a tile with a uid of x u get teleported to another tile
its for an 8.54 tfs

I WILL GIVE REP++
 
Code:
local toPos = {x = 1000, y = 1000, z = 7}

function onStepIn (cid, item, position, fromPosition)
  if item.uid == UID_HERE then
    return doTeleportThing(cid, toPos)
  end
end
 
Last edited:
but if i want that if the player is level 50- it get teleported and if the player is 50+ it dont get teleported?
 
this script is okey?
Code:
local toPos = {x = 32514, y = 23490, z = 7}
function onStepIn(cid, item, position, fromPosition)
	if item.itemuid == 65532 then
		if doPlayerGetLevel(cid) >= 50 then
			doPlayerSendTextMessage(cid, 21, "Welcome !")
		else
			doPlayerSendCancel(cid, 21, "You need level 50 to enter this room !")
		end
		return doTeleportThing(cid, toPos)
end
 
Code:
local toPos = {x = 1000, y = 1000, z = 7}

function onStepIn (cid, item, position, fromPosition)
  if item.uid == UID_HERE then
    return doTeleportThing(cid, toPos)
  end
end

Check if its a player >.>

@UP

Code:
local toPos = {x = 1000, y = 1000, z = 7}

function onStepIn (cid, item, position, fromPosition)
	if(isPlayer(cid) and getPlayerLevel(cid) >= 50) then
		if item.uid == UID_HERE then
			doTeleportThing(cid, toPos)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome!")
		else
			doPlayerSendCancel(cid, "Sorry you need level 50 to enter.")
			doTeleportThing(cid, fromPosition, true)
		end
	end
end
 
Back
Top