Exemplo n.º 1
0
        public ProjectX_V3_Game.Packets.ViewItemPacket CreateViewPacket(uint owner, ushort viewtype)
        {
            var view = new ProjectX_V3_Game.Packets.ViewItemPacket();

            view.ViewType    = viewtype;
            view.TargetUID   = owner;
            view.ItemID      = ItemID;
            view.ItemUID     = UID;
            view.CurrentDura = (ushort)CurrentDura;
            view.MaxDura     = (ushort)MaxDura;
            view.Location    = Location;
            view.Gem1        = Gem1;
            view.Gem2        = Gem2;
            view.Plus        = Plus;
            view.Bless       = Bless;
            view.Free        = Free;
            view.Enchant     = Enchant;
            view.Suspicious  = Suspicious;
            view.Color       = (byte)Color;
            view.Composition = Composition;
            return(view);
        }
Exemplo n.º 2
0
 public ProjectX_V3_Game.Packets.ViewItemPacket CreateViewPacket(uint owner, ushort viewtype)
 {
     var view = new ProjectX_V3_Game.Packets.ViewItemPacket();
     view.ViewType = viewtype;
     view.TargetUID = owner;
     view.ItemID = ItemID;
     view.ItemUID = UID;
     view.CurrentDura = (ushort)CurrentDura;
     view.MaxDura = (ushort)MaxDura;
     view.Location = Location;
     view.Gem1 = Gem1;
     view.Gem2 = Gem2;
     view.Plus = Plus;
     view.Bless = Bless;
     view.Free = Free;
     view.Enchant = Enchant;
     view.Suspicious = Suspicious;
     view.Color = (byte)Color;
     view.Composition = Composition;
     return view;
 }