Creon
Well-Known Member
So I have this script for the Small Rubies Quest, but it's giving an unlimited amount of rubies. How do I add a storage for it?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 10005) < 1 then
local bag = doPlayerAddItem(cid, 2147, 6)
doPlayerSendTextMessage(cid, MESSAGE_INFO_ADVANCE, "You have found 6 small rubies.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_ADVANCE, "It is empty.")
end
return TRUE
end