• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved You don't have enough money, on buy container.

Caduceus

Unknown Member
Joined
May 10, 2010
Messages
321
Solutions
2
Reaction score
24
I am using NPC working with balance., however when I try to use buy bp sd, "shopModule:addBuyableItemContainer" does not recognize players bank balance. Returning; You do not have enough money. However if I use coins, the npc recognizes the players money. How can I resolve this?

standard lib\npcsystem\modules minus edits from post above: otland/forgottenserver
 
Added the local function to the npc.lua, resolved my issue.

Code:
local function doPlayerRemoveMoney(cid, amount)
    local player = Player(cid)
    if player then
        return player:removeMoneyNpc(amount)
    end
    return false
end
 
Back
Top