public uint Execute(PacketDistributed ipacket)
        {
            CG_GUILD_CREATE packet = (CG_GUILD_CREATE )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
        //申请创建帮会
        public void ReqCreateGuild(string guildName, string guildDeclaration)
        {
            //检测名字长度
            if (guildName.Length <= 0 || Encoding.UTF8.GetBytes(guildName).Length > GlobeVar.MAX_GUILD_NAME)
            {
                GUIData.AddNotifyData("#{1761}");   //请输入帮会名称
                return;
            }

            if (Encoding.UTF8.GetBytes(guildDeclaration).Length > GlobeVar.MAX_GUILD_DECLARATION)
            {
                return;
            }

            //玩家等级判断
            if (BaseAttr.Level < GlobeVar.CREATE_GUILD_LEVEL)
            {
                GUIData.AddNotifyData("#{1771}");    //你的人物等级不足40级,无法创建帮会
                return;
            }

            //有帮会无法申请
            if (GameManager.gameManager.PlayerDataPool.GuildInfo.GuildGuid != GlobeVar.INVALID_GUID)
            {
                GUIData.AddNotifyData("#{1772}");       //你已属于一个帮会,不能创建帮会
                return;
            }

            CG_GUILD_CREATE msg = (CG_GUILD_CREATE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_CREATE);

            msg.GuildName = guildName;
            if (guildDeclaration != "")
            {
                msg.GuildDeclaration = guildDeclaration;
            }
            msg.SendPacket();
        }