SpellManager ยป Cast Item
Namespace: Mayo.Manager.Spells
Namespace: Mayo.Manager.Spells.Interface
Dependencies: ISpellManager
GameClient: GC.SM
bool CastItemAsync(int ItemID, List<Func<bool>>? Conditions = null)
bool CastItemAsync(IItem Item, List<Func<bool>>? Conditions = null)
Examplevar Hearthstone = GC.OM.GetItem(6948);
if (Hearthstone != null)
await GC.SM.CastItemAsync(Hearthstone);
bool CastItemAsync(IBagItem BagItem, List<Func<bool>>? Conditions = null)
Examplevar Hearthstone = GC.OM.GetBagItem(6948);
if (Hearthstone != null)
await GC.SM.CastItemAsync(Hearthstone);
bool CastItemAsync(string Name, List<Func<bool>>? Conditions = null)
The item name must be in English.
Exampleawait GC.SM.CastItemAsync("Hearthstone");
bool CastItem(int ItemID, List<Func<bool>>? Conditions = null)
bool CastItem(IItem Item, List<Func<bool>>? Conditions = null)
bool CastItem(IBagItem BagItem, List<Func<bool>>? Conditions = null)
bool CastItem(string Name, List<Func<bool>>? Conditions = null)