kennyubuntu
Member
- Joined
- May 20, 2016
- Messages
- 150
- Reaction score
- 13
I'm tryng to when player use this item
Item inside depot, show the options to market based on this script
https://otland.net/threads/offline-player-to-player-item-trader-auction-system.51447/
Someone could help me?
@DangerII make this script, but just show the commands, not show the items...
How to fix?
Its show me just
Code:
14:44 You see a depot chest (Vol:30).
ItemID: [2594].
Item inside depot, show the options to market based on this script
https://otland.net/threads/offline-player-to-player-item-trader-auction-system.51447/
Someone could help me?
@DangerII make this script, but just show the commands, not show the items...
How to fix?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local result = db.getResult("SELECT * FROM `auction_system` ORDER BY `auction_system`.`id` ASC")
local msg = "Trade Offline:\n\n!offer buy, ID\n!offer remove, ID\n!offer add, ItemName, ItemPrice, ItemCount\n\n"
if(result:getID() == -1) then
repeat
local id = result:getDataString("id")
local name = getPlayerNameByGUID(result:getDataString("player"))
local item_name = getItemNameById(result:getDataString("item_id"))
local count = result:getDataString("count")
local custo = result:getDataString("cost")/1000
local custo2 = result:getDataString("cost")
if isPlayer(cid) then
msg = ""..msg.."ID : "..id.."\nItem Name : "..item_name.." - Item Count : "..count.." - Item Cust : "..custo.."k("..custo2.."GP) - Dono : "..name.."\n"
end
until not result.next(result_plr)
result.free(result_plr)
end
doPlayerPopupFYI(cid, msg) return true
end
Its show me just
Code:
Trade Offline:
!offer buy, ID
!offer remove,ID
!offer add, ItemName, ItemPrice, ItemCount