Пример #1
0
 public static bool ActivateAutoAttack(Cspell cSpell)
 {
     SpellToActionbar(cSpell);
     return(Lua.LuaDoString <bool>("if not IsCurrentAction(1) then UseAction(1) end"));
 }
Пример #2
0
 public static bool IsAutoAttackActive(Cspell cSpell)
 {
     SpellToActionbar(cSpell);
     return(Lua.LuaDoString <bool>("if not IsCurrentAction(1) then return true end"));
 }
Пример #3
0
 public RotationStep(Cspell cSpell, int priority)
 {
     this.cSpell   = cSpell;
     this.priority = priority;
 }
Пример #4
0
 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;");
 }
Пример #5
0
 public RotationStep(Cspell cSpell)
 {
     this.cSpell   = cSpell;
     this.priority = 0;
 }