• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Different door script needed

Triggah

TrigCore
Joined
Aug 1, 2007
Messages
436
Reaction score
2
I need a door script:

need specific item to be able to pass through this door, if dont have item then cant pass.

how do i do this?
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local itemId = xxxx

	if (getPlayerItemCount(cid, itemId) <= 0) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can\'t pass.")
	else
		doTransformItem(item.uid, item.itemid + 1)
		doTeleportThing(cid, fromPosition, TRUE)
		doPlayerRemoveItem(cid, itemId)
	end

	return TRUE
end
 
Back
Top