Exemplo n.º 1
0
        public MainWindow(EliteAPI core)
        {
            InitializeComponent();
            api = core;

            #region Final Fantasy XI [POL]
            var data = Process.GetProcessesByName("pol");

            if (data.Count() != 0)
            {
                var proc = Process.GetProcessesByName("pol").First().Id;
                api = new EliteAPI(proc);

                foreach (var dats in data)
                {
                    EliteMMO_PROC?.Items.Add(dats.MainWindowTitle);
                }

                if (EliteMMO_PROC != null)
                    EliteMMO_PROC.SelectedIndex = 0;

                xStatusLabel.Text = @":: " + api.Entity.GetLocalPlayer().Name + @" ::";
            }
            else
            {
                xStatusLabel.Text = @":: Final Fantasy Not Found ::";
            }
            #endregion

            x1 = new ScriptFarmDNC(api);
            x2 = new ScriptHealing(api);
            x3 = new ScriptNaviMap(api);
            x4 = new ScriptOnEventTool(api);
        }
Exemplo n.º 2
0
        public MainWindow(EliteAPI core)
        {
            InitializeComponent();
            api = core;

            #region Final Fantasy XI [POL]
            var data = Process.GetProcessesByName("pol");

            if (data.Count() != 0)
            {
                var proc = Process.GetProcessesByName("pol").First().Id;
                api = new EliteAPI(proc);

                foreach (var dats in data)
                {
                    EliteMMO_PROC?.Items.Add(dats.MainWindowTitle);
                }

                if (EliteMMO_PROC != null)
                {
                    EliteMMO_PROC.SelectedIndex = 0;
                }

                xStatusLabel.Text = @":: " + api.Entity.GetLocalPlayer().Name + @" ::";
            }
            else
            {
                xStatusLabel.Text = @":: Final Fantasy Not Found ::";
            }
            #endregion

            x1 = new ScriptFarmDNC(api);
            x2 = new ScriptHealing(api);
            x3 = new ScriptNaviMap(api);
            x4 = new ScriptOnEventTool(api);
        }
        public MainWindow(EliteAPI core)
        {
            InitializeComponent();
            api = core;
            #region Final Fantasy XI [POL]
            var data = Process.GetProcessesByName("pol");

            if (data.Count() != 0)
            {
                var proc = Process.GetProcessesByName("pol").First().Id;
                api = new EliteAPI(proc);

                foreach (var dats in data)
                {
                    EliteMMO_PROC?.Items.Add(dats.MainWindowTitle);
                }

                if (EliteMMO_PROC != null)
                {
                    EliteMMO_PROC.SelectedIndex = 0;
                }

                xStatusLabel.Text = @":: " + api.Entity.GetLocalPlayer().Name + @" ::";
            }
            else
            {
                xStatusLabel.Text = @":: Final Fantasy Not Found ::";
            }
            if (TESTMODE)
            {
                xStatusLabel.Text = xStatusLabel.Text + @"- TEST MODE ENABLED";
            }
            #endregion

            farmbot    = new ScriptFarmDNC(api);
            x1         = farmbot;
            x2         = new ScriptHealing(api);
            navbot     = new ScriptNaviMap(api);
            x3         = navbot;
            oneventbot = new ScriptOnEventTool(api);
            x4         = oneventbot;
            skillupbot = new ScriptSkillup(api);
            x5         = skillupbot;

            string apidll = "";
            string mmodll = "";
            if (File.Exists(Application.StartupPath + @"\EliteAPI.dll"))
            {
                apidll = (FileVersionInfo.GetVersionInfo(Application.StartupPath + @"\EliteAPI.dll").FileVersion ?? "");
            }
            if (File.Exists(Application.StartupPath + @"\EliteMMO.API.dll"))
            {
                mmodll = (FileVersionInfo.GetVersionInfo(Application.StartupPath + @"\EliteMMO.API.dll").FileVersion ?? "");
            }
            string memmo = "";
            if (apidll == "" || GetStringFromUrl("http://ext.elitemmonetwork.com/downloads/eliteapi/index.php?v") != apidll)
            {
                memmo = "\nEliteAPI.dll";
            }
            if (mmodll == "" || GetStringFromUrl("http://ext.elitemmonetwork.com/downloads/elitemmo_api/index.php?v") != mmodll)
            {
                memmo = "\nEliteMMO.API.dll";
            }
            if (memmo != "")
            {
                MessageBox.Show("You Need To Update" + memmo + "\nThen Restart Scripted", "!UPDATE NEEDED!");
            }
            var symbolicLink = "";
            if (windowername == "Ashita")
            {
                symbolicLink = dlllocation + @"\Scripts\Addons\ScriptedExtender";
            }
            else if (windowername == "Windower")
            {
                symbolicLink = dlllocation + @"\addons\ScriptedExtender";
            }
            if (symbolicLink != "" && !System.IO.Directory.Exists(symbolicLink))
            {
                CreateSymbolicLink(symbolicLink, Application.StartupPath + @"\ScriptedExtender", SymbolicLink.Directory);
            }
            if (TESTMODE)
            {
                farmbot.enableTestmode();
            }
        }
Exemplo n.º 4
0
        public MainWindow(EliteAPI core)
        {
            InitializeComponent();
            api = core;
            #region Final Fantasy XI [POL]
            var data = Process.GetProcessesByName("pol");

            if (data.Count() != 0)
            {
                var proc = Process.GetProcessesByName("pol").First().Id;
                api = new EliteAPI(proc);

                foreach (var dats in data)
                {
                    EliteMMO_PROC?.Items.Add(dats.MainWindowTitle);
                }

                if (EliteMMO_PROC != null)
                    EliteMMO_PROC.SelectedIndex = 0;

                xStatusLabel.Text = @":: " + api.Entity.GetLocalPlayer().Name + @" ::";
            }
            else
            {
                xStatusLabel.Text = @":: Final Fantasy Not Found ::";
            }
            #endregion

            farmbot = new ScriptFarmDNC(api);
            x1 = farmbot;
            x2 = new ScriptHealing(api);
            navbot = new ScriptNaviMap(api);
            x3 = navbot;
            oneventbot = new ScriptOnEventTool(api);
            x4 = oneventbot;
            skillupbot = new ScriptSkillup(api);
            x5 = skillupbot;

            string apidll = "";
            string mmodll = "";
            if (File.Exists(Application.StartupPath + @"\EliteAPI.dll"))
                apidll = (FileVersionInfo.GetVersionInfo(Application.StartupPath + @"\EliteAPI.dll").FileVersion ?? "");
            if (File.Exists(Application.StartupPath + @"\EliteMMO.API.dll"))
                mmodll = (FileVersionInfo.GetVersionInfo(Application.StartupPath + @"\EliteMMO.API.dll").FileVersion ?? "");
            string memmo = "";
            if (apidll == "" || GetStringFromUrl("http://ext.elitemmonetwork.com/downloads/eliteapi/index.php?v") != apidll)
            {
                memmo = "\nEliteAPI.dll";
            }
            if (mmodll == "" || GetStringFromUrl("http://ext.elitemmonetwork.com/downloads/elitemmo_api/index.php?v") != mmodll)
            {
                memmo = "\nEliteMMO.API.dll";
            }
            if (memmo != "")
                MessageBox.Show("You Need To Update" + memmo + "\nThen Restart Scripted", "!UPDATE NEEDED!");
            var symbolicLink = "";
            if (windowername == "Ashita")
                symbolicLink = dlllocation + @"\Scripts\Addons\ScriptedExtender";
            else if (windowername == "Windower")
                symbolicLink = dlllocation + @"\addons\ScriptedExtender";
            if (symbolicLink != "" && !System.IO.Directory.Exists(symbolicLink))
                CreateSymbolicLink(symbolicLink, Application.StartupPath + @"\ScriptedExtender", SymbolicLink.Directory);
        }