mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
handle various packets
This commit is contained in:
@@ -3,15 +3,17 @@ package channelserver
|
|||||||
import (
|
import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"erupe-ce/common/byteframe"
|
"erupe-ce/common/byteframe"
|
||||||
|
"erupe-ce/common/stringsupport"
|
||||||
"erupe-ce/network/mhfpacket"
|
"erupe-ce/network/mhfpacket"
|
||||||
)
|
)
|
||||||
|
|
||||||
func handleMsgMhfGetUdTacticsPoint(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfGetUdTacticsPoint(s *Session, p mhfpacket.MHFPacket) {
|
||||||
// Diva defense interception points
|
|
||||||
pkt := p.(*mhfpacket.MsgMhfGetUdTacticsPoint)
|
pkt := p.(*mhfpacket.MsgMhfGetUdTacticsPoint)
|
||||||
// Temporary canned response
|
bf := byteframe.NewByteFrame()
|
||||||
data, _ := hex.DecodeString("000000A08F0BE2DAE30BE30AE2EAE2E9E2E8E2F5E2F3E2F2E2F1E2BB")
|
bf.WriteBool(false) // Unk, will not update if true
|
||||||
doAckBufSucceed(s, pkt.AckHandle, data)
|
bf.WriteUint32(0)
|
||||||
|
bf.WriteUint8(3) // Unk
|
||||||
|
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleMsgMhfAddUdTacticsPoint(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfAddUdTacticsPoint(s *Session, p mhfpacket.MHFPacket) {
|
||||||
@@ -55,9 +57,15 @@ func handleMsgMhfGetUdTacticsRemainingPoint(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
|
|
||||||
func handleMsgMhfGetUdTacticsRanking(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfGetUdTacticsRanking(s *Session, p mhfpacket.MHFPacket) {
|
||||||
pkt := p.(*mhfpacket.MsgMhfGetUdTacticsRanking)
|
pkt := p.(*mhfpacket.MsgMhfGetUdTacticsRanking)
|
||||||
// Temporary canned response
|
bf := byteframe.NewByteFrame()
|
||||||
data, _ := hex.DecodeString("00000515000005150000CEB4000003CE000003CE0000CEB44D49444E494748542D414E47454C0000000000000000000000")
|
bf.WriteUint32(0) // ranking
|
||||||
doAckBufSucceed(s, pkt.AckHandle, data)
|
bf.WriteUint32(0) // rankingDupe?
|
||||||
|
bf.WriteUint32(0) // guildPoints
|
||||||
|
bf.WriteUint32(0) // unk
|
||||||
|
bf.WriteUint32(0) // unkDupe?
|
||||||
|
bf.WriteUint32(0) // guildPointsDupe?
|
||||||
|
bf.WriteBytes(stringsupport.PaddedString("", 25, true))
|
||||||
|
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleMsgMhfSetUdTacticsFollower(s *Session, p mhfpacket.MHFPacket) {}
|
func handleMsgMhfSetUdTacticsFollower(s *Session, p mhfpacket.MHFPacket) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user