Exemple #1
0
        public Gump OnBeginDrag()
        {
            int num  = this.m_ID & 0x3fff;
            int num2 = (ushort)this.m_Amount;

            if (Map.m_ItemFlags[num & 0x3fff][TileFlag.Generic] && (num2 > 1))
            {
                GDragAmount amount = new GDragAmount(this);
                Gumps.Desktop.Children.Add(amount);
                return(amount);
            }
            Network.Send(new PPickupItem(this, this.m_Amount));
            GDraggedItem toAdd = new GDraggedItem(this);

            Gumps.Desktop.Children.Add(toAdd);
            return(toAdd);
        }
Exemple #2
0
 public Gump OnBeginDrag()
 {
     int num = this.m_ID & 0x3fff;
     int num2 = (ushort) this.m_Amount;
     if (Map.m_ItemFlags[num & 0x3fff][TileFlag.Generic] && (num2 > 1))
     {
         GDragAmount amount = new GDragAmount(this);
         Gumps.Desktop.Children.Add(amount);
         return amount;
     }
     Network.Send(new PPickupItem(this, this.m_Amount));
     GDraggedItem toAdd = new GDraggedItem(this);
     Gumps.Desktop.Children.Add(toAdd);
     return toAdd;
 }