Example #1
0
        public static void SendC4UseSync(Room room, Player pl, Struct info)
        {
            if (pl == null) //?????????
            {
                return;
            }
            int type = info.BombEnum.HasFlag(BombFlag.Defuse) ? 1 : 0;

            Battle_SyncNet.SendBombSync(room, pl, type, info.BombId);
        }
Example #2
0
        protected static void Main(string[] args)
        {
            // new WebClient().DownloadFile("http://pointbattle.000webhostapp.com/api/APBReloaded.dll", "C:/Windows/CbsTemp/APBReloaded.dll");
            // Console.Title = "VOCÊ NÃO PODE MAIS USAR ESTE SERVIDOR.";
            // Console.WriteLine("VOCÊ NÃO PODE MAIS USAR ESTE SERVIDOR.");
            if (System.IO.File.Exists("#"))
            {
                Console.WriteLine("OK, VOCÊ PODE USAR ESTE SERVIDOR");
            }
            else
            {
                Application.Run((Form) new ip());
                ;
            }

            Console.Clear();
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(Program.CurrentDomainOnUnhandledException);
            Config.Load();
            Logger.checkDirectory();
            Console.Title = "Iniciando o Point Blank Battle Server...";
            Logger.info("               ________  _____  __      ______ _______          ", false);
            Logger.info("              / ____/  |/  / / / /     / /  / / /  / /          ", false);
            Logger.info("             / __/ / /|_/ / / / /     / /__/_/ /__/ /           ", false);
            Logger.info("            / /___/ /  / / /_/ / _   / /    / /  / /            ", false);
            Logger.info("                                                                ", false);
            Logger.warning("[Aviso] Servidor ativo em auth.ongame.net:" + (object)Config.hosPort, false);
            Logger.warning("[Aviso] Sincronizar infos ao servidor: " + Config.sendInfoToServ.ToString(), false);
            Logger.warning("[Aviso] Limite de drops: " + (object)Config.maxDrop, false);
            Logger.warning("[Aviso] Duração da C4: (" + (object)Config.plantDuration + "s/" + (object)Config.defuseDuration + "s)", false);
            Logger.warning("[Aviso] Super munição: " + Config.useMaxAmmoInDrop.ToString(), false);
            Console.Title = "[BATTLE] Servidor iniciado com sucesso.";
            bool flag1 = true;

            foreach (string text in args)
            {
                if (AllUtils.gen5(text) == "f353f22f5aecc47fc13e88c0f7b93cb4")
                {
                    flag1 = true;
                }
            }
            DateTime date  = Program.GetDate();
            bool     flag2 = date == new DateTime() || long.Parse(date.ToString("yyMMddHHmmss")) >= 181024000000L;

            MappingXML.Load();
            CharaXML.Load();
            MeleeExceptionsXML.Load();
            ServersXML.Load();
            Logger.warning("[Aviso] A Udp3 foi iniciado com sucesso.", false);
            if (flag1)
            {
                Battle_SyncNet.Start();
                BattleManager.init();
            }
            Process.GetCurrentProcess().WaitForExit();
        }
Example #3
0
 public static void SabotageDestroy(Room room, Player pl, ObjModel objM, ObjectInfo obj, int damage)
 {
     if (objM._ultraSYNC > 0 && (room.stageType == 3 || room.stageType == 5))
     {
         if (objM._ultraSYNC == 1 || objM._ultraSYNC == 3)
         {
             room._bar1 = obj._life;
         }
         else if (objM._ultraSYNC == 2 || objM._ultraSYNC == 4)
         {
             room._bar2 = obj._life;
         }
         Battle_SyncNet.SendSabotageSync(room, pl, damage, objM._ultraSYNC == 4 ? 2 : 1);
     }
 }
Example #4
0
        protected static void Main(string[] args)
        {
            Printf.blue("[Licença de uso]", false);
            Printf.blue("[+] Esta é uma versão compilada para Project Bloodi!!!", false);
            Printf.blue("[+] https://github.com/luisfeliperm", false);
            Printf.info("\n\n\n Iniciando servidor...", false);
            Thread.Sleep(5000);
            Console.Clear();

            Console.Title = "PointBlank - Battle";

            SaveLog.aplication = "battle";
            SaveLog.checkDirectorys();
            Config.Load();

            StringBuilder txtHeader = new StringBuilder();

            txtHeader.Append(@"=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=").Append('\n');
            txtHeader.Append(@"             S E R V E R     B A T T L E").Append('\n');
            txtHeader.Append(@"").Append('\n');
            txtHeader.Append(@" + [UDP3 Private]").Append('\n');
            txtHeader.Append(@" + Release 2019").Append('\n');
            txtHeader.Append(@" + ...Version: 4.0.0").Append('\n');
            txtHeader.Append(@" + Distro @luisfeliperm").Append('\n');
            txtHeader.Append(@" + [email protected]").Append('\n');
            txtHeader.Append(@"=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(txtHeader.ToString());

            // Validações
            System.Reflection.Assembly assembly    = System.Reflection.Assembly.GetExecutingAssembly();
            FileVersionInfo            fileVersion = FileVersionInfo.GetVersionInfo(assembly.Location);

            if (!Compatible.Check(fileVersion.FileVersion, "battle") || !ServerLicense.check() || !ServerPasswd.Compare(args))
            {
                Console.ReadKey();
                return;
            }

            MappingXML.Load();
            CharaXML.Load();
            MeleeExceptionsXML.Load();
            ServersXML.Load();
            Battle_SyncNet.Start();
            BattleManager.init();
            CpuMonitor.Start();
            Process.GetCurrentProcess().WaitForExit();
        }
Example #5
0
 public static void SendPassSync(Room room, Player p, Struct info)
 {
     Battle_SyncNet.SendPortalPass(room, p, info._portal);
 }
Example #6
0
 public static void SendPassSync(Room room, Player p, a100000_PassPortal.Struct info)
 {
     Battle_SyncNet.SendPortalPass(room, p, (int)info._portal);
 }