mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
Some more market fixes and ascetics
This commit is contained in:
@@ -205,11 +205,11 @@ function MarketProtocol.sendMarketCreateOffer(type, spriteId, amount, price, ano
|
||||
end
|
||||
end
|
||||
|
||||
function MarketProtocol.sendMarketCancelOffer(counter)
|
||||
function MarketProtocol.sendMarketCancelOffer(timestamp, counter)
|
||||
if g_game.getFeature(GamePlayerMarket) then
|
||||
local msg = OutputMessage.create()
|
||||
msg:addU8(ClientOpcodes.ClientMarketCancel)
|
||||
msg:addU32(os.time())
|
||||
msg:addU32(timestamp)
|
||||
msg:addU16(counter)
|
||||
send(msg)
|
||||
else
|
||||
@@ -224,7 +224,6 @@ function MarketProtocol.sendMarketAcceptOffer(timestamp, counter, amount)
|
||||
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