1. #1
    Deleted

    Weak Aura - Range Check

    Hey guys,

    i want to know if there is any custom trigger that checks range around the player.

    E.g i want to the trigger the event if > 5 players are in 12y range of me


    Hope u get what i mean


    thanks in advance

  2. #2
    Deleted
    /push

    tenChar

  3. #3
    5 players in your raid or what?

  4. #4
    Deleted
    Yep Raid oder Group

  5. #5
    The Patient
    15+ Year Old Account
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    319
    http://wowpedia.org/API_CheckInteractDistance

    Check trade range, that should help you. Getting exactly 12 won't work though (unless you're willing to work with mapsizes and all that).

    -- few things you'd have to do is check GetNumGroupMembers / GetRaidRosterInfo, run them through there, think about how often you want the aura to check if there are still 5 people around (continuously, every 10 sec, etc)
    Last edited by suprep; 2014-10-19 at 06:44 PM.
    Retired in WoD

  6. #6
    Here you go. You can convert it to an icon if you like. I even made it return the amount of players near you of you use the %s in the text (stacks)
    Why would you want a WA to return this information? 12 yards and 5 players sounds like Holy Nova to me.
    There's an addon for it. Holy Nova Sonar.

    Code:
    dOtsgaGlurVwrSpuIAUuanBuCtuICyLCBvvddLk7eLI9sy3eTFzuKWFPOFtvxvrYqrjWGHHROoij1PqLogjY5uKQoVQOLIsvlMcTCQSikONQWJvQNtQMifOPssMmPmDKUOIu6vOe0Lv56iCAe9zu1MvvA7ksXhjrnluszAksL5HssldLsFvvy0QsJhLuDsuHBHsOUgfG7PQyLu6HOeYXrjXcLeQeJFXqtm0eQed3Xt6LQEoFIb9yDkH7edJmNuJL8ANyO2GgumOhRtjCNymMpggDdu9uSxn7NIntRjlsmiKuhjp)5eQeJnHo1)lgFjKBkPxQGB2qiei)gu8qTPBj5V97TNS9esQjpJ34Ij4Db2Xney1GbeOVNmBiecHqi4okHtgOoIlBiecNulBieczpPw2SzZMnB2SzZMvqfJLK8Frj9sHkX4FrkfQed6Z5tmMDN(rfJz3PFuXyXm)Uybem6NGkOIb1rYZFoHkXG(C(eJnHo1)lgBcDQ)38Lu7edk5)PjgBcDQ)Fqx7j6IXxc5Ms6Lk4Mnecb3rjCYWd1MULK)2V3EY2tiPM8mEJlMSNulB2SzZMnRySj0P(FX4lHCtj9sfCZgcHWd1MULK)2V3EIjpJ34Ij8jeEO20TK83(92tm5z8gxmbVlO8rvr(Fk4MnecbYVbLpQkY)tb3alo8qTPBj5V97TNyYZ4nUycSCqPa99KzdHqiecHhQnDlj)TFV9etEgVXft4tq5JQI8)uWnBiecHqiq(nWHohsLDEIzfCd03tMnecHqiecHq4HAt3sYF73Bpz7jKutEgVXft4tGDzdHqiecHqiey87ftG35jMPpNVWNGco05qY(fPMcUHLulyOBrQzi3G3fuWHohsLDEIzfCdlPwWW5LJ(0qUzdHqiecHqie(6DbYWNGsSMYhLne)k78eZS09B8C6k4g08zdHqiecHqiecHqGXVxmbnsDA4t4FrF5uNvCuftjjPgKuNUK7BWkel3PPG35jMPpNpo5KKl3SHqiecHqiecHqiq(ni90Wusskh6tjjPk4DEIz6Z5JtojzTGHZmRNNZqUHLule0i1Pbw9tqj2gOVNmBiecHqiecHqiecHqi8qTPBj5V97TNS9esQjpJ34Ij8j8qTPBj5V97TNS9esQjpJ34IjWcdkLnecHqiecHqiecHtQLnecHqiecHq4KAzdHqiecHqiei)gEO20TK83(92t2Ecj1KNXBCXey5pbdiqFpz2qiecHqiecHqieChLWjduhXLnecHqiecHq4KAzdHqiecHtQLnecHtQL9KAzZMnRySj0P(Ft6Z5tm0PlkHUySFV9eXGywBrpbvmKe)QCK88NtxWgLedg)stOsmCEMtOsm(jyOKcvcQGkOIbPMymLKKQh4qgy)sYFcQyOlgSLt2X50ZjBfJPrWgLMo2Yobvia
    Last edited by Clebane; 2014-10-19 at 11:38 PM.

  7. #7
    The Patient
    15+ Year Old Account
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    319
    oO I had no idea Blizzard added new functionality for calculating distance in yards (group/raid).
    Retired in WoD

  8. #8
    Yep, quite handy. No need to get trudge through all that map stuff anymore.
    UnitPosition(unit) and UnitDistanceSquared(unit) are the two.

Posting Permissions

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