The hot's are magic are they not? This might do the trick.
Code:/run i=1 while(i<=40)do a={UnitBuff("target", i)} if (a[5]=="Magic") then break else i=i+1 end end; if i<=40 and IsUsableSpell("Tranquilizing Shot") and IsSpellInRange("Tranquilizing Shot", "target")==1 and GetSpellCooldown("Tranquilizing Shot")==0 then CastSpellByName("Tranquilizing Shot") end /run if GetSpellCooldown("Tranquilizing Shot")==0 and UnitDebuff("target", "Frothing Rage") and IsSpellInRange("Tranquilizing Shot", "target")==1 then CastSpellByName("Tranquilizing Shot") end
"A friend in need is a friend indeed, but a friend with weed is better"
Too tired to log into the game atm(3:15am) so I'll try this in the morning. Although this kind of line confuses the hell out of me, not sure if all the numbers are just for Serpent Sting or if they will work for Explosive Shot, all I did was change the spell being used. I'll report back after testing.
Edit- I think I know why your potion is not working, you forgot to change a name.Code:/run i=1 d=120 while(i<=40)do a={UnitDebuff("target",i)} if a[1]=="Explosive Shot" and a[8]=="player" and IsUsableSpell("Explosive Shot") and IsSpellInRange("Explosive Shot", "target")==1 then d=a[7]-GetTime(); break end i=i+1 end if i>40 or d<2 then CastSpellByName("Explosive Shot") end
But this might work if just changing the name doesn't.Code:/run if GetSpellCooldown("Call of the Wild")==0 and UnitBuff("player", "Heroism")then CastSpellByName("Call of the Wild") end; /run if GetSpellCooldown("Potion of Wild Magic")==0 and IsUsableSpell("Potion of Wild Magic") and UnitBuff("player", "Heroism") then CastSpellByName("Call of the Wild") end;
I agree with your post below.Code:/run if GetSpellCooldown("Potion of Wild Magic")==0 and IsUsableSpell("Potion of Wild Magic") and UnitBuff("player", "Heroism") then RunMacroText("/use Potion of Wild Magic") end
Last edited by Sensisativa; 01-07-2010 at 03:45 AM.
"A friend in need is a friend indeed, but a friend with weed is better"
I am sure that would work but honestly I think I am going to keep my tranq shot outside the rotation. Reason being it will remove all magic on targets and there are somethings you want your mages spell stealing. This would in almost all cases remove it before the mage would even get a chance to cast.
I know that was posted wrong I was changing it all night and couldnt get it to work but I think the RunMacroText will work fine I should have saw that in your mend pet line. Thanks for that.
Last edited by Blehbot; 01-07-2010 at 03:51 AM.
Hmm.
I tried the Beast Mark Macro tonight in 25 man ICC. Waited for Beasts to spawn, pressed hotkey for the macro, nothing. Repeated presses did nothing as well.
I was also using a different macro for DPS, but figured they should be independant of eath other no?
taking the latest holy pala macro for a spine with this error:
Code:<string>:"local w,m=vHealTarget,vHealDmg; local n,cd,...":1: Usage: UnitHealth("unit")
This would fail yeah. Do
orCode:/run i=1 while(i<=40)do a={UnitDebuff("target",i)} if a[1]=="Explosive Shot" and a[8]=="player" and IsUsableSpell("Explosive Shot") and IsSpellInRange("Explosive Shot", "target")==1 then do i=i+1 break end end; end if i>40 then CastSpellByName("Explosive Shot") end
if you want it to check for expiration time. (This will cast ES if your target haven't got the debuff or the duration is less than 2 seconds.)Code:/run i=1 d=120 while(i<=40)do a={UnitDebuff("target",i)} if a[1]=="Explosive Shot" and a[8]=="player" and IsUsableSpell("Explosive Shot") and IsSpellInRange("Explosive Shot", "target")==1 then d=a[7]-GetTime(); break end i=i+1 end if i>40 or d<2 then CastSpellByName("Explosive Shot") end
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Affli lock isnt working for me, tested it on a training dummy seemed to work fine, went to pos hc and it just locked up.
Worked fine on the 1st mob and thats it, i tried stopping and reloading lua ninja 3 or 4 times to check it wasnt that.
I was with guildys so i was able to test when and where it stopped with out them complaining i was slacking :P
it had different outcomes, sometimes itd cast haunt + corruption then stop, other times just haunt and sometimes haunt, corruption coa then lock up.
i noticed if it stopped after just casting haunt and i applied the remaining dots myself (corruption, coa and ua ) it'd work to spam shadowbolt but do nothing other than that
Edit:seems i should of read a page back, ill retest.
Last edited by gippy; 01-07-2010 at 06:33 AM.
They should indeed be independent. I'll admit I did not test that one but just wrote it. I actually use a non-LuaNinja macro to do that for myself...but it requires spamming (I don't raid with LuaNinja). I don't see why this one won't work though...
Can someone please verify that this code does the same thing as pressing TAB (ie: targets the next enemy)?
If so, it may be a small delay preventing it from picking up the new targets...I'll have to test on some other mobs.Code:/run TargetNearestEnemy();
ViralFly-by