mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 15:34:38 +01:00
add legacy support for Frontier Point exchanges
This commit is contained in:
@@ -693,8 +693,13 @@ func handleMsgMhfGetFpointExchangeList(s *Session, p mhfpacket.MHFPacket) {
|
||||
exchanges = append(exchanges, exchange)
|
||||
}
|
||||
}
|
||||
bf.WriteUint16(uint16(len(exchanges)))
|
||||
bf.WriteUint16(buyables)
|
||||
if _config.ErupeConfig.RealClientMode <= _config.Z2 {
|
||||
bf.WriteUint8(uint8(len(exchanges)))
|
||||
bf.WriteUint8(uint8(buyables))
|
||||
} else {
|
||||
bf.WriteUint16(uint16(len(exchanges)))
|
||||
bf.WriteUint16(buyables)
|
||||
}
|
||||
for _, e := range exchanges {
|
||||
bf.WriteUint32(e.ID)
|
||||
bf.WriteUint16(0)
|
||||
|
||||
Reference in New Issue
Block a user