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?
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 10005) < 1 then
local bag = doPlayerAddItem(cid, 2147, 6)...