public static void InvokeEquipMacro(EquipMacroEventArgs e) { if (EquipMacro != null) { EquipMacro(e); } }
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); }