• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • sup with auras

    Discussion in 'Archives' started by exemplar, Nov 20, 2010.

    1. exemplar

      exemplar New Member

      Joined:
      Mar 16, 2010
      Messages:
      167
      Likes Received:
      32
      Trophy Points:
      0
      They are worse this release than last release. I posted on bugtracker ages ago but it's gone unanswered. Any insight?
       
    2. exemplar

      exemplar New Member

      Joined:
      Mar 16, 2010
      Messages:
      167
      Likes Received:
      32
      Trophy Points:
      0
      furthermore, how often does objectmanager update? im doing rapid scans typeof WoWPlayer and its returning blatantly old/invalid results.
      edit: I think ObjectManager.Update(); fixed that problem, though.
       
      Last edited: Nov 20, 2010
    3. exemplar

      exemplar New Member

      Joined:
      Mar 16, 2010
      Messages:
      167
      Likes Received:
      32
      Trophy Points:
      0
      watevs, here's a way to do auras that's more expensive, but useful for when aura detection actually matters
      Code:
              private bool isAuraActive(string name, WoWUnit u)
              {
                  string s = Lua.GetReturnVal<string>("a,_,_,_,_,_,_,_,_,_,_ = UnitAura(\"" + DeUnicodify(u.Name) + 
                                                      "\", \"" + DeUnicodify(name) + "\"); return a;", 0);
                  return s != null;
              }

      ...
      Code:
              private string DeUnicodify(string s)
              {
      
                  StringBuilder sb = new StringBuilder();
                  byte[] bytes = Encoding.UTF8.GetBytes(s);
                  foreach (byte b in bytes)
                  {
                      if (b != 0)
                          sb.Append("\\" + b);
                  }
                  return sb.ToString();
              }
       
    4. Apoc

      Apoc Moderator Staff Member Moderator

      Joined:
      Jan 16, 2010
      Messages:
      2,790
      Likes Received:
      94
      Trophy Points:
      48
      Which bug are you talking about?

      I have not seen any issues with auras. Maybe you're using them wrong?
       
    5. exemplar

      exemplar New Member

      Joined:
      Mar 16, 2010
      Messages:
      167
      Likes Received:
      32
      Trophy Points:
      0
      Last edited: Nov 21, 2010
    6. exemplar

      exemplar New Member

      Joined:
      Mar 16, 2010
      Messages:
      167
      Likes Received:
      32
      Trophy Points:
      0
      OK so I just felt bad for not providing concrete examples and added something, and behold a minute or two later

      Code:
      [7:34:28 PM:872] AURAS WRONG BROSEPH 07:34:28
      Code:
                              bool aura1 = Me.ActiveAuras.ContainsKey("Battle Shout");
                              bool aura2 = isAuraActive("Battle Shout");
                              if (aura1 != aura2)
                              {
                                  Logging.Write("AURAS WRONG BROSEPH " + DateTime.Now.ToString("hh:mm:ss"));
                              }
      Where isAuraActive is just a wrapper for the LUA function above. I did no buffing)

      Code:
      [7:33:47 PM:489] cast Heroic Strike Locsweet Distance: 1
      [7:33:47 PM:687] gettarget: Locsweet Distance: 1
      [7:33:47 PM:861] Spell_C::CastSpell(23881, 0, 0x3800000024F7B42, 0)
      [7:33:47 PM:887] cast Bloodthirst Locsweet Distance: 1
      [7:33:48 PM:108] gettarget: Locsweet Distance: 1
      [7:33:49 PM:324] Cleared POI
      [7:34:17 PM:480] gettarget: 
      [7:34:27 PM:390] gettarget: 
      [7:34:28 PM:872] AURAS WRONG BROSEPH 07:34:28
      [7:34:28 PM:873] gettarget: 
      [7:34:31 PM:187] bestmove: Lluucckkyy Distance: 185,2
      [7:34:31 PM:237] Mounting: Red Mechanostrider
      [7:34:33 PM:848] gettarget: 
      [7:34:33 PM:849] bestmove: Lluucckkyy Distance: 185,2
      [7:34:33 PM:999] gettarget: 
      I died and rezzed but did /not/ cast battle shout, it simply gave me a false positive as I rezzed (and presumably auras list changed). Regadless of that, this happens all the time while not rezzing (my pally thinks he doesn't have a seal applied _all the time_, for this exact reason)
       
      Last edited: Nov 21, 2010

    Share This Page