Thread: Need LUA help

  1. #1

    Need LUA help

    Im looking for a macro for me to use when im in a situation that has multiple adds and i want to serpent them all up. I know how to word this in C++ and java but not sure how in LUA. What i need is the proper LUA codeing to target target if no serpent is detected. More or less an IF value, but not sure how to word it.

  2. #2

    Re: Need LUA help

    as far as I know, lua can't check for buffs/debuffs in the way you want.

  3. #3

    Re: Need LUA help

    could an addon do this?

  4. #4
    Bloodsail Admiral phyrix's Avatar
    10+ Year Old Account
    Join Date
    Aug 2009
    Location
    In ur cupboardz steelin ur cookies
    Posts
    1,248

    Re: Need LUA help

    What you want can't be done in WoW, and if it can be done, it's an exploit.

    It would allow for automatically applying a buff or debuff to x number of targets with the push of a button.
    This is considered cheating by blizz.

  5. #5
    The Lightbringer
    15+ Year Old Account
    Join Date
    Jun 2008
    Location
    Italy
    Posts
    3,564

    Re: Need LUA help

    you can't check debuff by LUA, just tab and sting like all others :P

  6. #6

    Re: Need LUA help

    Im not trying to apply a buff or debuff. All i want is a macro/addon to target a target only if the trigger of [serpent sting] is not flagged on it. Like i said its just a target macro with an IF factor put in.

    The problem with tabbing is ill get a mob that allready has it.....

  7. #7
    The Lightbringer
    15+ Year Old Account
    Join Date
    Jun 2008
    Location
    Italy
    Posts
    3,564

    Re: Need LUA help

    trigger of Serpent Sting = Serpent Sting debuff

    again, no

  8. #8
    Scarab Lord
    15+ Year Old Account
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    4,040

    Re: Need LUA help

    Macro's can't do if-then logic. Blizzard specifically removed this capability back before BC came out, because it leads to too much automation, in their opinion. This is also why addons like Decursive don't just show you a clickable button to decurse everybody - addons aren't allowed to be selective in targetting like that either. The player has to make the targetting decisions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •