No tylko właśnie nie widze tam funkcji w której npc kupuje item od nas.
function doPlayerTakeItem(cid, itemid, amount)
return getPlayerItemCount(cid, itemid) >= amount and doPlayerRemoveItem(cid, itemid, amount)
end
to funkcja w libach
może
function doPlayerTakeItem(cid, itemid, amount)
local exhaustionInSeconds = 3
local storage = 34231
if(exhaustion.check(cid, storage) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cant buy it so fast.")
return 0
end
return getPlayerItemCount(cid, itemid) >= amount and doPlayerRemoveItem(cid, itemid, amount)
exhaustion.set(cid, storage, exhaustionInSeconds)
end
Zrobilem ale i tak to chyba nie to.