Albert José
Rambocop Infernus
I have created a system to give to the players a "coin" their store inbox (purse), the idea is that they can't remove the item from there, allowing them to buy some special items using a lever system, but for some reason the function player:removeItem(id, count) isn't working.
There is the code snippet from my lua code to add items at store:
There is the code snippet from my lua code to add items at store:
Lua:
function Player:addStoreItemEx(item)
local storeInbox = self:getStoreInbox()
if storeInbox then
item:moveTo(storeInbox)
return true
end
return false
end