Hello, how can I make script which works for example like that:
player takes reward:
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
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
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: