コード例 #1
0
 private void method_2(object sender, EventArgs e)
 {
     if (Operators.CompareString(string_2, gclass22_0.method_5(checked ((int)bot_0.gclass26_0.long_30), 100), false) != 0)
     {
         vmethod_20().Text = gclass22_0.method_5(checked ((int)bot_0.gclass26_0.long_30), 100);
         vmethod_24().Text = Conversions.ToString(gclass22_0.method_3(checked ((int)bot_0.gclass26_0.long_21), 2));
         vmethod_22().Text = Conversions.ToString(gclass22_0.method_3(checked ((int)checked (bot_0.gclass26_0.long_21 + 2L)), 2));
     }
     string_2 = gclass22_0.method_5(checked ((int)bot_0.gclass26_0.long_30), 100);
 }
コード例 #2
0
ファイル: SelectClient.cs プロジェクト: fatrolls/AOBot
        public void method_0()
        {
            List <GClass1.GClass2> .Enumerator enumerator;

            gclass22_0.method_0();
            List <GClass1.GClass2> list = GClass1.list_0;

            try
            {
                enumerator = list.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    SelectClient.Class23 class23 = new SelectClient.Class23(class23);
                    GClass1.GClass2      gclass2 = enumerator.get_Current();
                    gclass22_0.int_0  = (int)GClass22.OpenProcess(GClass22.GEnum3.const_1, true, gclass2.method_0().Id);
                    gclass22_0.long_0 = (long)gclass2.method_0().Id;
                    long l = (long)gclass22_0.method_1(GClass24.int_2, 4);
                    class23.string_0 = gclass22_0.method_5(checked ((int)l), 24);
                    if (Operators.CompareString(class23.string_0, "NOPERSONNAME", false) == 0)
                    {
                        continue;
                    }
                    List <GClass1.GClass2> list1 = GClass1.list_0.FindAll(new Predicate <GClass1.GClass2>(class23, class23.method_0));
                    if (list1.get_Count() == 0)
                    {
                        gclass2.method_5((long)gclass2.method_0().MainWindowHandle);
                        comboItem_0      = new ComboItem();
                        comboItem_0.Text = class23.string_0;
                        GClass6.smethod_0(comboItem_0);
                        vmethod_2().Items.Add(comboItem_0);
                        gclass2.method_7(class23.string_0);
                        vmethod_2().SelectedIndex = 0;
                    }
                    SelectClient.CloseHandle(gclass22_0.int_0);
                }
            }
            finally
            {
                enumerator.Dispose();
            }
        }
コード例 #3
0
ファイル: MapTeleport.cs プロジェクト: fatrolls/AOBot
 private void method_0(object sender, EventArgs e)
 {
     if (Visible)
     {
         bot_0.gclass26_0.long_55 = (long)gclass22_0.method_1(GClass24.int_56, 4);
         if (gclass22_0.method_3(checked ((int)checked (bot_0.gclass26_0.long_55 - 4L)), 4) != 0L)
         {
             long l = gclass22_0.method_3(checked ((int)bot_0.gclass26_0.long_55), 2);
             if (l == 0L)
             {
                 vmethod_12().Text = "Northeast Asia";
             }
             else if (l == 170L)
             {
                 vmethod_12().Text = "Southeast Asia India";
             }
             else if (l == 173L)
             {
                 vmethod_12().Text = "Northern Europe";
             }
             else if (l == 171L)
             {
                 vmethod_12().Text = "Southern Europe";
             }
             else if (l == 178L)
             {
                 vmethod_12().Text = "Africa";
             }
             else if (l == 172L)
             {
                 vmethod_12().Text = "Southwest Asia";
             }
             else if (l == 174L)
             {
                 vmethod_12().Text = "North America";
             }
             else if (l == 175L)
             {
                 vmethod_12().Text = "Central Asia";
             }
             else if (l == 179L)
             {
                 vmethod_12().Text = "Australia";
             }
             else if (l == 3000L)
             {
                 vmethod_12().Text = "Atlantis Outskirts";
             }
             else if (l == 3001L)
             {
                 vmethod_12().Text = "West Atlantis";
             }
             else if (l == 2300L)
             {
                 vmethod_12().Text = "Titan Island";
             }
         }
         bot_0.gclass26_0.long_54 = (long)gclass22_0.method_1(GClass24.int_55, 4);
         if (gclass22_0.method_3(checked ((int)bot_0.gclass26_0.long_54), 1) != 0L)
         {
             if (Operators.CompareString(gclass22_0.method_5(checked ((int)bot_0.gclass26_0.long_54), 25), "", false) != 0)
             {
                 string s = gclass22_0.method_5(checked ((int)bot_0.gclass26_0.long_54), 50);
                 s = Strings.Replace(s, "X : ", "", 1, -1, CompareMethod.Binary);
                 s = Strings.Replace(s, "Y : ", "", 1, -1, CompareMethod.Binary);
                 s = Strings.Replace(s, " ", "", 1, -1, CompareMethod.Binary);
                 string[] sArr = Strings.Split(s, ",", -1, CompareMethod.Binary);
                 if (Information.UBound(sArr, 1) == 1)
                 {
                     vmethod_14().Text = sArr[0];
                     vmethod_16().Text = sArr[1];
                 }
             }
             else
             {
                 vmethod_0().Enabled = false;
             }
         }
     }
 }
コード例 #4
0
        public bool method_0(GClass23.GEnum4 genum4_0)
        {
            bool flag;

            if (genum4_0 == GClass23.GEnum4.const_0)
            {
                if (((int)gclass22_0.method_3(checked ((int)gclass26_0.long_15), 1) >= gclass14_0.int_7) & (gclass22_0.method_3(checked ((int)gclass26_0.long_14), 1) == 0L) & (Operators.CompareString(gclass22_0.method_5(gclass22_0.method_1(GClass24.int_36, 4), 7), "", false) != 0))
                {
                    return(true);
                }
                return(false);
            }
            if (genum4_0 == GClass23.GEnum4.const_1)
            {
                if (((int)gclass22_0.method_3(checked ((int)gclass26_0.long_15), 1) >= gclass14_0.int_7) & (gclass22_0.method_3(checked ((int)gclass26_0.long_14), 1) == 0L) & (Operators.CompareString(gclass22_0.method_5(gclass22_0.method_1(GClass24.int_37, 4), 7), "", false) != 0))
                {
                    return(true);
                }
                return(false);
            }
            return(flag);
        }