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

Teleporting tile.

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Reaction score
9
I was wondering if someone could help me out on making a tile that when stepped on, If your level 10k+ it tps you here if your under 10k then it tps you somewhere else. :/ Any idea's on how to construct it? Or where I should start. I'm not very good at scripting yet. But I wanna learn so I don't expect every thing to be handed to me. I just acquire some assistance. Thx.
 
LUA:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) and getPlayerLevel(cid) >= 10000 then
		pos = {x=100, y=100, z=7}
	else
		pos = {x=200, y=200, z=7}
	end
	doTeleportThing(cid, pos)
	doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
 
doPlayerSendCancel(cid, 'You have to be level 200 to enter!')
or
doCreatureSay(cid, 'You have to be level 200 to enter!', TALKTYPE_ORANGE_1, false, cid)
or
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have to be level 200 to enter!')
LUA:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		if getPlayerLevel(cid) >= 10000 then
			pos = {x=100, y=100, z=7}
		else
			< here >
			pos = {x=200, y=200, z=7}
		end
		doTeleportThing(cid, pos)
		doSendMagicEffect(pos, CONST_ME_TELEPORT)
	end
end
 
Back
Top