示例#1
0
 public static void InvokeUnequipMacro(UnequipMacroEventArgs e)
 {
     if (UnequipMacro != null)
     {
         UnequipMacro(e);
     }
 }
示例#2
0
        private static void Unequip_Macro(UnequipMacroEventArgs e)
        {
            try
            {
                if (e.NetState != null && e.NetState.Mobile != null && e.List != null)
                {
                    for (int i = 0; i < e.List.Count; ++i)
                    {
                        //Layer layer = Layer.GetAt( e.List[i] ); 
                        Item item = e.NetState.Mobile.FindItemOnLayer((Layer)(e.List[i]));

                        if (item != null && item.Layer != Layer.Hair && item.Layer != Layer.FacialHair)
                            e.NetState.Mobile.Backpack.DropItem(item);
                    }
                }
            }
            catch { }
        }
 public static void InvokeUnequipMacro(UnequipMacroEventArgs e)
 {
     if (UnequipMacro != null)
         UnequipMacro(e);
 }