• 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 setPlayerStorageValue = pass by door?

Eraghon

New Member
Joined
Mar 2, 2009
Messages
94
Reaction score
0
Location
Szczecin
Hello, how can I make script which works for example like that:

player takes reward:
Code:
function onUse(cid, item, frompos, item2, topos)


	if item.uid == 62348 then
		if getPlayerStorageValue(cid,62348) == -1 then
			doPlayerSendTextMessage(cid,25,"You have found a blue legs.")
			doPlayerAddItem(cid,7730,1)
			setPlayerStorageValue(cid,62348,1)
		else
			doPlayerSendTextMessage(cid,25,"This chest is empty.")
		end
	
	end
	return TRUE
end
Now he has storage value and only with this he can pass by door.
Or maybe is there another way to do that? player takes reward and can exit by door but normal player which hasn't already done quest can't pass by door
 
Last edited:
Yea door should automatically close
Can I use right door?
doors.png

Or have I to use left?
 
Back
Top