Some more market fixes and ascetics

This commit is contained in:
BeniS
2012-07-30 20:02:02 +12:00
parent 487dafb8c0
commit 70fba12d6c
3 changed files with 28 additions and 18 deletions

View File

@@ -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.')