diff --git a/config.json b/config.json index aa1521a74..b057d1700 100644 --- a/config.json +++ b/config.json @@ -44,7 +44,8 @@ "MezfesSoloTickets": 10, "MezfesGroupTickets": 4, "GUrgentRate": 10, - "EnableHiganjimaEvent": false + "EnableHiganjimaEvent": false, + "EnableNierEvent": false }, "Discord": { "Enabled": false, diff --git a/config/config.go b/config/config.go index a500a2d2f..7666a069b 100644 --- a/config/config.go +++ b/config/config.go @@ -73,7 +73,8 @@ type GameplayOptions struct { MezfesSoloTickets uint32 // Number of solo tickets given weekly MezfesGroupTickets uint32 // Number of group tickets given weekly GUrgentRate uint16 // Adjusts the rate of G Urgent quests spawning - EnableHiganjimaEvent bool // Enables the Higanjima event + EnableHiganjimaEvent bool // Enables the Higanjima event in the Rasta Bar + EnableNierEvent bool // Enables the Nier event in the Rasta Bar } // Discord holds the discord integration config. diff --git a/server/channelserver/handlers_quest.go b/server/channelserver/handlers_quest.go index cbeb88cad..4fd272927 100644 --- a/server/channelserver/handlers_quest.go +++ b/server/channelserver/handlers_quest.go @@ -191,7 +191,6 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) { {ID: 1147, Value: 0}, {ID: 1149, Value: 20}, {ID: 1152, Value: 1130}, - {ID: 1153, Value: 0}, {ID: 1154, Value: 0}, {ID: 1155, Value: 0}, {ID: 1158, Value: 1}, @@ -589,6 +588,12 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) { tuneValues = append(tuneValues, tuneValue{1144, 0}) } + if s.server.erupeConfig.GameplayOptions.EnableNierEvent { + tuneValues = append(tuneValues, tuneValue{1153, 1}) + } else { + tuneValues = append(tuneValues, tuneValue{1153, 0}) + } + offset := uint16(time.Now().Unix()) bf.WriteUint16(offset) bf.WriteUint16(uint16(len(tuneValues)))