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

Fence- Level and teleport

Bunna

Z-Team
Joined
May 27, 2008
Messages
131
Reaction score
0
Location
Sweden
Hello, I need a script that makes you teleported to a certain point x, y, z with a certain level if you click on a particular matter, we must at least be level 150 for it to teleport one, and it is 0.3. 6 version
 
Like this?
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local teleport = {x=111, y=111, z=7}
	if getPlayerLevel(cid) >= 150 then
		doTeleportThing(cid, teleport)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	else
		doPlayerSendCancel(cid, "You have to be level 150 or above to use this teleport.")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
return true
end
 
Back
Top