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

level door do levela

nek20

New Member
Joined
Dec 18, 2009
Messages
51
Reaction score
0
potrzebuje skrypty na level door przez które bedzie można przechodzić tylko do pewnego levela
 
leveldoor.lua
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local cidPosition = getCreaturePosition(cid)
		if (getPlayerLevel(cid) <= 89) then
			if cidPosition.x < toPosition.x then
				doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
			else
				doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
			end
			return TRUE
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only people with level 89 or below can enter.")
			return TRUE
	end
	return FALSE
end
 
Back
Top