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

Lua Teleport by Level

hellpsy

Mapper
Joined
Dec 16, 2008
Messages
345
Reaction score
466
Location
Mexico
Hello, I need a teleport script (with the usual teleport) , for example, if you're Level 1-150 you move towards x y z position, and if you're Level 151 + you move towards x y z position




I used google translator
 
Lua:
function onStepIn(cid, item, position, fromPosition)
	local pos
	if isPlayer(cid) and getPlayerLevel(cid) >= 150 then
		pos = {x=100, y=100, z=7} -- if player is level 150 or higher
	else
		pos = {x=100, y=100, z=7} -- lower than 150 or monster
	end
	doTeleportThing(cid, pos)
	doSendMagicEffect(position, CONST_ME_TELEPORT)
	doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
 
[10/10/2010 14:42:49] [Warning - Event::loadScript] Event onUse not found (data/actions/scripts/other/levelteleport.lua)
[10/10/2010 14:42:50] [Warning - MoveEvents::addEvent] Duplicate move event found: 1387
 
Back
Top