When i Use the action Id i Buy the bp but only 1 mana potion can anyone help me?
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, 10000) == 1 then
backpack = doPlayerAddItem(cid, 2001, 1)
doAddContainerItem(backpack, 7620, 20) -- here i put 20 amount but only give 1 mana potion
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end