mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
test backwards compatible event quests
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"erupe-ce/common/byteframe"
|
"erupe-ce/common/byteframe"
|
||||||
"erupe-ce/common/decryption"
|
"erupe-ce/common/decryption"
|
||||||
ps "erupe-ce/common/pascalstring"
|
ps "erupe-ce/common/pascalstring"
|
||||||
|
_config "erupe-ce/config"
|
||||||
"erupe-ce/network/mhfpacket"
|
"erupe-ce/network/mhfpacket"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
@@ -177,7 +178,9 @@ func makeEventQuest(s *Session, rows *sql.Rows) ([]byte, error) {
|
|||||||
bf.WriteBool(true)
|
bf.WriteBool(true)
|
||||||
}
|
}
|
||||||
bf.WriteUint16(0)
|
bf.WriteUint16(0)
|
||||||
bf.WriteUint32(mark)
|
if _config.ErupeConfig.RealClientMode >= _config.G1 {
|
||||||
|
bf.WriteUint32(mark)
|
||||||
|
}
|
||||||
bf.WriteUint16(0)
|
bf.WriteUint16(0)
|
||||||
bf.WriteUint16(uint16(len(data)))
|
bf.WriteUint16(uint16(len(data)))
|
||||||
bf.WriteBytes(data)
|
bf.WriteBytes(data)
|
||||||
@@ -202,10 +205,18 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
totalCount++
|
totalCount++
|
||||||
if totalCount > pkt.Offset && len(bf.Data()) < 60000 {
|
if _config.ErupeConfig.RealClientMode == _config.F5 {
|
||||||
returnedCount++
|
if totalCount > pkt.Offset && len(bf.Data()) < 21550 {
|
||||||
bf.WriteBytes(data)
|
returnedCount++
|
||||||
continue
|
bf.WriteBytes(data)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if totalCount > pkt.Offset && len(bf.Data()) < 60000 {
|
||||||
|
returnedCount++
|
||||||
|
bf.WriteBytes(data)
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user