Originally Posted by
jh16
Ah yes, that is due to the multiple lines of code that he put in there to make it where you wouldn't dismount. However he only needed to add one line of code like I suggested earlier and pull the H4XX0R ability down below the Config ability in the Rotation Editor. I tried to remove the code but I apparently didn't get rid of it completely so it was throwing an error so I put it back. I did still added my fix to it.
Here is a follow up:
Go into the "Tweaks" ability and comment out the following like so:
PHP Code:
At the top:
--if not IsMounted() --Preventing Dismounting
-- then
Very bottom "end":
--end
Single Target ability:
PHP Code:
if UnitCanAttack("player","target")
-- and not IsMounted() -- comment this line out
and getHp("target") >= 21
and inMelee() == true
and not isImmune("target")
then
Now go into "CONFIG" ability and add this line into the AutoPause like so:
PHP Code:
--AutoPause
if AutoPause == true then
if UnitBuffID("player", 104235)
or UnitBuffID("player", 104262)
-- or SpellIsTargeting() -- comment this line out, seems to be screwing some things up by giving us an error
or UnitIsDeadOrGhost("target")
or UnitIsDeadOrGhost("player")
or UnitBuffID("player", 41350)
or IsMounted() -- -- this line is new code
then
return true
end
end
Now once you have done that go into the Rotation Editor and move the H4XX0R ability so it is below the CONFIG ability.
This should solve that error that is popping up.
Code:
Message: [string "local playerName = UnitName("player")..."]:789: Usage: IsPlayerSpell(spellID)
Time: 10/16/13 17:34:48
Count: 63
Stack: [C]: ?
[C]: in function `IsPlayerSpell'
[string "local playerName = UnitName("player")..."]:789: in function `_castSpell'
[string "UseMass = true ..."]:23: in function `?'
[string "if PQR_Addon_Loaded == nil then..."]:765: in function `PQR_NextAbility'
[string "if PQR_Addon_Loaded == nil then..."]:534: in function `PQR_ExecuteRotation'
[string "if PQR_Addon_Loaded == nil then..."]:287: in function <[string "if PQR_Addon_Loaded == nil then..."]:214>
Now I've got this popping up for some reason...
Edit:
Added Single Target to need to be changed as well.
Edit2:
Added Lua Error I occasionally get.