public static bool ActivateAutoAttack(Cspell cSpell) { SpellToActionbar(cSpell); return(Lua.LuaDoString <bool>("if not IsCurrentAction(1) then UseAction(1) end")); }
public static bool IsAutoAttackActive(Cspell cSpell) { SpellToActionbar(cSpell); return(Lua.LuaDoString <bool>("if not IsCurrentAction(1) then return true end")); }
public RotationStep(Cspell cSpell, int priority) { this.cSpell = cSpell; this.priority = priority; }
public static void SpellToActionbar(Cspell cSpell) { Lua.LuaDoString("local i = 1 while true do local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL) if not spellName then do break end end if string.find(spellName, \"" + cSpell.Name + "\") then do PickupSpell(i, BOOKTYPE_SPELL) PlaceAction(" + 1 + ") ClearCursor() break end end i = i + 1 end;"); }
public RotationStep(Cspell cSpell) { this.cSpell = cSpell; this.priority = 0; }