public static ItemInformationPacket Create(Structures.ConquerItem item, ItemInfoAction createType = ItemInfoAction.AddItem)
        {
            var packet = new ItemInformationPacket();

            packet.UniqueID          = item.UniqueID;
            packet.StaticID          = item.StaticID;
            packet.Durability        = item.Durability;
            packet.MaximumDurability = item.MaximumDurability;
            packet.Action            = createType;
            packet.Location          = item.Location;
            packet.Gem1    = item.Gem1;
            packet.Gem2    = item.Gem2;
            packet.Plus    = item.Plus;
            packet.Bless   = item.Bless;
            packet.Enchant = item.Enchant;
            packet.Color   = item.Color;
            packet.Locked  = item.Locked;
            return(packet);
        }
        public static ItemInformationPacket CreateObserveItem(Structures.ConquerItem _item, uint _owner)
        {
            var packet = new ItemInformationPacket();

            packet.UniqueID          = _owner;
            packet.StaticID          = _item.StaticID;
            packet.Durability        = _item.Durability;
            packet.MaximumDurability = _item.MaximumDurability;
            packet.Action            = ItemInfoAction.OtherPlayerEquipment;
            packet.Location          = _item.Location;
            packet.Gem1    = _item.Gem1;
            packet.Gem2    = _item.Gem2;
            packet.Plus    = _item.Plus;
            packet.Bless   = _item.Bless;
            packet.Enchant = _item.Enchant;
            packet.Color   = _item.Color;
            packet.Locked  = _item.Locked;
            return(packet);
        }
コード例 #3
0
        public static ItemInformationPacket CreateJar(Structures.ConquerItem item, ushort _MonsterType, ushort _ToKill, ItemInfoAction createType = ItemInfoAction.AddItem)
        {
            var packet = new ItemInformationPacket();

            packet.UniqueID          = item.UniqueID;
            packet.StaticID          = item.StaticID;
            packet.Durability        = _ToKill;
            packet.MaximumDurability = _MonsterType;
            packet.Action            = createType;
            packet.Location          = item.Location;
            packet.Gem1         = item.Gem1;
            packet.Gem2         = item.Gem2;
            packet.Plus         = item.Plus;
            packet.Bless        = item.Bless;
            packet.Enchant      = item.Enchant;
            packet.Color        = item.Color;
            packet.Locked       = item.Locked;
            packet.RebornEffect = item.Effect;
            return(packet);
        }
コード例 #4
0
        public static void ActiveCool(Player MyClient)
        {
            byte counter = 0;

            for (byte i = 1; i < 9; i++)
            {
                if (i == 7)
                {
                    i++;
                }
                ItemInformationPacket I = MyClient.Equipment.GetEnumerator(i);
                if (I.ID != 0)
                {
                    Game.ItemIDManipulation Q = new NewestCOServer.Game.ItemIDManipulation(I.ID);
                    if (Q.Quality == Game.Item.ItemQuality.Super)
                    {
                        counter += 1;
                    }
                }
            }

            if (MyClient.MyChar.Job >= 100)
            {
                if (counter == 6)
                {
                    counter = 7;
                }
            }
            if (MyClient.MyChar.Job >= 40 && MyClient.MyChar.Job <= 45)
            {
                if (counter == 6)
                {
                    Game.Item I = MyClient.MyChar.Equips.Get(5);
                    I.ID = MyClient.MyChar.Equips.LeftHand.ID;
                    if (I.ID == 0)
                    {
                        counter = 7;
                    }
                }
            }
            if (counter == 7)
            {
                if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior"));
                }
                else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter"));
                }
                else if (MyClient.MyChar.Job >= 100)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist"));
                }
                else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer"));
                }
            }
            else
            {
                if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior-s"));
                }
                else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter-s"));
                }
                else if (MyClient.MyChar.Job >= 100)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist-s"));
                }
                else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
                {
                    MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer-s"));
                }
            }
            MyClient.MyChar.Action = 100;
        }