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

Lua Quest Box > Key > Door

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
I need some help ..
can some post a script or smth for this
you go to a quest box loot it and you found
A Key ..
i want that key to a door .. ? how do i make that ?
and after you enter the door the door close auto ..
 
In old system
Code:
function onUse(cid, item, frompos, item2, topos)
   	if item.uid == 1500 then
   		queststatus = getPlayerStorageValue(cid,1500)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a crystal key.")
   			key = doPlayerAddItem(cid,[B]xxxx[/B],1)
			doSetItemActionId(key,[B]yyy[/B])
   			setPlayerStorageValue(cid,1500,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	end
end
 
In old system
Code:
function onUse(cid, item, frompos, item2, topos)
   	if item.uid == 1500 then
   		queststatus = getPlayerStorageValue(cid,1500)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a crystal key.")
   			key = doPlayerAddItem(cid,[B]xxxx[/B],1)
			doSetItemActionId(key,[B]yyy[/B])
   			setPlayerStorageValue(cid,1500,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	end
end

read 1 post up
+
i need it to be for a lvl :O like 200+
 
Back
Top