LuaNinja Macro Collection menu

Shout-Out

User Tag List

Page 9 of 42 FirstFirst ... 5678910111213 ... LastLast
Results 121 to 135 of 629
  1. #121
    brightemo's Avatar Member
    Reputation
    3
    Join Date
    Jun 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Albedo View Post
    You have to set it to check if Mind Flay is being cast on every line, otherwise it'll clip. I'd fix it myself, but I'm still learning this shiz.
    Code:
    /run 
    cs=CastSpellByName;
    cd=GetSpellCooldown;
    ud=UnitDebuff;
    ub=UnitBuff;
    if not UnitChannelInfo("player") then
     if (UnitMana("player")/UnitManaMax("Player")<0.5) and (cd("Shadowfiend") == 0) then
      cs("Shadowfiend");
     else 
      n,_,_,s = ub("player","Shadow Weaving"); 
      if not ud("target", "Vampiric Touch", unitCaster~="player") and (cd("Vampiric Touch") == 0) then
       cs("Vampiric Touch")  
      elseif not ud("target", "Devouring Plague", unitCaster~="player") and (cd("Devouring Plague") == 0) then
       cs("Devouring Plague")  
      elseif (cd("Mind Blast") == 0) then
       cs("Mind Blast") 
      elseif s == 5 and not ud("target", "Shadow Word: Pain", unitCaster~="player") and (cd("Shadow Word: Pain") == 0) then
       cs("Shadow Word: Pain")  
      elseif s == 5 and not ud("target", "Vampiric Embrace", unitCaster~="player") and (cd("Vampiric Embrace") == 0) then
       cs("Vampiric Embrace") 
      elseif not ud("target","Mind Flay", unitCaster~="player") and (cd("Mind Flay") == 0) then
       cs("Mind Flay")  
      end
     end
    end

    LuaNinja Macro Collection
  2. #122
    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)
    Originally Posted by spudstar99 View Post
    hi there ..

    not tested but should do it (mostly copied from ganzerker)


    Code:
    /startattack [harm]
    /run if UnitHealth("Player")/UnitHealthMax("Player") < 0.35 and (GetSpellCooldown("Frenzied Regeneration") == 0) then CastSpellByName("Frenzied Regeneration") end
    /run if UnitHealth("Player")/UnitHealthMax("Player") < 0.15 and (GetSpellCooldown("Survival Instincts") == 0) then CastSpellByName("Survival Instincts") end
    /run if (UnitPower("Player") > 25) then CastSpellByName("Maul") end
    /run if (GetSpellCooldown("Mangle (Bear)") ==0) then CastSpellByName("Mangle (Bear)") end
    /run local _,_,_,c,_,d,_,p,_=UnitDebuff("Target","Lacerate"); if ((not (c==5 )) and (p=="player")) or ((c==5) and (p=="player") and d<=2) ( then CastSpellByName("Lacerate") end
    /run if (GetSpellCooldown("Faerie Fire(Feral)") == 0) then CastSpellByName("Faerie Fire(Feral)") end
    /run CastSpellByName("Swipe (Bear)") end
    for lacerate ..
    1. thing is also cat dudus cast it so it could happen that there are more than your own.

    2. it should check .. if you have 5 stacks of lacerate up .. if not cast lacerate ... if you have lacerate has 5 stacks but the duration is smaller than 2seconds ... than it will also cast alcerate ...



    sincery spud .. hf :wave:
    The duration check still doesn't work, as far as i can tell.

    And thanks, Brightemo . +rep
    Last edited by Albedo; 12-06-2009 at 06:49 PM.

  3. #123
    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)
    Someone help a noob out, cant figure out for the life of me what's wrong, it just doesnt show any love

    Code:
    /run b=IsUsableSpell("Ravage");if b and UnitBuff("player", "Prowl") then RunMacroText("/cast Ravage") else if (not b) and UnitBuff("player", "Prowl") then RunMacroText("/cast Pounce") end
    It's my poor attempt at doing Ravage if i'm behind or Pounce otherwise.
    (╯°□°)╯︵┻━┻ ლ(ಠ益ಠლ

  4. #124
    brightemo's Avatar Member
    Reputation
    3
    Join Date
    Jun 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Albedo View Post
    The duration check still doesn't work, as far as i can tell.
    Replace
    Code:
    /run local _,_,_,c,_,d,_,p,_=UnitDebuff("Target","Lacerate"); if ((not (c==5 )) and (p=="player")) or ((c==5) and (p=="player") and d<=2) ( then CastSpellByName("Lacerate") end
    With (untested)
    Code:
    /run local n,_,_,s,_,_,e,c=UnitDebuff("Target","Lacerate"); if (not n) or (c ~= "player") or (s < 5) or (e-GetTime()<2) then CastSpellByName("Lacerate") end
    Will cast Lacerate if the target does not have the Lacerate debuff, or if that debuff was not cast by the player or if that debuff does not have 5 stacks, or if it will expire in under 2 seconds.

  5. #125
    brightemo's Avatar Member
    Reputation
    3
    Join Date
    Jun 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CrazyCactuaR View Post
    Someone help a noob out, cant figure out for the life of me what's wrong, it just doesnt show any love

    Code:
    /run b=IsUsableSpell("Ravage");if b and UnitBuff("player", "Prowl") then RunMacroText("/cast Ravage") else if (not b) and UnitBuff("player", "Prowl") then RunMacroText("/cast Pounce") end
    It's my poor attempt at doing Ravage if i'm behind or Pounce otherwise.
    IsUsableSpell only checks if you have enough mana/energy/rage to cast the spell. As far as I can tell there is no API function to let you know if you are behind the target.

  6. #126
    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 brightemo View Post
    IsUsableSpell only checks if you have enough mana/energy/rage to cast the spell. As far as I can tell there is no API function to let you know if you are behind the target.
    ahah so that's why it was giving me so much grief huh. Thanks for letting me know i'll just put up with pounce for now.

  7. #127
    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)
    Originally Posted by brightemo View Post
    Code:
    /run local n,_,_,s,_,_,e,c=UnitDebuff("Target","Lacerate"); if (not n) or (c ~= "player") or (s < 5) or (e-GetTime()<2) then CastSpellByName("Lacerate") end
    Will cast Lacerate if the target does not have the Lacerate debuff, or if that debuff was not cast by the player or if that debuff does not have 5 stacks, or if it will expire in under 2 seconds.
    Awesome Works yet again. I knew it had something to do with GetTime().

  8. #128
    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)
    Here's my small contribution to the collection your making. Hope you find it somehow useful. It's for a 40ish Feral Cat Druid.

    Code:
    Macro 1
    /cast [combat] Tiger's Fury
    /cast [combat] Barkskin
    /cast [combat] Nature's Grasp
    
    Macro 2
    /run if not UnitDebuff('target','Faerie Fire (Feral)') and not UnitBuff("player", "Prowl") then CastSpellByName('Faerie Fire (Feral)') end
    
    Macro 3
    /startattack [combat]
    # Stealth
    /run if UnitBuff("player", "Prowl") then RunMacroText("/cast Pounce") end
    # 3 Claw's then Ferocious Bite
    /run p=GetComboPoints("player","target");if p<3 and not UnitBuff("player", "Prowl") then RunMacroText("/cast Claw") end
    /run a=GetComboPoints("player","target");if a>2 and not UnitBuff("player", "Prowl") then RunMacroText("/cast Ferocious Bite") end
    Having seperated the buff's and FF because too many casts were limiting the buffs from regular use. Another thing i noticed is that if FF does not land when cast, it would stop the rest of the code from being executed. So to avoid this, have all 3 macro's be spammed by a keyspammer.

  9. #129
    pewpewlazerz's Avatar Contributor


    Reputation
    138
    Join Date
    Jun 2007
    Posts
    453
    Thanks G/R
    4/6
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Has anyone messed with other possibilites with this? I wonder if there is a way to roll like /random 98-100 but it shows 1-100

    I don't know much about it but I'm reading into it to see if anything like this could be possible.

  10. #130
    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 pewpewlazerz View Post
    Has anyone messed with other possibilites with this? I wonder if there is a way to roll like /random 98-100 but it shows 1-100

    I don't know much about it but I'm reading into it to see if anything like this could be possible.
    Isn't that handled server side?

  11. #131
    brightemo's Avatar Member
    Reputation
    3
    Join Date
    Jun 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CrazyCactuaR View Post
    Isn't that handled server side?
    Yes. See RandomRoll - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

  12. #132
    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)

    help

    how do i add GetSpellCooldown to this script?

    /run local n,_,_,_,_,_,e,c=UnitDebuff("Target","Flame Shock"); if (not n) or (c ~= "player") or (e-GetTime()<2) then CastSpellByName("Flame Shock") end

  13. #133
    brightemo's Avatar Member
    Reputation
    3
    Join Date
    Jun 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kakamonster View Post
    how do i add GetSpellCooldown to this script?

    /run local n,_,_,_,_,_,e,c=UnitDebuff("Target","Flame Shock"); if (not n) or (c ~= "player") or (e-GetTime()<2) then CastSpellByName("Flame Shock") end
    Code:
    /run local n,_,_,_,_,_,e,c=UnitDebuff("Target","Flame Shock"); if ((not n) or (c ~= "player") or (e-GetTime()<2)) and GetSpellCooldown("Flame Shock") == 0 then CastSpellByName("Flame Shock") end

  14. #134
    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)
    thanks! is there a way to add check for in combat and has target?

    for trinkets and elemental mastery

  15. #135
    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 is ths not working? gets stuck on frost shock

    /run if UnitHealth("target")/UnitHealthMax("target") < 0.20 and (GetSpellCooldown("Frost Shock") == 0) then CastSpellByName("Frost Shock") end

Page 9 of 42 FirstFirst ... 5678910111213 ... 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:34 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