public override void ReadImpl() { Player player = getClient().getPlayer(); type = ReadD(); // Тип одеваемых предметов if (type == 3) { // если 3 - оружие + скины, маски, береты - 40 байт PlayerEquipTable.EquipAllSlots(player.AccountID, ReadD(), ReadD(), ReadD(), ReadD(), ReadD(), ReadD(), ReadD(), ReadD(), ReadD(), ReadD()); } else if (type == 2) { // если 2 - оружие - 20 байт PlayerEquipTable.EquipWeaponsSlots(player.AccountID, ReadD(), ReadD(), ReadD(), ReadD(), ReadD()); } else if (type == 1) { // если 1 - скины, маски, береты - 20 байт PlayerEquipTable.EquipArmorsSlots(player.AccountID, ReadD(), ReadD(), ReadD(), ReadD(), ReadD()); } }
public override void ReadImpl() { //ReadH(); loginLength = ReadC(); login = ReadS(loginLength); AccountTable.LoadTable(); getClient().setAccount(AccountTable.accounts[login]); /* Загружаем всю базу данных крч */ ClansTable.LoadTable(); ItemsTable.LoadTable(); PlayersTable.LoadTable(); QuestsTable.LoadTable(); TitlesTable.LoadTable(); PlayersConfigTable.LoadTable(); PlayersStatsTable.LoadTable(); TitlesTable.LoadTable(); PlayerEquipTable.LoadTable(); PlayersMedalsTable.LoadTable(); getClient().setPlayer(PlayersTable.players[getClient().getAccount().AccountID]); getClient().getPlayer().setClient(getClient()); getClient().getPlayer().setAddress(((IPEndPoint)getClient()._address).Address.ToString()); }
static void Main(string[] args) { Console.Title = "Point Blank Auth Server"; Logger.Info("==============================================================================="); Logger.Info("Point Blank Auth Server"); Logger.Info("Develop OZ-Network.RU - 2016"); Logger.Info("==============================================================================="); ConfigModel.Load(); Logger.Warn("Load XML======================================================================="); TutorialParser.Load(); GameServersParser.Load(); Logger.Warn("Load DataBase=================================================================="); Connector.Connect(); ClansTable.LoadTable(); AccountTable.LoadTable(); ItemsTable.LoadTable(); PlayersTable.LoadTable(); QuestsTable.LoadTable(); PlayersConfigTable.LoadTable(); PlayersStatsTable.LoadTable(); TitlesTable.LoadTable(); PlayerEquipTable.LoadTable(); PlayersMedalsTable.LoadTable(); FriendsTable.LoadTable(); Logger.Warn("Load Protection================================================================"); ProtectionService.Initialization(); Logger.Warn("Load Network==================================================================="); NetworkS.Load(); int Mask = 0; Mask |= 1 << (int)Maps.StageId.TD_PORTAKABA; Mask |= 1 << (int)Maps.StageId.TD_REDROCK; Console.WriteLine(Mask); }
static void Main(string[] args) { try { Console.Title = "Point Blank Game Server"; Logger.Info("==============================================================================="); Logger.Info("Point Blank Game Server"); Logger.Info("Develop OZ-Network.RU - 2016"); Logger.Info("==============================================================================="); ConfigModel.Load(); Logger.Warn("Load XML======================================================================="); ChannelsParser.Load(); GoodsParser.Load(); LevelUpParser.Load(); TutorialParser.Load(); Logger.Warn("Load DataBase=================================================================="); Connector.Connect(); ClansTable.LoadTable(); AccountTable.LoadTable(); ItemsTable.LoadTable(); PlayersTable.LoadTable(); QuestsTable.LoadTable(); TitlesTable.LoadTable(); PlayersConfigTable.LoadTable(); PlayersStatsTable.LoadTable(); TitlesTable.LoadTable(); PlayerEquipTable.LoadTable(); PlayersMedalsTable.LoadTable(); Logger.Warn("Load Network==================================================================="); NetworkS.Load(); } catch (Exception e) { Logger.Error("[FATAL ERROR] " + e); } }