hello i have just made a quest that you get multiplied items from in the same chest.
and i use this script:
The thing that buggs is that if i dont have the right cap (i have to low cap) so will i just resive some of the items in the bag. not all of them.
So i wounder is it posible to add some kind of cap checker? or something that can help my players avoide this sort of losts
and i use this script:
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 50016 then
if getPlayerStorageValue(cid,40003) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a bag.")
local bag = doPlayerAddItem(cid,1987,1)
doAddContainerItem(bag,2432,1)
doAddContainerItem(bag,2492,1)
doAddContainerItem(bag,2516,1)
doAddContainerItem(bag,2160,4)
setPlayerStorageValue(cid,40003,1)
else
doPlayerSendTextMessage(cid,25,"The is empty.")
end
end
return TRUE
end
The thing that buggs is that if i dont have the right cap (i have to low cap) so will i just resive some of the items in the bag. not all of them.
So i wounder is it posible to add some kind of cap checker? or something that can help my players avoide this sort of losts