示例#1
0
 public static void InvokeEquipMacro(EquipMacroEventArgs e)
 {
     if (EquipMacro != null)
     {
         EquipMacro(e);
     }
 }
示例#2
0
 private static void Equip_Macro(EquipMacroEventArgs e)
 {
     try
     {
         if (e.NetState != null && e.NetState.Mobile != null && e.List != null)
         {
             for (int i = 0; i < e.List.Count; ++i)
             {
                 //Item item = World.FindItem( e.List[i] ); 
                 Item item = World.FindItem(e.List[i]);
                 if (item != null && item.IsChildOf(e.NetState.Mobile))
                     e.NetState.Mobile.EquipItem(item);
             }
         }
     }
     catch { }
 }
 public static void InvokeEquipMacro(EquipMacroEventArgs e)
 {
     if (EquipMacro != null)
         EquipMacro(e);
 }