From 51794fd47961d327aa16d5287561f85b08b355d9 Mon Sep 17 00:00:00 2001 From: wish Date: Fri, 22 Jul 2022 22:31:32 +1000 Subject: [PATCH] parse enumerateguildtresure further --- .../msg_mhf_enumerate_guild_tresure.go | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Erupe/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go b/Erupe/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go index 0e2d53505..61475d655 100644 --- a/Erupe/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go +++ b/Erupe/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go @@ -1,18 +1,18 @@ package mhfpacket -import ( - "errors" +import ( + "errors" - "erupe-ce/network/clientctx" - "erupe-ce/network" "erupe-ce/common/byteframe" + "erupe-ce/network" + "erupe-ce/network/clientctx" ) // MsgMhfEnumerateGuildTresure represents the MSG_MHF_ENUMERATE_GUILD_TRESURE -type MsgMhfEnumerateGuildTresure struct{ - AckHandle uint32 - Unk0 uint16 - Unk1 uint32 +type MsgMhfEnumerateGuildTresure struct { + AckHandle uint32 + MaxHunts uint16 + Unk uint32 } // Opcode returns the ID associated with this packet type. @@ -23,8 +23,10 @@ func (m *MsgMhfEnumerateGuildTresure) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfEnumerateGuildTresure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { m.AckHandle = bf.ReadUint32() - m.Unk0 = bf.ReadUint16() - m.Unk1 = bf.ReadUint32() + m.MaxHunts = bf.ReadUint16() + // Changes with MaxHunts + // 0 if MaxHunts = 1, 1 if MaxHunts = 30 + m.Unk = bf.ReadUint32() return nil }