diff --git a/config.json b/config.json index 4bc051030..9b578fe6e 100644 --- a/config.json +++ b/config.json @@ -73,6 +73,7 @@ {"Name": "HunterSupport", "Enabled": false}, {"Name": "NBoost", "Enabled": false}, {"Name": "NetCafe", "Enabled": true}, + {"Name": "OfficialCafe", "Enabled": true}, {"Name": "HLRenewing", "Enabled": true}, {"Name": "EXRenewing", "Enabled": true} ], diff --git a/network/mhfpacket/msg_sys_update_right.go b/network/mhfpacket/msg_sys_update_right.go index 99f0da4ae..d6260c934 100644 --- a/network/mhfpacket/msg_sys_update_right.go +++ b/network/mhfpacket/msg_sys_update_right.go @@ -89,8 +89,10 @@ func Courses() []Course { {Aliases: []string{"Hiden", "Secret"}, ID: 10}, // Secret {Aliases: []string{"HunterSupport", "HunterAid", "Support", "Aid", "Royal"}, ID: 11}, // Royal {Aliases: []string{"NBoost", "NetCafeBoost", "Boost"}, ID: 12}, - // 13-25 do nothing - {Aliases: []string{"NetCafe", "Cafe", "InternetCafe"}, ID: 26}, + // 13-19 = (unknown), 20 = DEBUG, 21 = COG_LINK_EXPIRED, 22 = 360_GOLD, 23 = PS3_TROP + {Aliases: []string{"COG"}, ID: 24}, + {Aliases: []string{"NetCafe", "Cafe", "InternetCafe"}, ID: 25}, + {Aliases: []string{"OfficialCafe", "Official"}, ID: 26}, {Aliases: []string{"HLRenewing", "HLR", "HLRenewal", "HLRenew"}, ID: 27}, {Aliases: []string{"EXRenewing", "EXR", "EXRenewal", "EXRenew"}, ID: 28}, {Aliases: []string{"Free"}, ID: 29}, diff --git a/server/channelserver/handlers.go b/server/channelserver/handlers.go index 9d5fd3a61..f09f13e2f 100644 --- a/server/channelserver/handlers.go +++ b/server/channelserver/handlers.go @@ -79,7 +79,7 @@ func updateRights(s *Session) { rights := []mhfpacket.ClientRight{{1, 0, 0}} var netcafeBitSet bool for _, course := range s.courses { - if (course.ID == 9 || course.ID == 26) && !netcafeBitSet { + if (course.ID == 9 || course.ID == 25 || course.ID == 26) && !netcafeBitSet { netcafeBitSet = true rightsInt += 0x40000000 // set netcafe bit rights = append(rights, mhfpacket.ClientRight{ID: 30})