• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Check Raid Icon?

    Discussion in 'Archives' started by Vastico, Aug 23, 2011.

    1. Vastico

      Vastico New Member

      Joined:
      Jul 28, 2011
      Messages:
      424
      Likes Received:
      10
      Trophy Points:
      0
      Anyone has the code D:?
       
    2. Vastico

      Vastico New Member

      Joined:
      Jul 28, 2011
      Messages:
      424
      Likes Received:
      10
      Trophy Points:
      0
    3. Vastico

      Vastico New Member

      Joined:
      Jul 28, 2011
      Messages:
      424
      Likes Received:
      10
      Trophy Points:
      0
    4. chinajade

      chinajade Well-Known Member Moderator Buddy Core Dev

      Joined:
      Jul 20, 2010
      Messages:
      17,540
      Likes Received:
      172
      Trophy Points:
      63
      The Bliz API only has functionality for setting the raid icon, not 'reading' it.

      'Reading' the raid icon would take low-level injection functionality which Honorbuddy doesn't have.

      You're out of luck.


      cheers,
      chinajade
       
    5. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
    6. Vastico

      Vastico New Member

      Joined:
      Jul 28, 2011
      Messages:
      424
      Likes Received:
      10
      Trophy Points:
      0
      I tried but the search for vbulletin sucks
       
    7. Fraak

      Fraak New Member

      Joined:
      Mar 24, 2011
      Messages:
      32
      Likes Received:
      1
      Trophy Points:
      0
      Not true btw:

      Code:
      
      public enum RaidTargetIcon
      {
          None = 0,
          Star = 1,
          Circle = 2,
          Diamond = 3,
          Triangle = 4,
          Moon = 5,
          Square = 6,
          Cross = 7,
          Skull = 8,
      }
      
      public static class RaidTargetExtension
      {
          public static void SetRaidTarget(this WoWUnit unit, RaidTargetIcon icon)
          {
              WoWUnit currentTarget = StyxWoW.Me.CurrentTarget;
              unit.Target();
              Lua.DoString("SetRaidTarget(\"target\", {0});", (int)icon);
              currentTarget.Target();
          }
      
          public static RaidTargetIcon GetRaidTarget(this WoWUnit unit)
          {
              WoWUnit currentTarget = StyxWoW.Me.CurrentTarget;
              unit.Target();
              int icon = Lua.GetReturnVal("return GetRaidTargetIndex(\"target\");", 0);
              currentTarget.Target();
      
              if (icon > 8 || icon < 0)
                  return RaidTargetIcon.None;
      
              return (RaidTargetIcon)icon;
          }
      }
      
      
       
    8. Vastico

      Vastico New Member

      Joined:
      Jul 28, 2011
      Messages:
      424
      Likes Received:
      10
      Trophy Points:
      0
      Thank you Fraak
       

    Share This Page