PHP:
function onSay(cid, words, param)
local STORAGE = 31337
if doPlayerRemoveItem(cid, 7371, 1) then
doPlayerAddItem(cid, 9971, 10)
setPlayerStorageValue(cid, STORAGE, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You've traded a bronze goblet for 10GI.")
else
getPlayerStorageValue(cid, STORAGE)
doPlayerSendCancel(cid, "You don't have a Bronze Goblet. Go do the quest!")
end
return true
end
I don't get storage values, I want it so you can only do it once X_X.
Last edited: