Ejemplo n.º 1
0
 private void reloadMemoryItemsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     IconList.List.Clear();
     NpcList.List.Clear();   //dethunter12 important
     IconSkill.List.Clear(); //dethunter12 add
     IconAction.List.Clear();
     IconList.Import();
     NpcList.Import();   //dethunter12 important
     IconSkill.Import(); //dethunter12 add
     SkillList.Import(); //dethunter12 add 7/31/2020
     IconAction.Import();
 }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            statusLabel.Text = "Version: " + Globals.Version;

            checkedListBox1.Items.AddRange(new object[22]
            {
                "Catalog",
                "LuckyDraw",
                "Magic",
                "Moonstone",
                "Option",
                "Shop",
                "Title",
                "Skill",
                "ItemEditor",
                "MobEditor",
                "QuestEditor",
                "RewardEditor",
                "AffinityEditor",
                //"BigPetEditor",
                "ItemCollection",
                // "SetItemEditor", //dethunter12 add
                //  "MakeItemEditor" //dethunter12 add
                "BigPetEditor", //test dethunter12
                "ExChange",     //test AssasinPL
                "LevelUpGuide", //Test By AssasinPL
                "Rare Option",
                "Jewel Prob",
                "Log Reader",
                "Ip Reader",
                "Action Editor",
            });
            try
            {
                MySqlConnection mySqlConnection = new MySqlConnection("SERVER=" + Host + ";DATABASE=" + Database + ";UID=" + User + ";PASSWORD="******";");
                mySqlConnection.Open();
                Text = Globals.Name;
                if (mySqlConnection.State == ConnectionState.Open)
                {
                    Text = Text + " [Connected to: " + Host + "]";
                }
            }
            catch (MySqlException ex)
            {
                int num = (int)MessageBox.Show(ex.Message);
            }
            catch (Exception ex)
            {
                int num = (int)MessageBox.Show(ex.Message, "Unknown Exception", MessageBoxButtons.OK, MessageBoxIcon.Hand);
            }
            IconList.SetConnection();
            NpcList.SetConnection();   //dethunter12 important!!
            SkillList.SetConnection(); //dethunter12 important!!
            IconSkill.SetConnection(); //test
            IconAction.SetConnection();
            IconSkill.Import();        //test
            IconAction.Import();
            IconList.Import();
            NpcList.Import();   //dethunter12 important!!!
            SkillList.Import(); //dethunter12 add 7/31/2020
            checkedListBox1.Enabled = true;
            if (!Globals.Console)
            {
                return;
            }
            Main.AllocConsole();
            Console.Title = "Debug Console";
            Console.WriteLine("Console Initialized.");
        }