#include "stdafx.h" #include "ServerGroup.h" #include void SetGameServerNation(CComboBox& NationComboBox) { NationComboBox.InsertString(0, "0 = Korea"); NationComboBox.InsertString(1, "1 = Global"); } void SetServerGroup(CComboBox& ServerGroupComboBox) { ServerGroupComboBox.InsertString(0, "0 = Test"); ServerGroupComboBox.InsertString(1, "1 = Ichman"); ServerGroupComboBox.InsertString(2, "2 = Asia"); ServerGroupComboBox.InsertString(3, "3 = 3"); ServerGroupComboBox.InsertString(4, "4 = 4"); ServerGroupComboBox.InsertString(5, "5 = 5"); ServerGroupComboBox.InsertString(6, "6 = 6"); ServerGroupComboBox.InsertString(7, "7 = 7"); ServerGroupComboBox.InsertString(8, "8 = 8"); ServerGroupComboBox.InsertString(9, "9 = 9 (Battle Server)"); } void SetServerZone(CComboBox &ZoneCombo) { ZoneCombo.InsertString(0, "None"); ZoneCombo.InsertString(1, "Zone1 (Grand Cost)"); ZoneCombo.InsertString(2, "Zone2 (Rehan Spot)"); ZoneCombo.InsertString(3, "Zone3"); ZoneCombo.InsertString(4, "Zone4 (Sinor Island)"); ZoneCombo.InsertString(5, "Zone5 (Island of Pain)"); ZoneCombo.InsertString(6, "Zone6"); ZoneCombo.InsertString(7, "Zone7"); ZoneCombo.InsertString(8, "Zone8 (Caernarvon)"); ZoneCombo.InsertString(9, "Zone9 (Kartehena)"); ZoneCombo.InsertString(10, "Zone10"); ZoneCombo.InsertString(11, "Zone11"); ZoneCombo.InsertString(12, "Zone12 (Almighty Ground)"); ZoneCombo.InsertString(13, "Zone13"); ZoneCombo.InsertString(14, "Zone14 (Prison)"); ZoneCombo.InsertString(15, "Zone15"); ZoneCombo.InsertString(16, "Zone16 (Storn War(L))"); ZoneCombo.InsertString(17, "Zone17 (Storn War(M))"); ZoneCombo.InsertString(18, "Zone18 (Storn War(H))"); } void SetServerChannel(CComboBox& ServerChannelComboBox) { ServerChannelComboBox.InsertString(0, "CH1"); ServerChannelComboBox.InsertString(1, "CH2"); ServerChannelComboBox.InsertString(2, "CH3"); ServerChannelComboBox.InsertString(3, "CH4"); ServerChannelComboBox.InsertString(4, "CH5"); } void SetAuthType(CComboBox& AuthType) { AuthType.InsertString(CServerSetup::ROWGlobalAuth, "ROWGlobalAuth"); AuthType.InsertString(CServerSetup::HangameAuth, "HangameAuth"); AuthType.InsertString(CServerSetup::GamaAuth, "GamaAuth"); AuthType.InsertString(CServerSetup::YouxiLandAuth, "YouxiLandAuth"); AuthType.InsertString(CServerSetup::JapanAuth, "JapanAuth"); AuthType.InsertString(CServerSetup::GammaniaAuth, "GammaniaAuth"); } void SetBillingType(CComboBox& BillingType) { BillingType.InsertString(CServerSetup::ROWGlobalBilling, "ROWGlobalBilling"); BillingType.InsertString(CServerSetup::GamaBilling, "GamaBilling"); BillingType.InsertString(CServerSetup::GamaUnitedBilling, "GamaUnitedBilling"); BillingType.InsertString(CServerSetup::YouxiLandBilling, "YouxiLandBilling"); BillingType.InsertString(CServerSetup::JapanBilling, "JapanBilling"); BillingType.InsertString(CServerSetup::GammaniaBilling, "GammaniaBilling"); } void SetDBAgentServerType(CComboBox& TypeCb) { TypeCb.InsertString(0, "ROW"); TypeCb.SetItemData(0, UnifiedConst::ROW); TypeCb.InsertString(1, "Part1"); TypeCb.SetItemData(1, UnifiedConst::Part1); TypeCb.InsertString(2, "Part1 Unified"); TypeCb.SetItemData(2, UnifiedConst::Part1Unified); TypeCb.InsertString(3, "Part2 Unified"); TypeCb.SetItemData(3, UnifiedConst::Part2Unified); TypeCb.InsertString(4, "Part2 Selectable"); TypeCb.SetItemData(4, UnifiedConst::Part2Selectable); } unsigned short GetZoneTCPPort(unsigned long dwServerID) { return CServerSetup::GetGameServerTCPPort(dwServerID); }