atomic chavez
Hi there
Im having some troubles since some of my quests use this kind of coding when there is more than one prize to choose from:
The problem is that, if the player opening the chest has NO CAPACITY he will get the "you do not have enough cap..." and setPlayerStorageValue will go true regardless if the player took the prize or not, so he will not be able to open the chest again.
Thanks in advance I will rep you if you help me ;D
PHP:
if item.uid == 5001 then
queststatus = getPlayerStorageValue(cid,5000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,25,"You have found a spellbook of lost souls.")
doPlayerAddItem(cid,8903,1)
setPlayerStorageValue(cid,5000,1)
else
doPlayerSendTextMessage(cid,25,"It is empty.")
end
The problem is that, if the player opening the chest has NO CAPACITY he will get the "you do not have enough cap..." and setPlayerStorageValue will go true regardless if the player took the prize or not, so he will not be able to open the chest again.
Thanks in advance I will rep you if you help me ;D