Init Conquest

This commit is contained in:
stratic-dev
2024-07-31 18:13:40 +01:00
parent 2d0cce719b
commit ed5489571b
7 changed files with 192 additions and 38 deletions

View File

@@ -60,6 +60,7 @@ func handleMsgMhfGetEarthValue(s *Session, p mhfpacket.MHFPacket) {
}
func cleanupEarthStatus(s *Session) {
s.server.db.Exec(`DELETE FROM events WHERE event_type='earth'`)
s.server.db.Exec(`UPDATE characters SET conquest_data=NULL`)
}
func generateEarthStatusTimestamps(s *Session, start uint32, debug bool) []uint32 {