示例#1
0
 private void CritCtrl_Click(object sender, EventArgs e)
 {
     if (TV1.Text.Length > 0 && TV2.Text.Length > 0)
     {
         LTB.Clear();
         LTB.AppendText("CLICK control (" + TV2.Text + ") in window [" + TV1.Text + "]\r\n");
         Client.CC.CHR.WND.Click(TV1.Text, TV2.Text);
     }
 }
示例#2
0
 private void Loot_Click(object sender, EventArgs e)
 {
     LTB.Clear();
     LTB.AppendText("============== Loot ============\r\n");
     Client.CC.CHR.ENV.ScanLoot();
     foreach (Item i in Client.CC.CHR.ENV.LOOT_LIST)
     {
         LTB.AppendText(i.DebugString());
     }
 }
示例#3
0
 private void ShInv_Click(object sender, EventArgs e)
 {
     LTB.Clear();
     LTB.AppendText("============== Inventary ============\r\n");
     Client.CC.CHR.INV.Load();
     foreach (Item i in Client.CC.CHR.INV.IL)
     {
         LTB.AppendText("ID: " + i.id + " [" + i.wid.ToString("X4") + "] TYPE=(" + i.type + ") ~~ PLACE: " + i.place + " COUNT: " + i.count + "\r\n");
     }
 }
示例#4
0
 private void NPC_Click(object sender, EventArgs e)
 {
     LTB.Clear();
     LTB.AppendText("============== MOBs ============\r\n");
     Client.CC.CHR.ENV.ScanLoot();
     foreach (NPC n in Client.CC.CHR.ENV.NPC_LIST)
     {
         LTB.AppendText(n.id + " [" + n.wid.ToString("X4") + "] (" + n.type + ") ~~ " + n.name +
                        "\r\n[DIST: " + n.distance + "] [LOC: " + n.LOC.x + "; " + n.LOC.y + "; " + n.LOC.z + "]\r\n");
     }
 }
示例#5
0
        private void CurWin_Click(object sender, EventArgs e)
        {
            LTB.Clear();
            LTB.AppendText("============== Current WINDOW ============\r\n");
            GameWindow w = Client.CC.CHR.WND.GetCurrentWindow();

            LTB.AppendText(w.name + " [" + w.ptr.ToString("X4") + "] {" + w.visibility + "}\r\n");
            foreach (WindowControl c in w.CL)
            {
                LTB.AppendText(c.name + " ==> [" + c.ptr.ToString("X4") + "]\r\n" + c.CN + " (LNG: " + c.CN.Length + ") ==> [" + c.CP.ToString("X4") + "]\r\n");
            }
        }
示例#6
0
        private void AllWin_Click(object sender, EventArgs e)
        {
            LTB.Clear();
            LTB.AppendText("============== WINDOWS ============\r\n");
            Client.CC.CHR.WND.LoadAllWindows();
            foreach (GameWindow w in Client.CC.CHR.WND.WL)
            {
                LTB.AppendText(w.name + " ==> [" + w.visibility + "] ~~ " + w.ptr + " (" + w.GF.ToString("X4") + ")\r\n");

                /*foreach (WindowControl c in w.CL)
                 *  LTB.AppendText("  CNT: " + c.name + " ==> [" + c.CN + "]\r\n");*/
            }
        }
示例#7
0
        private void button5_Click(object sender, EventArgs e)
        {
            LTB.Clear();
            LTB.AppendText("============== FAIRY ============\r\n");
            FairyItem FFE = Client.CC.CHR.FAIRY.SelectFairyForEnchance();

            foreach (FairyItem FI in Client.CC.CHR.FAIRY.FL)
            {
                LTB.AppendText("ID:" + FI.id + "\r\n");
                LTB.AppendText("LVL:" + FI.lvl + "\r\n");
                LTB.AppendText("===============================\r\n");
            }
            LTB.AppendText("[SELECTED] ID:" + FFE.id + "\r\n");
            LTB.AppendText("[SELECTED] LVL:" + FFE.lvl + "\r\n");
        }
示例#8
0
 private void INF_Click(object sender, EventArgs e)
 {
     Client.CC.CHR.Load();
     LTB.Clear();
     LTB.AppendText("Персонаж: " + Client.CC.CHR.Name + "\r\n");
     LTB.AppendText("================================\r\n");
     LTB.AppendText("X: " + Client.CC.CHR.LOC.x + "\t [" + Client.CC.CHR.LOC.gx + "]\r\n");
     LTB.AppendText("Y: " + Client.CC.CHR.LOC.y + "\t [" + Client.CC.CHR.LOC.gy + "]\r\n");
     LTB.AppendText("Z: " + Client.CC.CHR.LOC.z + "\t [" + Client.CC.CHR.LOC.gz + "]\r\n");
     LTB.AppendText("================================\r\n");
     LTB.AppendText("LVL: " + Client.CC.CHR.LVL + "\r\n");
     LTB.AppendText("================================\r\n");
     LTB.AppendText("LOC: " + Client.CC.CHR.LOC_NAME + " [" + Client.CC.CHR.LOC_ID + "]\r\n");
     LTB.AppendText("================================\r\n");
 }
示例#9
0
        private void FAIRY_Click(object sender, EventArgs e)
        {
            LTB.Clear();
            LTB.AppendText("============== FAIRY ============\r\n");
            ItemFairy FFE = Client.CC.CHR.GetClass <FairyFactory>().SelectFairyForEnchance();

            foreach (ItemFairy FI in Client.CC.CHR.GetClass <FairyFactory>().FL)
            {
                LTB.AppendText("ID:" + FI.id + "\r\n");
                LTB.AppendText("LVL:" + FI.lvl + "\r\n");
                LTB.AppendText("===============================\r\n");
            }
            LTB.AppendText("[SELECTED] ID:" + FFE.id + "\r\n");
            LTB.AppendText("[SELECTED] LVL:" + FFE.lvl + "\r\n");
        }
示例#10
0
 private void AllWin_Click(object sender, EventArgs e)
 {
     LTB.Clear();
     LTB.AppendText("============== WINDOWS ============\r\n");
     foreach (GameWindow w in Client.CC.CHR.WND.WL)
     {
         if (w.visibility > 0)
         {
             LTB.AppendText("WIN: " + w.name + " ==> [" + w.visibility + "] ~~ " + w.ptr + "\r\n");
             foreach (WindowControl c in w.CL)
             {
                 LTB.AppendText("  CNT: " + c.name + " ==> [" + c.CN + "]\r\n");
             }
         }
     }
 }
示例#11
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.button2.Enabled = true;

            if (LTB != null)
            {
                int length = LTB.Count();
                for (int i = 0; i < length; i++)
                {
                    this.Controls.Remove(LTB[i]);
                }


                LTB = null;
            }
        }
示例#12
0
 private void ItemUse_Click(object sender, EventArgs e)
 {
     try
     {
         ItemInventory ii = Client.CC.CHR.GetClass <Inventory>().GetFirstById(int.Parse(TV1.Text));
         if (ii == null)
         {
             return;
         }
         LTB.Clear();
         LTB.AppendText("============== USE ITEM ============\r\n");
         LTB.AppendText("ID: " + ii.id + " [" + ii.id.ToString("X4") + "] TYPE=(" + ii.type + ") ~~ PLACE: " + ii.place + " COUNT: " + ii.count + "\r\n");
         ii.Use();
     }
     catch { }
 }
示例#13
0
 private void INF_Click(object sender, EventArgs e)
 {
     Client.CC.CHR.Load();
     LTB.Clear();
     LTB.AppendText("Персонаж: " + Client.CC.CHR.Name + "\r\n");
     LTB.AppendText("ID: " + Client.CC.CHR.ID + " [" + Client.CC.CHR.ID.ToString("X4") + "]\r\n");
     LTB.AppendText("================================\r\n");
     LTB.AppendText("X: " + Client.CC.CHR.LOC.x + "\t [" + Client.CC.CHR.LOC.gx + "]\r\n");
     LTB.AppendText("Y: " + Client.CC.CHR.LOC.y + "\t [" + Client.CC.CHR.LOC.gy + "]\r\n");
     LTB.AppendText("Z: " + Client.CC.CHR.LOC.z + "\t [" + Client.CC.CHR.LOC.gz + "]\r\n");
     LTB.AppendText("================================\r\n");
     LTB.AppendText("LVL: " + Client.CC.CHR.GetVar("LVL") + "\r\n");
     LTB.AppendText("WALK_MODE: " + Client.CC.CHR.GetVar("WalkMode") + "\r\n");
     LTB.AppendText("================================\r\n");
     LTB.AppendText("LOC: " + Client.CC.CHR.LOC_NAME + " [" + Client.CC.CHR.LOC_ID + "]\r\n");
     LTB.AppendText("================================\r\n");
 }
示例#14
0
        private void button2_Click(object sender, EventArgs e)
        {
            int i, length;

            button1.Enabled = true;
            button3.Enabled = true;
            length          = LTB.Count();
            for (i = 0; i < length; i++)
            {
                this.Controls.Remove(LTB[i]);
            }
            length = LTB1.Count();
            for (i = 0; i < length; i++)
            {
                this.Controls.Remove(LTB1[i]);
            }
            length = LTB2.Count();
            for (i = 0; i < length; i++)
            {
                this.Controls.Remove(LTB2[i]);
            }
        }
示例#15
0
 private void ENV_Click(object sender, EventArgs e)
 {
     PwLib.Environment ENV = Client.CC.CHR.GetClass <PwLib.Environment>();
     ENV.Scan();
     LTB.Clear();
     LTB.AppendText("============== Players ============\r\n");
     foreach (PwPlayer n in ENV.GetList <PwPlayer>())
     {
         LTB.AppendText("(" + n.id.ToString("X4") + ") [" + n.cls.name + "] " + n.name + " [DIST: " + n.distance + "] [loc: " + n.loc.x + "; " + n.loc.y + "; " + n.loc.z + "]\r\n");
     }
     LTB.AppendText("============== MOBs ============\r\n");
     foreach (PwMob n in ENV.GetList <PwMob>())
     {
         LTB.AppendText(n.id + " [" + n.wid.ToString("X4") + "] (" + n.type + ") ~~ " + n.name + "\r\n[DIST: " + n.distance + "] [loc: " + n.loc.x + "; " + n.loc.y + "; " + n.loc.z + "]\r\n");
     }
     LTB.AppendText("============== NPCs ============\r\n");
     foreach (PwNpc n in ENV.GetList <PwNpc>())
     {
         LTB.AppendText(n.id + " [" + n.wid.ToString("X4") + "] (" + n.type + ") ~~ " + n.name + "\r\n[DIST: " + n.distance + "] [loc: " + n.loc.x + "; " + n.loc.y + "; " + n.loc.z + "]\r\n");
     }
     LTB.AppendText("============== PETs ============\r\n");
     foreach (PwPet n in ENV.GetList <PwPet>())
     {
         LTB.AppendText(n.id + " [" + n.wid.ToString("X4") + "] (" + n.type + ") ~~ " + n.name + "\r\n[DIST: " + n.distance + "] [loc: " + n.loc.x + "; " + n.loc.y + "; " + n.loc.z + "]\r\n");
     }
     LTB.AppendText("============== Loot ============\r\n");
     foreach (ItemLoot n in ENV.GetList <ItemLoot>())
     {
         LTB.AppendText(n.DebugString(true));
     }
     LTB.AppendText("============== Mines ============\r\n");
     foreach (PwMine n in ENV.GetList <PwMine>())
     {
         LTB.AppendText(n.DebugString(true));
     }
 }
示例#16
0
文件: frmMain.cs 项目: xuyongmin/esri
        /// <summary>
        /// 图幅号经纬度
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonTFHToLB_Click(object sender, EventArgs e)
        {
            MapScaleObject scaleObj = null;
            double         LTL, LTB, RBL, RBB;
            string         tfh = this.textBoxTFH.Text.Trim();

            TFHHelper.GetLTRBPoints(tfh, out scaleObj, out LTL, out LTB, out RBL, out RBB);
            if (scaleObj != null)
            {
                MessageBox.Show(string.Format("比例尺:{0}  LTL:{1}  LTB:{2}  RBL:{3}  RBB:{4}", scaleObj.Label, LTL.ToString(), LTB.ToString(), RBL.ToString(), RBB.ToString()));
            }
            else
            {
                MessageBox.Show(string.Format("图幅号[{0}]无法解析!", tfh));
            }
        }
示例#17
0
 private void TEST_Click(object sender, EventArgs e)
 {
     LTB.Clear();
     LTB.AppendText("[======= RUN TEST! =======]\r\n");
     //Client.CC.CHR.MBF.OpenBattle();
     Client.CC.CHR.MBF.LoadMine();
     Client.CC.CHR.MBF.LoadEnemy();
     Beast[] BB = Client.CC.CHR.MBF.AnalizeEnemy();
     LTB.AppendText("[GamesRemain    " + Client.CC.CHR.MBF.GamesRemain + "   =======]\r\n");
     LTB.AppendText("[Points         " + Client.CC.CHR.MBF.Points + "    =======]\r\n");
     LTB.AppendText("[Reward         " + Client.CC.CHR.MBF.Reward + "    =======]\r\n");
     LTB.AppendText("[======= MY! =======]\r\n");
     foreach (Beast b in Client.CC.CHR.MBF.MY.Values)
     {
         LTB.AppendText("ID:" + b.ID + "\r\n");
         LTB.AppendText("IID:" + b.ItemId + "\r\n");
         LTB.AppendText("ID2:" + b.ID2 + "\r\n");
         LTB.AppendText("Name:" + b.Name + "\r\n");
         LTB.AppendText("Power:" + b.Power + "\r\n");
         LTB.AppendText("LVL:" + b.Level + "\r\n");
         LTB.AppendText("Class:" + b.Class + "\r\n");
         LTB.AppendText("ELEMENTS:" + b.Element + "\r\n");
         LTB.AppendText("ENEMY:" + b.Enemies + "\r\n");
         LTB.AppendText("IMPROVE:" + b.NeedImprove + "\r\n");
         LTB.AppendText("DAMAGE_ANAL:" + b.DAR + "\r\n");
         LTB.AppendText("[========================]\r\n");
     }
     LTB.AppendText("[======= ENEMY! =======]\r\n");
     foreach (Beast b in Client.CC.CHR.MBF.ENEMY.Values)
     {
         LTB.AppendText("ID:" + b.ID + "\r\n");
         LTB.AppendText("Name:" + b.Name + "\r\n");
         LTB.AppendText("Power:" + b.Power + "\r\n");
         LTB.AppendText("LVL:" + b.Level + "\r\n");
         LTB.AppendText("Class:" + b.Class + "\r\n");
         LTB.AppendText("ELEMENTS:" + b.Element + "\r\n");
         LTB.AppendText("ENEMY:" + b.Enemies + "\r\n");
         LTB.AppendText("[========================]\r\n");
     }
     LTB.AppendText("[======= My BEST =======]\r\n");
     foreach (Beast b in BB)
     {
         LTB.AppendText("ID:" + b.ID + "\r\n");
         LTB.AppendText("IID:" + b.ItemId + "\r\n");
         LTB.AppendText("ID2:" + b.ID2 + "\r\n");
         LTB.AppendText("Name:" + b.Name + "\r\n");
         LTB.AppendText("Power:" + b.Power + "\r\n");
         LTB.AppendText("LVL:" + b.Level + "\r\n");
         LTB.AppendText("Class:" + b.Class + "\r\n");
         LTB.AppendText("ELEMENTS:" + b.Element + "\r\n");
         LTB.AppendText("ENEMY:" + b.Enemies + "\r\n");
         LTB.AppendText("IMPROVE:" + b.NeedImprove + "\r\n");
         LTB.AppendText("DAMAGE_ANAL:" + b.DAR + "\r\n");
         LTB.AppendText("[========================]\r\n");
     }
     LTB.AppendText("[======= INVENTARY! =======]\r\n");
     foreach (BeastItem bi in Client.CC.CHR.MBF.BIL.Values)
     {
         LTB.AppendText("ID:" + bi.id + "\r\n");
         LTB.AppendText("Count:" + bi.count + "\r\n");
         LTB.AppendText("INCUBE:" + bi.NeedIncube + "\r\n");
         LTB.AppendText("[========================]\r\n");
     }
 }
示例#18
0
 private void button3_Click(object sender, EventArgs e)
 {
     cnt = 0;
     for (i = 0; i < n; i++)
     {
         for (j = 0; j < p; j++)
         {
             f = int.TryParse(LTB[cnt].Text.ToString(), out A[i, j]);
             if (f == false)
             {
                 break;
             }
             cnt++;
         }
         if (f == false)
         {
             break;
         }
     }
     cnt = 0;
     for (i = 0; i < p; i++)
     {
         for (j = 0; j < m; j++)
         {
             f1 = int.TryParse(LTB1[cnt].Text.ToString(), out B[i, j]);
             if (f1 == false)
             {
                 break;
             }
             cnt++;
         }
         if (f1 == false)
         {
             break;
         }
     }
     if (f == false || f1 == false)
     {
         MessageBox.Show("请输入正确的整数值");
     }
     else
     {
         Det.Matrix_Mul(A, B, C, n, p, m);
         x = x3 + 30; y = 90;
         for (i = 0; i < n; i++)
         {
             for (j = 0; j < m; j++)
             {
                 TextBox textbox = new TextBox();
                 textbox.Width    = 25;
                 textbox.Height   = 15;
                 textbox.Location = new Point(x, y);
                 LTB.Add(textbox);                               //加到控件列表中
                 textbox.TextAlign = HorizontalAlignment.Center; //数值居中
                 this.Controls.Add(textbox);                     //添加新控件
                 textbox.Text = C[i, j].ToString();
                 x           += 30;
             }
             x  = x3 + 30;
             y += 30;
         }
     }
     this.button3.Enabled = false;
 }