I'm trying to add 250 chargess amulet to my quest, but it only comes with 100 charges, how to do?
tfs 0.4
tfs 0.4
LUA:
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 8100) == -1 then
if getPlayerFreeCap(cid) >= 10 then
local bag = doPlayerAddItem(cid,1991,1)
doAddContainerItem(bag,2193,1)
doAddContainerItem(bag,2214,1)
doAddContainerItem(bag,2162,1)
doAddContainerItem(bag,2200,250)
setPlayerStorageValue(cid,8100,1)
doPlayerSendTextMessage(cid,25,"You have found a green bag!")
else
doPlayerSendTextMessage(cid,25,"You need capacity!")
end
else
doPlayerSendTextMessage(cid,25,"It's empty.")
end
return TRUE
end