Example #1
0
        public static void smethod_6(string ServerID)
        {
            Dictionary <string, playerS> dictionary;
            ArrayList list = new ArrayList();

            lock ((dictionary = Players))
            {
                foreach (playerS rs in Players.Values)
                {
                    if (rs.ServerID == ServerID)
                    {
                        list.Add(rs);
                    }
                }
            }
            foreach (playerS rs2 in list)
            {
                RxjhClass.SetUserIdONLINE(rs2.UserId);
                rs2.npcyd.Dispose();
                lock ((dictionary = Players))
                {
                    Players.Remove(rs2.UserId);
                }
            }
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            playerS rs;

            this.listView1.Items.Clear();
            if (World.Players.TryGetValue(this.textBox1.Text, out rs))
            {
                string[] items = new string[] { rs.UserId.ToString(), rs.UserIp, RxjhClass.GetUserIpadds(rs.UserIp), rs.ServerID, rs.TimeSpan_0.ToString().Remove(rs.TimeSpan_0.ToString().Length - 8, 8), rs.conn.ToString() };
                this.listView1.Items.Insert(this.listView1.Items.Count, new ListViewItem(items));
            }
        }
Example #3
0
        public static void smethod_2(string Userid)
        {
            playerS rs = smethod_3(Userid);

            if (rs != null)
            {
                RxjhClass.SetUserIdONLINE(rs.UserId);
                lock (Players)
                {
                    Players.Remove(rs.UserId);
                }
            }
        }
Example #4
0
 public void npcyd_Elapsed(object sender, ElapsedEventArgs e)
 {
     if (this.conn == 1)
     {
         RxjhClass.SetUserIdONLINE(this.UserId);
         lock (World.Players)
         {
             World.Players.Remove(this.UserId);
         }
     }
     this.npcyd.Close();
     this.npcyd.Dispose();
 }
Example #5
0
 public void method_13(int int_0, int int_1, int int_2)
 {
     if (int_2 != 0)
     {
         int num = this.class15_0.DUOC_KIEN_HANG_RONG(this.class15_0);
         if (num != -1)
         {
             byte[] bytes = BitConverter.GetBytes(RxjhClass.GetDBItmeId());
             this.class15_0.TANG_CUONG_VAT_PHAM_2(bytes, BitConverter.GetBytes(1700101), num, BitConverter.GetBytes(1), new byte[56]);
             this.method_1(int_0, 11, 2);
             this.method_12(int_0, 2);
             return;
         }
         this.method_1(int_0, 10, int_2);
     }
     else
     {
         if (int_1 == 1)
         {
             this.method_1(int_0, 11, int_2);
             return;
         }
         if (int_1 == 2)
         {
             this.method_1(int_0, 21, int_2);
             this.method_12(int_0, 1);
             return;
         }
         if (int_1 == 3)
         {
             this.method_1(int_0, 31, int_2);
             return;
         }
         if (int_1 == 5)
         {
             this.method_1(int_0, 51, int_2);
             return;
         }
     }
 }
Example #6
0
        private void method_7(SocketAsyncEventArgs e)
        {
            Form1.WriteLine(3, "LS客户正常进入");
            IoServer userToken = e.UserToken as IoServer;

            try
            {
                string   str;
                DateTime ljtime;
                if (World.int_6 != 1)
                {
                    goto Label_0486;
                }
                IPAddress item = ((IPEndPoint)e.AcceptSocket.RemoteEndPoint).Address;
                if (World.BipList.Contains(item))
                {
                    if (World.bool_1)
                    {
                        try
                        {
                            e.AcceptSocket.Shutdown(SocketShutdown.Both);
                        }
                        catch
                        {
                        }
                        try
                        {
                            e.AcceptSocket.Close();
                        }
                        catch
                        {
                        }
                    }
                    if (World.bool_3)
                    {
                        try
                        {
                            userToken.b();
                            return;
                        }
                        catch
                        {
                            return;
                        }
                    }
                    using (SocketAsyncEventArgs args = new SocketAsyncEventArgs())
                    {
                        args.UserToken  = this;
                        args.Completed += new EventHandler <SocketAsyncEventArgs>(this.method_6);
                        this.listenSocket.AcceptAsync(args);
                    }
                    return;
                }
                if (World.string_3 != "")
                {
                    str = RxjhClass.GetUserIpadds(item.ToString()).Replace(" ", "").Trim();
                    bool     flag     = false;
                    string[] strArray = World.string_3.Split(new char[] { ',' });
                    for (int i = 0; i < strArray.Length; i++)
                    {
                        if (str.IndexOf(strArray[i]) != -1)
                        {
                            string[] strArray2 = World.string_7.Split(new char[] { ',' });
                            for (int j = 0; j < strArray2.Length; j++)
                            {
                                if (str.IndexOf(strArray2[j]) != -1)
                                {
                                    flag = true;
                                }
                            }
                            if (!flag)
                            {
                                goto Label_01FC;
                            }
                        }
                    }
                }
                goto Label_0296;
Label_01FC:
                try
                {
                    e.AcceptSocket.Shutdown(SocketShutdown.Both);
                }
                catch
                {
                }
                try
                {
                    e.AcceptSocket.Close();
                }
                catch
                {
                }
                Form1.WriteLine(1, "用户登陆[" + item.ToString() + "]被封 " + str);
                using (SocketAsyncEventArgs args2 = new SocketAsyncEventArgs())
                {
                    args2.UserToken  = this;
                    args2.Completed += new EventHandler <SocketAsyncEventArgs>(this.method_6);
                    this.listenSocket.AcceptAsync(args2);
                }
                return;

Label_0296:
                ljtime = DateTime.Now;
                int num3 = 0;
                foreach (NetState state in World.list.Values)
                {
                    if (state.ToString() == item.ToString())
                    {
                        ljtime = state.Ljtime;
                        num3++;
                    }
                }
                if (num3 > World.int_4)
                {
                    int totalMilliseconds = (int)DateTime.Now.Subtract(ljtime).TotalMilliseconds;
                    if (totalMilliseconds >= World.int_5)
                    {
                        return;
                    }
                    Form1.WriteLine(1, "到达IP最大连接数" + item.ToString());
                    if (!(!World.bool_2 || World.BipList.Contains(item)))
                    {
                        World.BipList.Add(item);
                    }
                    try
                    {
                        e.AcceptSocket.Shutdown(SocketShutdown.Both);
                    }
                    catch
                    {
                    }
                    try
                    {
                        e.AcceptSocket.Close();
                    }
                    catch
                    {
                    }
                    try
                    {
                        System.Collections.Queue queue = System.Collections.Queue.Synchronized(new System.Collections.Queue());
                        foreach (NetState state2 in World.list.Values)
                        {
                            if (state2.ToString() == item.ToString())
                            {
                                queue.Enqueue(state2);
                            }
                        }
                        while (queue.Count > 0)
                        {
                            ((NetState)queue.Dequeue()).Dispose();
                        }
                        return;
                    }
                    catch
                    {
                        return;
                    }
                }
                if (e.AcceptSocket != null)
                {
                    new NetState(e.AcceptSocket).Start();
                }
                return;

Label_0486:
                if (e.AcceptSocket != null)
                {
                    new NetState(e.AcceptSocket).Start();
                }
            }
            catch (Exception)
            {
            }
            finally
            {
                try
                {
                    using (SocketAsyncEventArgs args3 = new SocketAsyncEventArgs())
                    {
                        args3.UserToken  = this;
                        args3.Completed += new EventHandler <SocketAsyncEventArgs>(this.method_6);
                        this.listenSocket.AcceptAsync(args3);
                    }
                }
                catch (Exception)
                {
                }
            }
        }
Example #7
0
 private void userlist_Load(object sender, EventArgs e)
 {
     try
     {
         this.listView1.ListViewItemSorter = new ListViewColumnSorter();
         this.listView1.ColumnClick       += new ColumnClickEventHandler(ListViewHelper.ListView_ColumnClick);
         lock (World.Players)
         {
             foreach (playerS rs in World.Players.Values)
             {
                 if (rs != null)
                 {
                     string[] items = new string[] { rs.UserId.ToString(), rs.UserIp, RxjhClass.GetUserIpadds(rs.UserIp), rs.ServerID, rs.TimeSpan_0.ToString().Remove(rs.TimeSpan_0.ToString().Length - 8, 8), rs.conn.ToString() };
                     this.listView1.Items.Insert(this.listView1.Items.Count, new ListViewItem(items));
                 }
             }
         }
     }
     catch (Exception)
     {
     }
 }
        public void method_0()
        {
            if (this.int_3 != 1)
            {
                try
                {
                    object[] objArray1;
                    Lock     @lock;
                    char[]   separator = new char[] { ';' };
                    string[] strArray  = World.To_help_fight_winning_gold_ingot_number.Split(separator);
                    char[]   chArray2  = new char[] { ';' };
                    string[] strArray2 = World.Number_of_points_gold_coins_to_help_draw.Split(chArray2);
                    if (this.int_0 > this.int_1)
                    {
                        using (@lock = new Lock(this.class47_0.dictionary_0, "帮战客方.申请人物列表"))
                        {
                            foreach (Players players in this.class47_0.dictionary_0.Values)
                            {
                                if (players.Bang_phai_nhan_vat_thu_bac == 6)
                                {
                                    players.KIEM_TRA_BACH_BAO_CAC_NGUYEN_BAO_SO_LUONG();
                                    players.KIEM_SOAT_CASH_SO_LIEU(Convert.ToInt32(strArray[0]), 1);
                                    players.Player_Money += Convert.ToInt32(strArray[1]);
                                    RxjhClass.DELETE_BANG_CHIEN_DAT_CUOC_DATA(players.Userid, players.UserName, this.class47_0.int_0, 1);
                                    players.UPDATE_RXPIONT();
                                    players.UpdateMoneyAndWeight();
                                }
                                if (this.int_2 == 1)
                                {
                                    players.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(13, 1);
                                }
                                else if (this.int_2 == 2)
                                {
                                    players.GameMessage("The main fact one of them quit map, to help combat the forced end.", 9, "System");
                                }
                                players.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(12, 3);
                                players.Move(0f, 0f, 15f, 0x4b1);
                            }
                        }
                        using (@lock = new Lock(this.class47_1.dictionary_0, "帮战客方.申请人物列表"))
                        {
                            foreach (Players players2 in this.class47_1.dictionary_0.Values)
                            {
                                if (players2.Bang_phai_nhan_vat_thu_bac == 6)
                                {
                                    RxjhClass.DELETE_BANG_CHIEN_DAT_CUOC_DATA(players2.Userid, players2.UserName, this.class47_1.int_0, -1);
                                }
                                if (this.int_2 == 1)
                                {
                                    players2.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(13, -1);
                                }
                                else if (this.int_2 == 2)
                                {
                                    players2.GameMessage("The main fact one of them quit map, to help combat the forced end.", 9, "System");
                                }
                                players2.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(12, 3);
                                players2.Move(0f, 0f, 15f, 0x4b1);
                            }
                            goto Label_06A7;
                        }
                    }
                    if (this.int_1 > this.int_0)
                    {
                        using (@lock = new Lock(this.class47_0.dictionary_0, "帮战客方.申请人物列表"))
                        {
                            foreach (Players players3 in this.class47_0.dictionary_0.Values)
                            {
                                if (players3.Bang_phai_nhan_vat_thu_bac == 6)
                                {
                                    RxjhClass.DELETE_BANG_CHIEN_DAT_CUOC_DATA(players3.Userid, players3.UserName, this.class47_0.int_0, -1);
                                }
                                if (this.int_2 == 1)
                                {
                                    players3.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(13, -1);
                                }
                                else if (this.int_2 == 2)
                                {
                                    players3.GameMessage("The main fact one of them quit map, to help combat the forced end.", 9, "System");
                                }
                                players3.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(12, 3);
                                players3.Move(0f, 0f, 15f, 0x4b1);
                            }
                        }
                        using (@lock = new Lock(this.class47_1.dictionary_0, "帮战客方.申请人物列表"))
                        {
                            foreach (Players players4 in this.class47_1.dictionary_0.Values)
                            {
                                if (players4.Bang_phai_nhan_vat_thu_bac == 6)
                                {
                                    players4.KIEM_TRA_BACH_BAO_CAC_NGUYEN_BAO_SO_LUONG();
                                    players4.KIEM_SOAT_CASH_SO_LIEU(Convert.ToInt32(strArray[0]), 1);
                                    players4.Player_Money += Convert.ToInt32(strArray[1]);
                                    RxjhClass.DELETE_BANG_CHIEN_DAT_CUOC_DATA(players4.Userid, players4.UserName, this.class47_1.int_0, 1);
                                    players4.UPDATE_RXPIONT();
                                    players4.UpdateMoneyAndWeight();
                                }
                                if (this.int_2 == 1)
                                {
                                    players4.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(13, 1);
                                }
                                else if (this.int_2 == 2)
                                {
                                    players4.GameMessage("The main fact one of them quit map, to help combat the forced end.", 9, "System");
                                }
                                players4.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(12, 3);
                                players4.Move(0f, 0f, 15f, 0x4b1);
                            }
                            goto Label_06A7;
                        }
                    }
                    if (this.int_1 == this.int_0)
                    {
                        using (@lock = new Lock(this.class47_0.dictionary_0, "帮战客方.申请人物列表"))
                        {
                            foreach (Players players5 in this.class47_0.dictionary_0.Values)
                            {
                                if (players5.Bang_phai_nhan_vat_thu_bac == 6)
                                {
                                    players5.KIEM_TRA_BACH_BAO_CAC_NGUYEN_BAO_SO_LUONG();
                                    players5.KIEM_SOAT_CASH_SO_LIEU(Convert.ToInt32(strArray2[0]), 1);
                                    players5.Player_Money += Convert.ToInt32(strArray2[1]);
                                    RxjhClass.DELETE_BANG_CHIEN_DAT_CUOC_DATA(players5.Userid, players5.UserName, this.class47_0.int_0, 0);
                                    players5.UPDATE_RXPIONT();
                                    players5.UpdateMoneyAndWeight();
                                }
                                if (this.int_2 == 1)
                                {
                                    players5.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(13, 0);
                                }
                                else if (this.int_2 == 2)
                                {
                                    players5.GameMessage("The main fact one of them quit map, to help combat the forced end.", 9, "System");
                                }
                                players5.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(12, 3);
                                players5.Move(0f, 0f, 15f, 0x4b1);
                            }
                        }
                        using (@lock = new Lock(this.class47_1.dictionary_0, "帮战客方.申请人物列表"))
                        {
                            foreach (Players players6 in this.class47_1.dictionary_0.Values)
                            {
                                if (players6.Bang_phai_nhan_vat_thu_bac == 6)
                                {
                                    players6.KIEM_TRA_BACH_BAO_CAC_NGUYEN_BAO_SO_LUONG();
                                    players6.KIEM_SOAT_CASH_SO_LIEU(Convert.ToInt32(strArray2[0]), 1);
                                    players6.Player_Money += Convert.ToInt32(strArray2[1]);
                                    RxjhClass.DELETE_BANG_CHIEN_DAT_CUOC_DATA(players6.Userid, players6.UserName, this.class47_1.int_0, 0);
                                    players6.UPDATE_RXPIONT();
                                    players6.UpdateMoneyAndWeight();
                                }
                                if (this.int_2 == 1)
                                {
                                    players6.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(13, 0);
                                }
                                else if (this.int_2 == 2)
                                {
                                    players6.GameMessage("The main fact one of them quit map, to help combat the forced end.", 9, "System");
                                }
                                players6.LOI_KHUYEN_CHIEN_TRANH_BAT_DAU(12, 3);
                                players6.Move(0f, 0f, 15f, 0x4b1);
                            }
                        }
                    }
Label_06A7:
                    objArray1 = new object[] {
                        "End gang war mapID:7101 EndID:", this.int_2, " Main gangID:", this.class47_0.int_0, " Main gang name:", this.class47_0.string_0, " Main fact:", this.class47_0.string_1, " Number of people:", this.class47_0.dictionary_0.Count, " fraction:", this.int_0, " ---- Off gangsID:", this.class47_1.int_0, " Off gang name:", this.class47_1.string_0,
                        " Main fact:", this.class47_1.string_1, " Number of people:", this.class47_1.dictionary_0.Count, " fraction:", this.int_1
                    };
                    Form1.WriteLine(0x58, string.Concat(objArray1));
                    this.int_3 = 1;
                    if (this.timer_0 != null)
                    {
                        this.timer_0.Enabled = false;
                        this.timer_0.Close();
                        this.timer_0.Dispose();
                    }
                    if (this.timer_1 != null)
                    {
                        this.timer_1.Enabled = false;
                        this.timer_1.Close();
                        this.timer_1.Dispose();
                    }
                    if (this.class47_0 != null)
                    {
                        if (this.class47_0.dictionary_0 != null)
                        {
                            this.class47_0.dictionary_0.Clear();
                            this.class47_0.dictionary_0 = null;
                        }
                        this.class47_0 = null;
                    }
                    if (this.class47_1 != null)
                    {
                        if (this.class47_1.dictionary_0 != null)
                        {
                            this.class47_1.dictionary_0.Clear();
                            this.class47_1.dictionary_0 = null;
                        }
                        this.class47_1 = null;
                    }
                    World.class11_0 = null;
                    this.int_3      = 1;
                }
                catch (Exception exception)
                {
                    Form1.WriteLine(1, "Blood gang war Dispose() Error:" + exception);
                }
            }
        }
Example #9
0
        public void method_0(byte[] data, int length)
        {
            bool flag = false;

            byte[] toSendBuff = Converter.hexStringToByte("018004000A000300");
            Converter.hexStringToByte("018004000B000300");
            Converter.hexStringToByte("0180040009000300");
            try
            {
                string[]  strArray;
                int       num;
                byte[]    buffer2;
                string[]  strArray2;
                int       num2;
                byte[]    buffer3;
                KillClass class2;
                KillClass class3;
                KillClass class4;
                string    str = RxjhClass.GetUserIpadds(this.Client.ToString()).Replace(" ", "").Trim();
                if (World.string_3 != "")
                {
                    bool flag2 = false;
                    strArray = World.string_3.Split(new char[] { ',' });
                    num      = 0;
                    while (num < strArray.Length)
                    {
                        if (str.IndexOf(strArray[num]) != -1)
                        {
                            if (World.string_7 != "")
                            {
                                string[] strArray3 = World.string_7.Split(new char[] { ',' });
                                for (int i = 0; i < strArray3.Length; i++)
                                {
                                    if (str.IndexOf(strArray3[i]) != -1)
                                    {
                                        flag2 = true;
                                    }
                                }
                            }
                            if (!flag2)
                            {
                                goto Label_012F;
                            }
                        }
                        num++;
                    }
                }
                goto Label_0197;
Label_012F:
                buffer2 = this.SetMsg("请重新登陆");
                Form1.WriteLine(1, str + "用户登陆[" + this.Client.ToString() + "]被封" + strArray[num]);
                this.Client.Send(buffer2, buffer2.Length);
                return;

Label_0197:
                if (World.string_4 != "")
                {
                    strArray2 = World.string_4.Split(new char[] { ',' });
                    num2      = 0;
                    while (num2 < strArray2.Length)
                    {
                        if (this.Client.ToString().IndexOf(strArray2[num2]) != -1)
                        {
                            goto Label_020B;
                        }
                        num2++;
                    }
                }
                goto Label_0275;
Label_020B:
                buffer3 = this.SetMsg("你的IP以被管理员停封");
                Form1.WriteLine(1, str + "用户登陆[" + this.Client.ToString() + "]被封" + strArray2[num2]);
                this.Client.Send(buffer3, buffer3.Length);
                return;

Label_0275:
                if (RxjhClass.GetUserIP(this.Client.ToString()) == -1)
                {
                    byte[] buffer4 = this.SetMsg("你的IP以被管理员停封");
                    Form1.WriteLine(2, "用户登陆[" + this.Client.ToString() + "]被封");
                    this.Client.Send(buffer4, buffer4.Length);
                    return;
                }
                string webString = "";
                string pwd       = "";
                try
                {
                    byte[] dst = new byte[data[4]];
                    Buffer.BlockCopy(data, 6, dst, 0, dst.Length);
                    webString = Encoding.Default.GetString(dst).Trim();
                    if (webString.Length > 14)
                    {
                        return;
                    }
                }
                catch (Exception exception)
                {
                    byte[] buffer6 = this.SetMsg("系统错误,请联系客服人员1");
                    Form1.WriteLine(1, "getid_得到ID 系统错误" + exception.Message);
                    this.Client.Send(buffer6, buffer6.Length);
                    return;
                }
                try
                {
                    byte[] buffer7 = new byte[data[6 + data[4]]];
                    Buffer.BlockCopy(data, 8 + data[4], buffer7, 0, buffer7.Length);
                    pwd = Encoding.Default.GetString(buffer7).Trim();
                }
                catch (Exception exception2)
                {
                    byte[] buffer8 = this.SetMsg("系统错误,请联系客服人员2");
                    Form1.WriteLine(1, "getid_得到pwd 系统错误" + exception2.Message);
                    this.Client.Send(buffer8, buffer8.Length);
                    return;
                }
                if (webString == "getver123")
                {
                    byte[] buffer9 = this.SetMsg(Assembly.GetExecutingAssembly().GetName().Version.ToString());
                    this.Client.Send(buffer9, buffer9.Length);
                    return;
                }
                if (RxjhClass.ReplaceComma(webString) == -1)
                {
                    byte[] buffer10 = this.SetMsg("检查到你输入了非法字符,请重新填写");
                    this.Client.Send(buffer10, buffer10.Length);
                    return;
                }
                if (World.KillList.TryGetValue(webString, out class2) && (class2.conn >= 5))
                {
                    Form1.WriteLine(2, "用户登陆[" + webString + "]-密码错误多次");
                    byte[] buffer11 = this.SetMsg("你输入的帐号密码错误多次,请5分钟以后再试。");
                    this.Client.Send(buffer11, buffer11.Length);
                    return;
                }
                int num4 = -2;
                try
                {
                    num4 = RxjhClass.GetUserId(webString, pwd, this.Client.ToString());
                }
                catch (Exception exception3)
                {
                    string str4 = Converter.ToString(data);
                    Console.WriteLine(str4);
                    Form1.WriteLine(1, str4);
                    Form1.WriteLine(1, exception3.Message);
                }
                switch (num4)
                {
                case -2:
                {
                    byte[] buffer13 = this.SetMsg("系统错误,请联系客服人员8");
                    this.Client.Send(buffer13, buffer13.Length);
                    return;
                }

                case -1:
                {
                    byte[] buffer12 = this.SetMsg("你输入的帐号[" + webString + "]不存在\r\n请到" + World.string_6 + "重新注册帐号");
                    Form1.WriteLine(2, "用户登陆[" + webString + "]账号不存在");
                    this.Client.Send(buffer12, buffer12.Length);
                    return;
                }

                case 0:

                    if (!World.KillList.TryGetValue(webString, out class3))
                    {
                        goto Label_06E6;
                    }
                    if (class3.conn >= 5)
                    {
                        break;
                    }

                    class3.conn++;
                    Form1.WriteLine(2, "用户登陆[" + webString + "]-[" + pwd + "]密码错误");
                    this.Client.Send(toSendBuff, toSendBuff.Length);
                    return;

                case 2:
                {
                    byte[] buffer15 = this.SetMsg("你输入的帐号以被停封。");
                    Form1.WriteLine(2, "用户登陆[" + webString + "]账号以被停封");
                    this.Client.Send(buffer15, buffer15.Length);
                    return;
                }

                default:
                    goto Label_07A4;
                }
                class3.time = DateTime.Now.AddMinutes(5.0);
                Form1.WriteLine(2, "用户登陆[" + webString + "]-[" + pwd + "]密码错误");
                byte[] buffer14 = this.SetMsg("你输入的帐号密码错误多次,请5分钟以后再试。");
                this.Client.Send(buffer14, buffer14.Length);
                return;

Label_06E6:
                class4        = new KillClass();
                class4.UserId = webString;
                class4.conn   = 1;
                class3        = class4;
                World.KillList.Add(webString, class3);
                Form1.WriteLine(2, "用户登陆[" + webString + "]-[" + pwd + "]密码错误");
                this.Client.Send(toSendBuff, toSendBuff.Length);
                return;

Label_07A4:
                if (num4 == 1)
                {
                    if (World.KillList.ContainsKey(webString))
                    {
                        World.KillList.Remove(webString);
                    }
                    byte[] buffer16 = new byte[((11 + webString.Length) + webString.Length) + 3];
                    byte[] src      = Converter.hexStringToByte("01800C0000003300");
                    try
                    {
                        Buffer.BlockCopy(src, 0, buffer16, 0, src.Length);
                    }
                    catch (Exception exception4)
                    {
                        byte[] buffer18 = this.SetMsg("系统错误,请联系客服人员3");
                        Form1.WriteLine(1, string.Concat(new object[] { "getid_bySend 1错误", buffer16.Length, " ", src.Length, exception4.Message }));
                        this.Client.Send(buffer18, buffer18.Length);
                        return;
                    }
                    byte[] bytes = new byte[0];
                    try
                    {
                        Buffer.BlockCopy(BitConverter.GetBytes(webString.Length), 0, buffer16, 8, 1);
                        Buffer.BlockCopy(BitConverter.GetBytes(webString.Length), 0, buffer16, (8 + webString.Length) + 3, 1);
                        Buffer.BlockCopy(BitConverter.GetBytes((int)(((7 + webString.Length) + webString.Length) + 2)), 0, buffer16, 2, 1);
                        bytes = Encoding.Default.GetBytes(webString);
                    }
                    catch (Exception exception5)
                    {
                        byte[] buffer20 = this.SetMsg("系统错误,请联系客服人员4");
                        Form1.WriteLine(1, string.Concat(new object[] { "getid_bySend 2错误", buffer16.Length, " ", bytes.Length, exception5.Message }));
                        this.Client.Send(buffer20, buffer20.Length);
                        return;
                    }
                    try
                    {
                        Buffer.BlockCopy(bytes, 0, buffer16, 10, bytes.Length);
                        Buffer.BlockCopy(bytes, 0, buffer16, (10 + webString.Length) + 3, bytes.Length);
                    }
                    catch (Exception exception6)
                    {
                        byte[] buffer21 = this.SetMsg("系统错误,请联系客服人员5");
                        Form1.WriteLine(1, string.Concat(new object[] { "getid_bySend 错误", buffer16.Length, " ", bytes.Length, exception6.Message }));
                        this.Client.Send(buffer21, buffer21.Length);
                        return;
                    }
                    try
                    {
                        string[] strArray4 = World.string_2.Split(new char[] { ';' });
                        if (strArray4.Length > 1)
                        {
                            for (int j = 0; j < strArray4.Length; j++)
                            {
                                if (RxjhClass.GetFq(webString) == strArray4[j])
                                {
                                    flag = true;
                                }
                            }
                        }
                    }
                    catch
                    {
                        byte[] buffer22 = this.SetMsg("系统错误,未设置正确的登陆分区,请联系管理员6");
                        this.Client.Send(buffer22, buffer22.Length);
                        return;
                    }
                    if (!flag)
                    {
                        byte[] buffer23 = this.SetMsg("帐号未激活或进错分区,请联系管理员7");
                        this.Client.Send(buffer23, buffer23.Length);
                    }
                    else if (!World.smethod_1(webString))
                    {
                        byte[] buffer24 = this.SetMsg("系统错误,请联系客服人员,请重新登陆6");
                        this.Client.Send(buffer24, buffer24.Length);
                    }
                    else
                    {
                        Form1.WriteLine(2, "用户登陆[" + webString + "]-[" + pwd + "]登陆成功 " + str + " " + this.Client.ToString());
                        this.Client.Send(buffer16, buffer16.Length);
                    }
                }
            }
            catch (Exception exception7)
            {
                byte[] buffer25 = this.SetMsg("系统错误,请联系客服人员7");
                Form1.WriteLine(1, "getid系统错误" + exception7.Message);
                this.Client.Send(buffer25, buffer25.Length);
            }
        }
Example #10
0
 public void method_14(int int_0, int int_1, int int_2)
 {
     if (int_2 != 0)
     {
         int num  = 0;
         int num1 = 0;
         int num2 = 0;
         int num3 = 0;
         int num4 = 0;
         for (int i = 0; i < 36; i++)
         {
             if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[i].VAT_PHAM_ID, 0) == 1000000161)
             {
                 num = 1;
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[i].VAT_PHAM_ID, 0) == 1000000162)
             {
                 num1 = 1;
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[i].VAT_PHAM_ID, 0) == 1000000163)
             {
                 num2 = 1;
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[i].VAT_PHAM_ID, 0) == 1000000164)
             {
                 num3 = 1;
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[i].VAT_PHAM_ID, 0) == 1000000199)
             {
                 num4 = 1;
             }
         }
         if (num == 0 || num1 == 0 || num2 == 0 || num3 == 0 || num4 == 0)
         {
             this.method_1(int_0, 12, int_2);
             return;
         }
         for (int j = 0; j < 36; j++)
         {
             if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[j].VAT_PHAM_ID, 0) == 1000000161)
             {
                 this.class15_0.LAM_GIAM_DI_VAT_PHAM(j, 1);
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[j].VAT_PHAM_ID, 0) == 1000000162)
             {
                 this.class15_0.LAM_GIAM_DI_VAT_PHAM(j, 1);
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[j].VAT_PHAM_ID, 0) == 1000000163)
             {
                 this.class15_0.LAM_GIAM_DI_VAT_PHAM(j, 1);
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[j].VAT_PHAM_ID, 0) == 1000000164)
             {
                 this.class15_0.LAM_GIAM_DI_VAT_PHAM(j, 1);
             }
             else if (BitConverter.ToInt32(this.class15_0.TRANG_BI_LAN_BAO_VAY[j].VAT_PHAM_ID, 0) == 1000000199)
             {
                 this.class15_0.LAM_GIAM_DI_VAT_PHAM(j, 1);
             }
         }
         int    num5  = this.class15_0.DUOC_KIEN_HANG_RONG(this.class15_0);
         byte[] bytes = BitConverter.GetBytes(RxjhClass.GetDBItmeId());
         this.class15_0.TANG_CUONG_VAT_PHAM(bytes, BitConverter.GetBytes(1000000365), num5, BitConverter.GetBytes(1), new byte[56]);
         this.method_1(int_0, 11, 2);
         this.method_12(int_0, 3);
     }
     else
     {
         if (int_1 == 1)
         {
             this.method_1(int_0, 11, int_2);
             return;
         }
         if (int_1 == 2)
         {
             this.method_1(int_0, 21, int_2);
             this.method_12(int_0, 1);
             return;
         }
         if (int_1 == 3)
         {
             this.method_1(int_0, 31, int_2);
             return;
         }
     }
 }
Example #11
0
        public void method_11(int int_0, int int_1, int int_2)
        {
            if (int_1 == 1)
            {
                if (this.class15_0.Player_FLD_LEVEL < 120 || this.class15_0.Player_Money < (long)1000000000)
                {
                    this.method_1(int_0, 10, int_2);
                }
                else
                {
                    this.method_1(int_0, 11, int_2);
                }
            }
            if (int_1 == 2)
            {
                if (this.class15_0.Player_FLD_JOB_LEVEL >= 7)
                {
                    return;
                }
                if (this.class15_0.Player_FLD_LEVEL < 120 || this.class15_0.Player_Money < (long)1000000000)
                {
                    this.method_1(int_0, 10, int_2);
                }
                else
                {
                    int num = this.class15_0.DUOC_KIEN_HANG_RONG(this.class15_0);
                    if (num != -1)
                    {
                        this.class15_0.NHAN_VAT_CHUYEN_NGHE_NGHIEP(this.class15_0.Player_Zx, 7);
                        this.method_1(int_0, 21, 1);
                        this.method_12(int_0, 1);
                        byte[] bytes = BitConverter.GetBytes(RxjhClass.GetDBItmeId());
                        int    num1  = 0;
                        switch (this.class15_0.Player_Job)
                        {
                        case 1:
                        {
                            if (this.class15_0.Player_Zx == 1)
                            {
                                num1 = 1000000388;
                                break;
                            }
                            else
                            {
                                num1 = 1000000394;
                                break;
                            }
                        }

                        case 2:
                        {
                            if (this.class15_0.Player_Zx == 1)
                            {
                                num1 = 1000000389;
                                break;
                            }
                            else
                            {
                                num1 = 1000000395;
                                break;
                            }
                        }

                        case 3:
                        {
                            if (this.class15_0.Player_Zx == 1)
                            {
                                num1 = 1000000390;
                                break;
                            }
                            else
                            {
                                num1 = 1000000396;
                                break;
                            }
                        }

                        case 4:
                        {
                            if (this.class15_0.Player_Zx == 1)
                            {
                                num1 = 1000000391;
                                break;
                            }
                            else
                            {
                                num1 = 1000000397;
                                break;
                            }
                        }

                        case 5:
                        {
                            if (this.class15_0.Player_Zx == 1)
                            {
                                num1 = 1000000392;
                                break;
                            }
                            else
                            {
                                num1 = 1000000398;
                                break;
                            }
                        }

                        case 6:
                        {
                            if (this.class15_0.Player_Zx == 1)
                            {
                                num1 = 1000000393;
                                break;
                            }
                            else
                            {
                                num1 = 1000000399;
                                break;
                            }
                        }
                        }
                        this.class15_0.TANG_CUONG_VAT_PHAM_2(bytes, BitConverter.GetBytes(num1), num, BitConverter.GetBytes(1), new byte[56]);
                        this.class15_0.UpdatePowersAndStatus();
                        this.class15_0.UpdateExperience();
                        this.class15_0.LAN_DAU_DOI_THOAI_DA_TRANG_BI_VAT_PHAM();
                        this.class15_0.UpdateMoneyAndWeight();
                    }
                    else
                    {
                        this.class15_0.GameMessage("Equipment bar no vacancy, please clean up", 9, "System");
                        this.method_1(int_0, 31, int_2);
                    }
                }
            }
            if (int_1 == 3)
            {
                this.method_1(int_0, 31, int_2);
            }
        }
Example #12
0
        public void THOI_GIAN_KET_THUC_SU_KIEN3(object sender, ElapsedEventArgs e)
        {
            DateTime now;

            if (World.jlMsg == 1)
            {
                Form1.WriteLine(0, "EventClass_THOI_GIAN_KET_THUC_SU_KIEN3");
            }
            try
            {
                DBA.ExeSqlCommand(string.Concat("DELETE FROM EventTop where PHAN_KHU_TIN_TUC='", World.Phan_khu_danh_so, "'"));
                foreach (EventTopClass value in World.EventTop.Values)
                {
                    DBA.ExeSqlCommand(string.Format("INSERT INTO EventTop (NHAN_VAT_TEN,BANG_PHAI,THE_LUC,DANG_CAP,GIET_NGUOI_SO,TU_VONG_SO,PHAN_KHU_TIN_TUC)values('{0}','{1}','{2}',{3},{4},{5},'{6}')", new object[] { value.string_0, value.string_1, value.THE_LUC, value.int_0, value.Kills, value.Dead, World.Phan_khu_danh_so }));
                }
                string empty = string.Empty;
                World.EventTop.Clear();
                if (World.THE_LUC_CHIEN_2_CHINH_PHAI_DIEM_SO > World.THE_LUC_CHIEN_2_TA_PHAI_DIEM_SO)
                {
                    this.THE_LUC_CHIEN_sj = 1;
                    World.SendMsg("Death loss of っ leave Iraq by Nan Yi Yi づ cut Bru village: the ignorant column");
                }
                else if (World.THE_LUC_CHIEN_2_CHINH_PHAI_DIEM_SO != World.THE_LUC_CHIEN_2_TA_PHAI_DIEM_SO)
                {
                    this.THE_LUC_CHIEN_sj = 2;
                    World.SendMsg("Death loss of っ Iraqi borrow clothes づ Yijianangua Bru village: through sister bright");
                }
                else
                {
                    this.THE_LUC_CHIEN_sj = 3;
                    World.SendMsg("Death loss of っ Iraqi borrow clothes づ Yijianangua Bru village: Suo Restraints");
                }
                foreach (Players player in World.allConnectedChars.Values)
                {
                    if (player.CharacterCoords_Map == 801)
                    {
                        player.GUI_DI_THE_LUC_CHIEN_KET_THUC_TIN_TUC(this.THE_LUC_CHIEN_sj);
                        if (player.Player_Zx == this.THE_LUC_CHIEN_sj)
                        {
                            if (World.The_luc_chien_khen_thuong_Loai_hinh == 1)
                            {
                                string[] strArrays  = World.The_luc_chien_khen_thuong_Thuoc_tinh.Split(new char[] { ';' });
                                string[] strArrays1 = World.Thang_cap_thanh_vien_can_Thuoc_tinh.Split(new char[] { ',' });
                                if (int.Parse(strArrays[0]) != 0)
                                {
                                    Players khenThuongThemVaoSinhMenh = player;
                                    khenThuongThemVaoSinhMenh.Khen_thuong_them_vao_sinh_menh = khenThuongThemVaoSinhMenh.Khen_thuong_them_vao_sinh_menh + long.Parse(strArrays[0]);
                                    player.GameMessage(string.Concat("life", long.Parse(strArrays[0])), 10, "Forces battle reward");
                                }
                                if (long.Parse(strArrays[1]) != 0 && player.Khen_thuong_them_vao_cong_kich < long.Parse(strArrays1[0]))
                                {
                                    Players khenThuongThemVaoCongKich = player;
                                    khenThuongThemVaoCongKich.Khen_thuong_them_vao_cong_kich = khenThuongThemVaoCongKich.Khen_thuong_them_vao_cong_kich + long.Parse(strArrays[1]);
                                    player.GameMessage(string.Concat("attack", long.Parse(strArrays[1])), 10, "Forces battle reward");
                                }
                                if (long.Parse(strArrays[2]) != 0 && player.Khen_thuong_them_vao_phong_ngu < long.Parse(strArrays1[1]))
                                {
                                    Players khenThuongThemVaoPhongNgu = player;
                                    khenThuongThemVaoPhongNgu.Khen_thuong_them_vao_phong_ngu = khenThuongThemVaoPhongNgu.Khen_thuong_them_vao_phong_ngu + long.Parse(strArrays[2]);
                                    player.GameMessage(string.Concat("defense", long.Parse(strArrays[2])), 10, "Forces battle reward");
                                }
                                if (int.Parse(strArrays[3]) != 0)
                                {
                                    Players khenThuongThemVaoNeTranh = player;
                                    khenThuongThemVaoNeTranh.Khen_thuong_them_vao_ne_tranh = khenThuongThemVaoNeTranh.Khen_thuong_them_vao_ne_tranh + int.Parse(strArrays[3]);
                                    player.GameMessage(string.Concat("avoid", int.Parse(strArrays[3])), 10, "Forces battle reward");
                                }
                                if (int.Parse(strArrays[4]) != 0)
                                {
                                    Players khenThuongThemVaoNoiCong = player;
                                    khenThuongThemVaoNoiCong.Khen_thuong_them_vao_noi_cong = khenThuongThemVaoNoiCong.Khen_thuong_them_vao_noi_cong + int.Parse(strArrays[4]);
                                    player.GameMessage(string.Concat("Neigong", int.Parse(strArrays[4])), 10, "Forces battle reward");
                                }
                                if (int.Parse(strArrays[5]) != 0)
                                {
                                    Players khenThuongThemVaoTrungMucTieu = player;
                                    khenThuongThemVaoTrungMucTieu.Khen_thuong_them_vao_trung_muc_tieu = khenThuongThemVaoTrungMucTieu.Khen_thuong_them_vao_trung_muc_tieu + int.Parse(strArrays[5]);
                                    player.GameMessage(string.Concat("Hit", int.Parse(strArrays[5])), 10, "Forces battle reward");
                                }
                                if (int.Parse(strArrays[6]) != 0 && player.FLD_RXPIONT != World.Nhan_vat_lon_nhat_CASH_so_luong)
                                {
                                    player.KIEM_TRA_BACH_BAO_CAC_NGUYEN_BAO_SO_LUONG();
                                    player.KIEM_SOAT_CASH_SO_LIEU(int.Parse(strArrays[6]), 1);
                                    player.GameMessage(string.Concat("Get", int.Parse(strArrays[6]), "Ingot!"), 10, "Forces battle reward");
                                    player.UPDATE_RXPIONT();
                                }
                                if (int.Parse(strArrays[7]) != 0)
                                {
                                    Players playerWuXun = player;
                                    playerWuXun.Player_WuXun = playerWuXun.Player_WuXun + int.Parse(strArrays[7]);
                                    player.GameMessage(string.Concat("Nhan duoc diem vo huan:  ", int.Parse(strArrays[7])), 10, World.ServerName);
                                    player.UpdatePowersAndStatus();
                                }
                                if (int.Parse(strArrays[8]) != 0)
                                {
                                    DateTime dateTime = DateTime.Now;
                                    now               = DateTime.Now;
                                    dateTime          = now.AddDays((double)int.Parse(strArrays[8]));
                                    player.FLD_VIP    = 1;
                                    player.FLD_VIPTIM = dateTime;
                                    player.LUU_THANH_VIEN_SO_LIEU();
                                    player.GameMessage(string.Concat("Congratulations, you get", int.Parse(strArrays[8]), "Day membership, please check the small back!"), 10, "Reward fighting forces");
                                }
                            }
                            else if (World.The_luc_chien_khen_thuong_Loai_hinh == 2)
                            {
                                int num = player.DUOC_KIEN_HANG_RONG(player);
                                if (num == -1)
                                {
                                    player.GameMessage("Please leave by empty backpack, send have AK IT!", 10, "Reward fighting forces");
                                    return;
                                }
                                else
                                {
                                    byte[] bytes    = BitConverter.GetBytes(RxjhClass.GetDBItmeId());
                                    byte[] numArray = new byte[56];
                                    player.TANG_CUONG_VAT_PHAM_1(bytes, BitConverter.GetBytes(World.The_luc_chien_khen_thuong_trang_phuc), num, BitConverter.GetBytes(1), numArray, false);
                                    player.GameMessage("Congratulations, you get a package, please check!", 10, "Reward fighting forces");
                                }
                            }
                            else if (World.The_luc_chien_khen_thuong_Loai_hinh == 3)
                            {
                                string[] strArrays2 = World.The_luc_chien_khen_thuong_Item.Split(new char[] { ';' });
                                int      num1       = player.DUOC_KIEN_HANG_RONG(player);
                                if (num1 == -1)
                                {
                                    player.GameMessage("Please leave an empty backpack, send you a mysterious gift Oh!", 10, "Reward fighting forces");
                                    return;
                                }
                                else
                                {
                                    player.BACH_BAO_TANG_CUONG_ITEM_MANG_THUOC_TINH(int.Parse(strArrays2[0]), num1, int.Parse(strArrays2[1]), int.Parse(strArrays2[2]), int.Parse(strArrays2[3]), int.Parse(strArrays2[4]), int.Parse(strArrays2[5]), int.Parse(strArrays2[6]), int.Parse(strArrays2[7]), int.Parse(strArrays2[8]), int.Parse(strArrays2[9]), int.Parse(strArrays2[10]), int.Parse(strArrays2[11]));
                                    player.GameMessage("Congratulations, you get a system of reward items, please check!", 10, "Reward fighting forces");
                                }
                            }
                        }
                    }
                    player.SendCountdown(5, 2, 0);
                }
                World.THE_LUC_CHIEN_2_TIEN_TRINH = 5;
                now         = DateTime.Now;
                this.kssjgj = now.AddMinutes(30);
                this.THOI_GIAN_3.Enabled = false;
                this.THOI_GIAN_3.Close();
                this.THOI_GIAN_3.Dispose();
                this.THOI_GIAN_4           = new System.Timers.Timer(60000);
                this.THOI_GIAN_4.Elapsed  += new ElapsedEventHandler(this.THOI_GIAN_KET_THUC_SU_KIEN4);
                this.THOI_GIAN_4.Enabled   = true;
                this.THOI_GIAN_4.AutoReset = true;
                this.THOI_GIAN_5           = new System.Timers.Timer(60000);
                this.THOI_GIAN_5.Elapsed  += new ElapsedEventHandler(this.THOI_GIAN_KET_THUC_SU_KIEN5);
                this.THOI_GIAN_5.Enabled   = true;
                this.THOI_GIAN_5.AutoReset = true;
            }
            catch (Exception exception)
            {
                Form1.WriteLine(1, string.Concat("势力战 THOI_GIAN_KET_THUC_SU_KIEN3 出错:", exception));
            }
        }
Example #13
0
        public void jl(string string_0)
        {
            if (World.jlMsg == 1)
            {
                Form1.WriteLine(0, "EventClass-jl");
            }
            DataTable dBToDataTable = DBA.GetDBToDataTable(string.Format("Select * from [EventTop] where THE_LUC='{0}' Order By GIET_NGUOI_SO Desc,TU_VONG_SO Asc", string_0));

            if (dBToDataTable != null && dBToDataTable.Rows.Count > 0)
            {
                for (int i = 0; i < dBToDataTable.Rows.Count; i++)
                {
                    Players player = World.smethod_2(dBToDataTable.Rows[i]["NHAN_VAT_TEN"].ToString());
                    if (player != null)
                    {
                        foreach (TBL_XWWL_DROP tBLXWWLDROP in TBL_XWWL_DROP.smethod_0(i * (100 / dBToDataTable.Rows.Count)))
                        {
                            if (tBLXWWLDROP == null)
                            {
                                continue;
                            }
                            int fLDPID = tBLXWWLDROP.FLD_PID;
                            if (fLDPID > 800000002)
                            {
                                if (fLDPID == 800000013)
                                {
                                    Random random = new Random();
                                    int    num    = random.Next(8, 10);
                                    string str    = "0000";
                                    int    num1   = 0;
                                    num1 = random.Next(1, 3);
                                    string str1 = string.Concat(num.ToString(), str, num1);
                                    tBLXWWLDROP.FLD_MAGIC0 = int.Parse(str1);
                                }
                                else
                                {
                                    switch (fLDPID)
                                    {
                                    case 800000023:
                                    {
                                        tBLXWWLDROP.FLD_MAGIC0 = (new Random()).Next(700020, 700031);
                                        break;
                                    }

                                    case 800000024:
                                    {
                                        tBLXWWLDROP.FLD_MAGIC0 = (new Random()).Next(200018, 200026);
                                        break;
                                    }

                                    case 800000025:
                                    {
                                        tBLXWWLDROP.FLD_MAGIC0 = (new Random()).Next(1000005, 1000021);
                                        break;
                                    }

                                    case 800000026:
                                    {
                                        tBLXWWLDROP.FLD_MAGIC0 = (new Random()).Next(700015, 700026);
                                        break;
                                    }

                                    case 800000028:
                                    {
                                        int    num2 = (new Random()).Next(1, 7);
                                        string str2 = "000";
                                        string str3 = string.Concat("200", num2.ToString(), str2);
                                        tBLXWWLDROP.FLD_MAGIC0 = int.Parse(str3);
                                        break;
                                    }
                                    }
                                }
                            }
                            else if (fLDPID == 800000001)
                            {
                                tBLXWWLDROP.FLD_MAGIC0 = (new Random()).Next(100010, 100026);
                            }
                            else if (fLDPID == 800000002)
                            {
                                tBLXWWLDROP.FLD_MAGIC0 = (new Random()).Next(200010, 200021);
                            }
                            int num3 = player.DUOC_KIEN_HANG_RONG(player);
                            if (num3 == -1)
                            {
                                continue;
                            }
                            byte[] bytes     = BitConverter.GetBytes(tBLXWWLDROP.FLD_PID);
                            byte[] numArray  = BitConverter.GetBytes(1);
                            byte[] numArray1 = new byte[56];
                            byte[] bytes1    = BitConverter.GetBytes(RxjhClass.GetDBItmeId());
                            Buffer.BlockCopy(BitConverter.GetBytes(tBLXWWLDROP.FLD_MAGIC0), 0, numArray1, 0, 4);
                            Buffer.BlockCopy(BitConverter.GetBytes(tBLXWWLDROP.FLD_MAGIC1), 0, numArray1, 4, 4);
                            Buffer.BlockCopy(BitConverter.GetBytes(tBLXWWLDROP.FLD_MAGIC2), 0, numArray1, 8, 4);
                            Buffer.BlockCopy(BitConverter.GetBytes(tBLXWWLDROP.FLD_MAGIC3), 0, numArray1, 12, 4);
                            Buffer.BlockCopy(BitConverter.GetBytes(tBLXWWLDROP.FLD_MAGIC4), 0, numArray1, 16, 4);
                            player.TANG_CUONG_VAT_PHAM(bytes1, bytes, num3, numArray, numArray1);
                        }
                    }
                }
            }
        }