hmm
i make a test and i see not work function fine: doPlayerRemoveMoney
is working fine in another server 841 but in this TFS remove my money but no give me the item... stranger no?
function giveItemToPlayer(cid, itemid, count, cost, topos)
if (doPlayerRemoveMoney(cid, cost) == 1) then
doPlayerAddItem(cid, itemid, count)
doSendMagicEffect(topos, 12)
else
doPlayerSendCancel(cid, "You don\'t have enough money, you need ".. cost .." gold coins.")
return 0
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 2300 then ------------BP BROWM
giveItemToPlayer(cid, 1988, 1, 20, topos)
elseif item.actionid == 2301 then ------------BAG GREEND
giveItemToPlayer(cid, 1991, 1, 10, topos)
elseif item.actionid == 2302 then ------------BAG GREEND
giveItemToPlayer(cid, 1992, 1, 10, topos)
end
return 1
end