LuaNinja Macro Collection menu

Shout-Out

User Tag List

Page 10 of 42 FirstFirst ... 67891011121314 ... LastLast
Results 136 to 150 of 629
  1. #136
    osbornx22's Avatar Sergeant
    Reputation
    14
    Join Date
    Nov 2009
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you need brackets around

    UnitHealth("target")/UnitHealthMax("target") < 0.20

    ?

    Another question:
    Is it possible, that it makes sometimes problems, if variables are not "local" (very important at very short variable names like a, b, cd, ... )? I think this makes problems with some addons, right?

    LuaNinja Macro Collection
  2. #137
    jackus's Avatar Active Member
    Reputation
    58
    Join Date
    Aug 2006
    Posts
    802
    Thanks G/R
    1/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get the same Cant get it to work ..
    Originally Posted by xolieo View Post
    loking for a working version of this. Tried to replace dump with run and recieved the error.
    Originally Posted by i2lurchi View Post
    Macro 1: "PHFOCUS":
    /tar focus
    /dump c=CastSpellByName;_,_,_,_,_,_,_,b,_=UnitBuff("target","Beacon of Light");if b~="player" then c("Beacon of Light") end;_,_,_,_,_,_,_,s,_=UnitBuff("target","Sacred Shield");if s~="player" then c("Sacred Shield") end; RunMacro("H1")

    Macro 2 (10 Man Raid): "PHRAID":
    /dump m=0;w=0;t="raid";for n="1","10" do a=UnitHealthMax(t..n)-UnitHealth(t..n);if a>m and UnitInRange(t..n)==1 and UnitIsDeadOrGhost(t..n)~=1 then m=a w=n end end;TargetUnit(t..w) RunMacro("H1")

    Macro 2 (25 Man Raid): "PHRAID":
    /dump m=0;w=0;t="raid";for n="1","25" do a=UnitHealthMax(t..n)-UnitHealth(t..n);if a>m and UnitInRange(t..n)==1 and UnitIsDeadOrGhost(t..n)~=1 then m=a w=n end end;TargetUnit(t..w) RunMacro("H1")
    Macro 3: "H1":
    /dump _,d,_=GetSpellCooldown("Holy Shock");c=CastSpellByName;a=UnitHealthMax("target")-UnitHealth("target");if a>7000 and d==0 then c("Holy Shock") else c("Flash of Light") end

  3. #138
    Elitetech's Avatar Contributor
    Reputation
    98
    Join Date
    Oct 2008
    Posts
    279
    Thanks G/R
    3/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Askali View Post
    Try these (sorry had no idea about the thread until someone pointed it out):


    Arcane Rotation

    Arcane:


    Arcane2:


    Fixes the AM clipping and works for me without issue, hope it helps.

    I did try changing the ( n==3 ) to >= or > but they broke the macro, if you can fix that problem I think they'll be pretty much set

    Fireball/Frostfire Bolt Rotation
    Fixed the Arcane Rotation by adding a third macro casting Arcane Blast once and changed Missile Barrage (Not part of current top dps builds) to fire blast.

    Code:
    Arcane =Spamming macro
    /run local s,_,_,_,_,_,_,_=UnitChannelInfo("player"); if( s~="Arcane Missiles" ) then RunMacro("Arcane3"); end;
    Code:
    Arcane2
    /run c=CastSpellByName; local _,_,_,n,_,_,_,_,_=UnitDebuff("player","Arcane Blast"); if( n>=3 ) then if( UnitBuff("player","Missile Barrage") ) then c("Arcane Missiles"); else c("Arcane Blast"); end; else c("Arcane Blast"); end;
    Code:
    Arcane3
    /run if not UnitDebuff("player", "Arcane Blast") then CastSpellByName("Arcane Blast") else RunMacro("Arcane2") end
    Last edited by Elitetech; 12-24-2009 at 01:08 PM.
    Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.

  4. #139
    CrazyCactuaR's Avatar Contributor
    Reputation
    84
    Join Date
    Sep 2008
    Posts
    201
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any of you lads know the api to determine wether a unit or just the player is in combat? Been going through World of Warcraft API - WoWWiki - Your guide to the World of Warcraft but having no luck at all finding anything.

    So far the only thing i think could be used is;
    Code:
    InCombatLockdown() - Returns true if the in-combat AddOn restrictions are active.
    If anyone know's the proper command please let me know, thanks.

  5. #140
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @ crazy cactuar

    API UnitAffectingCombat - WoWWiki - Your guide to the World of Warcraft

    Determine whether a unit is in combat or has aggro.

    affectingCombat = UnitAffectingCombat("unit");


    sincery spud

  6. #141
    pinhe1ro's Avatar Member
    Reputation
    7
    Join Date
    Jun 2009
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cast Divine Plea

    Anyone know and can help me with the macro of Paladn to cast Divine Plea when less than 1000 mana?

  7. #142
    marlboroman1982's Avatar Member
    Reputation
    100
    Join Date
    Jul 2008
    Posts
    175
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by pinhe1ro View Post
    Anyone know and can help me with the macro of Paladn to cast Divine Plea when less than 1000 mana?

    Pallies get below 20k mana?
    Something

  8. #143
    pinhe1ro's Avatar Member
    Reputation
    7
    Join Date
    Jun 2009
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes im retribution i have +-5k mana

  9. #144
    kakamonster's Avatar Member
    Reputation
    3
    Join Date
    Aug 2008
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why do i get a blizzard block macro error with this string

    /run if UnitHealth("target")/UnitHealthMax("target") < 0.20 and IsSpellInRange("Hammer of Wrath", "target") == 1 and GetSpellCooldown("Hammer of Wrath") == 0 then CastSpellByName("Hammer of Wrath") else RunMacro"p3" end

  10. #145
    CrazyCactuaR's Avatar Contributor
    Reputation
    84
    Join Date
    Sep 2008
    Posts
    201
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spudstar99 View Post
    @ crazy cactuar

    API UnitAffectingCombat - WoWWiki - Your guide to the World of Warcraft

    Determine whether a unit is in combat or has aggro.

    affectingCombat = UnitAffectingCombat("unit");


    sincery spud
    Cheer's for that, repped.

  11. #146
    kakamonster's Avatar Member
    Reputation
    3
    Join Date
    Aug 2008
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by osbornx22 View Post
    Maybe you need brackets around

    UnitHealth("target")/UnitHealthMax("target") < 0.20

    ?

    Another question:
    Is it possible, that it makes sometimes problems, if variables are not "local" (very important at very short variable names like a, b, cd, ... )? I think this makes problems with some addons, right?
    does not seem to matter, get blizzard block when using UnitHealth("target")/UnitHealthMax("target") scripts but they work

  12. #147
    pkaa4eva_jr's Avatar Banned
    Reputation
    3
    Join Date
    Aug 2009
    Posts
    85
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have this macro

    /Run loadstring("if (UnitBuff(\"target\", \"PvP Trinket\")) then TargetUnit(\"target\") CastSpellByName(\"Blind\") end")()

    This macro instant blinds the target that im targetting when he trinkets, how do i make this work for my set focus?

    Iv tryied to replace the word Target with Focus but it doesn't seem to work. Can anyone help me please?

  13. #148
    Sikas's Avatar Active Member
    Reputation
    69
    Join Date
    Feb 2007
    Posts
    386
    Thanks G/R
    6/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Divine Plea Macro:
    Code:
    /run local _, d, _=GetSpellCooldown("Divine Plea") if ((UnitPower("player") < 2500) and (d == 0)) then CastSpellByName("Divine Plea") else RunMacro"HoW" end
    /run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
    Have yet to test it in raids, but it should work I hope.

  14. #149
    Albedo's Avatar Contributor
    Reputation
    171
    Join Date
    Apr 2008
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If i could, i'd like to make a request for a macro that works like so for Warlocks -

    1) Haunt
    2) Corruption
    3) Curse of Agony
    4) Unstable Affliction
    5) Drain Soul only if Boss < 25% health
    6) Shadow Bolt only if Boss > 25% health
    7) Drain Soul clipping is fine.

  15. #150
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the warlock script is a hard one .. i wrote this in an addon ... sry i don't give that away ... i'm afraid of blizz

    basicly if someone write this up .. you should do this in this way

    if (last_haunt == nil) then last_haunt = GetTime() end;
    if (last_Unstable == nil) then last_Unstable = GetTime() end;
    if player has buff shadowtrance cast shadowbolt
    if GetTime()>last_haunt then check if the target haven't the haunt debuff from us or the target have the debuff from us but the resttime of the debuff is >1.3s if this is true then check cd of haunt if cd ==0 then cast haunt

    [explain: you need to check when casted last haunt because it needs a little bit time until haunt is on the target so you need to prevent double cast ... the other stuff is obvice .. when the debuff is not by me or none on the target cast it ... if it just runs as long as you have to cast it .. cast it]

    the same as haunt for unstable...

    check if target has debuff corruption from you ?! if not cast corruption

    check if target has debuff curse of agony from you ?! if not cast curse of agony

    if the cd of haunt > 0.4 and the cd of unstable affliction > 0.4 then
    check if target hp is under 25% then RunMacroText("/castsequence [nochanneling] Drain Soul") else cast shadowbolt



    thats it is ... in my eyes the "perfect" affliction rota ..

    have fun building it ... i would post my stuff .. but i haven't it in macros and my addon stuff wouldn't help you ...

    and my addon .. just as i said .. i'm paranoid

    sincery spud

Page 10 of 42 FirstFirst ... 67891011121314 ... LastLast

Similar Threads

  1. [Macro-Collection] All-In-One-Button Macro for all Classes from Level 15-90!
    By Classicclean in forum WoW UI, Macros and Talent Specs
    Replies: 21
    Last Post: 01-21-2014, 08:16 AM
  2. Addon For LuaNinja Macros
    By Tracerv0 in forum WoW UI, Macros and Talent Specs
    Replies: 7
    Last Post: 01-06-2010, 02:21 PM
  3. /Dump Macro Collection (WIP at mo!)
    By Anotherfox in forum WoW UI, Macros and Talent Specs
    Replies: 97
    Last Post: 01-04-2010, 03:21 PM
  4. [HOW TO] Ascii Macro + my collection
    By wickermanz in forum World of Warcraft Guides
    Replies: 12
    Last Post: 01-05-2009, 12:58 PM
  5. Macro Love - My Collection of useful and/or Space saving Macro's!
    By Anotherfox in forum World of Warcraft Guides
    Replies: 15
    Last Post: 12-28-2008, 12:29 AM
All times are GMT -5. The time now is 04:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search