mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-28 02:23:37 +01:00
fix compatibility
This commit is contained in:
@@ -27,9 +27,12 @@ type DevModeOptions struct {
|
|||||||
CleanDB bool // Automatically wipes the DB on server reset.
|
CleanDB bool // Automatically wipes the DB on server reset.
|
||||||
MaxLauncherHR bool // Sets the HR returned in the launcher to HR9 so that you can join non-beginner worlds.
|
MaxLauncherHR bool // Sets the HR returned in the launcher to HR9 so that you can join non-beginner worlds.
|
||||||
FixedStageID bool // Causes all move_stage to use the ID sl1Ns200p0a0u0 to get you into all stages
|
FixedStageID bool // Causes all move_stage to use the ID sl1Ns200p0a0u0 to get you into all stages
|
||||||
|
LogInboundMessages bool // Log all messages sent to the server
|
||||||
LogOutboundMessages bool // Log all messages sent to the clients
|
LogOutboundMessages bool // Log all messages sent to the clients
|
||||||
Event int // Changes the current event
|
DivaEvent int // Diva Defense event status
|
||||||
OpcodeMessages bool // Get all message for Opcodes
|
FestaEvent int // Hunter's Festa event status
|
||||||
|
TournamentEvent int // VS Tournament event status
|
||||||
|
MezFesEvent bool // MezFes status
|
||||||
SaveDumps SaveDumpOptions
|
SaveDumps SaveDumpOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -406,26 +406,6 @@ func handleMsgMhfEnumeratePrice(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
doAckBufSucceed(s, pkt.AckHandle, data)
|
doAckBufSucceed(s, pkt.AckHandle, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleMsgMhfEnumerateRanking(s *Session, p mhfpacket.MHFPacket) {
|
|
||||||
pkt := p.(*mhfpacket.MsgMhfEnumerateRanking)
|
|
||||||
|
|
||||||
resp := byteframe.NewByteFrame()
|
|
||||||
resp.WriteUint32(0)
|
|
||||||
resp.WriteUint32(0)
|
|
||||||
resp.WriteUint32(0)
|
|
||||||
resp.WriteUint32(0)
|
|
||||||
resp.WriteUint32(0)
|
|
||||||
resp.WriteUint8(0)
|
|
||||||
resp.WriteUint8(0) // Some string length following this field.
|
|
||||||
resp.WriteUint16(0) // Entry type 1 count
|
|
||||||
resp.WriteUint8(0) // Entry type 2 count
|
|
||||||
|
|
||||||
doAckBufSucceed(s, pkt.AckHandle, resp.Data())
|
|
||||||
|
|
||||||
// Update the client's rights as well:
|
|
||||||
updateRights(s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func handleMsgMhfEnumerateOrder(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfEnumerateOrder(s *Session, p mhfpacket.MHFPacket) {
|
||||||
pkt := p.(*mhfpacket.MsgMhfEnumerateOrder)
|
pkt := p.(*mhfpacket.MsgMhfEnumerateOrder)
|
||||||
stubEnumerateNoResults(s, pkt.AckHandle)
|
stubEnumerateNoResults(s, pkt.AckHandle)
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ func handleMsgMhfUseKeepLoginBoost(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
func handleMsgMhfGetUdSchedule(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfGetUdSchedule(s *Session, p mhfpacket.MHFPacket) {
|
||||||
pkt := p.(*mhfpacket.MsgMhfGetUdSchedule)
|
pkt := p.(*mhfpacket.MsgMhfGetUdSchedule)
|
||||||
var t = timeServerFix.Tstatic_midnight()
|
var t = timeServerFix.Tstatic_midnight()
|
||||||
var event int = s.server.erupeConfig.DevModeOptions.Event
|
var event int = s.server.erupeConfig.DevModeOptions.DivaEvent
|
||||||
|
|
||||||
year, month, day := t.Date()
|
year, month, day := t.Date()
|
||||||
midnight := time.Date(year, month, day, 0, 0, 0, 0, t.Location())
|
midnight := time.Date(year, month, day, 0, 0, 0, 0, t.Location())
|
||||||
|
|||||||
@@ -1596,6 +1596,7 @@ func handleMsgMhfGetGuildMissionRecord(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
|
|
||||||
// No guild mission records = 0x190 empty bytes
|
// No guild mission records = 0x190 empty bytes
|
||||||
doAckBufSucceed(s, pkt.AckHandle, make([]byte, 0x190))
|
doAckBufSucceed(s, pkt.AckHandle, make([]byte, 0x190))
|
||||||
|
}
|
||||||
|
|
||||||
func handleMsgMhfAddGuildMissionCount(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfAddGuildMissionCount(s *Session, p mhfpacket.MHFPacket) {
|
||||||
pkt := p.(*mhfpacket.MsgMhfAddGuildMissionCount)
|
pkt := p.(*mhfpacket.MsgMhfAddGuildMissionCount)
|
||||||
|
|||||||
Reference in New Issue
Block a user