mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
Finished accepting buy/sell market item offers, few minor fixes.
This commit is contained in:
@@ -217,12 +217,14 @@ function MarketProtocol.sendMarketCancelOffer(counter)
|
||||
end
|
||||
end
|
||||
|
||||
function MarketProtocol.sendMarketAcceptOffer(counter)
|
||||
function MarketProtocol.sendMarketAcceptOffer(timestamp, counter, amount)
|
||||
if g_game.getFeature(GamePlayerMarket) then
|
||||
local msg = OutputMessage.create()
|
||||
msg:addU8(ClientOpcodes.ClientMarketAccept)
|
||||
msg:addU32(os.time())
|
||||
msg:addU32(timestamp)
|
||||
msg:addU16(counter)
|
||||
msg:addU16(amount)
|
||||
print('sent')
|
||||
send(msg)
|
||||
else
|
||||
g_logger.error('MarketProtocol.sendMarketAcceptOffer does not support the current protocol.')
|
||||
|
||||
Reference in New Issue
Block a user