decode GetUdTotalPointInfo

This commit is contained in:
wish
2023-02-28 18:14:59 +11:00
parent 40fe5fc233
commit 0eb4a04264

View File

@@ -157,9 +157,31 @@ func handleMsgMhfGetUdMyPoint(s *Session, p mhfpacket.MHFPacket) {
func handleMsgMhfGetUdTotalPointInfo(s *Session, p mhfpacket.MHFPacket) {
pkt := p.(*mhfpacket.MsgMhfGetUdTotalPointInfo)
// Temporary canned response
data, _ := hex.DecodeString("00000000000007A12000000000000F424000000000001E848000000000002DC6C000000000003D090000000000004C4B4000000000005B8D8000000000006ACFC000000000007A1200000000000089544000000000009896800000000000E4E1C00000000001312D0000000000017D78400000000001C9C3800000000002160EC00000000002625A000000000002AEA5400000000002FAF0800000000003473BC0000000000393870000000000042C1D800000000004C4B40000000000055D4A800000000005F5E10000000000008954400000000001C9C3800000000003473BC00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001020300000000000000000000000000000000000000000000000000000000000000000000000000000000101F1420")
doAckBufSucceed(s, pkt.AckHandle, data)
bf := byteframe.NewByteFrame()
bf.WriteUint8(0)
prayerUse := make([]uint64, 25)
prayerUseValues := []uint64{500000, 1000000, 2000000, 3000000, 4000000, 5000000, 6000000, 7000000, 8000000, 9000000, 10000000, 15000000, 20000000, 25000000, 30000000, 35000000, 40000000, 45000000, 50000000, 55000000, 60000000, 70000000, 80000000, 90000000, 100000000}
shopLevel := make([]uint64, 3)
shopLevelValues := []uint64{9000000, 30000000, 55000000}
for i := range prayerUseValues {
prayerUse[i] = prayerUseValues[i]
}
for i := range prayerUse {
bf.WriteUint64(prayerUse[i])
}
for i := range shopLevelValues {
shopLevel[i] = shopLevelValues[i]
}
for i := range shopLevel {
bf.WriteUint64(shopLevel[i])
}
bf.WriteBytes(make([]byte, 312))
bf.WriteUint32(0x00010203)
bf.WriteBytes(make([]byte, 36))
totalSouls := uint64(1000000000)
bf.WriteUint64(totalSouls)
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
}
func handleMsgMhfGetUdSelectedColorInfo(s *Session, p mhfpacket.MHFPacket) {