• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Specifying a Target? will tip paypal

    Discussion in 'Honorbuddy Support' started by remtown, Aug 21, 2013.

    Thread Status:
    Not open for further replies.
    1. remtown

      remtown New Member

      Joined:
      Jun 4, 2010
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      Hi, so i have been playing around with a plugin that uses abilities that you need to click in a certain position on wow for eg; Angelic Feather, Heroic Leap, Psyfiend etc Basically all of them work for my target, my focus.


      Can someone help, this specific one drops Angelic Feather on my Focus, not sure how to change this so that it just drops it on me.


      Code:
      using System;using Styx;
      using Styx.CommonBot;
      using Styx.Plugins;
      using Styx.WoWInternals;
      
      
      
      
      namespace FeatherBuddy
      {
          public class FeatherBuddy : HBPlugin
          {
              static int _featherType;
              WoWPoint _target;
      
      
      
      
              public override string Name
              {
                  get { return "FeatherBuddy"; }
              }
      
      
      
      
              public override string Author
              {
                  get { return "xxxxx"; }
              }
      
      
      
      
              public override Version Version
              {
                  get { return new Version(1, 0, 0, 0); }
              }
      
      
      
      
              public override bool WantButton
              {
                  get { return false; }
              }
      
      
      
      
              public override void Pulse()
              {
                  _featherType = Lua.GetReturnVal<int>("return featherNum", 0);
                  if (StyxWoW.Me.FocusedUnit == null)
                  {
                      Lua.DoString("featherNum = 0;");
                      _featherType = 0;
                      return;
                  }
      
      
      
      
                  switch (_featherType)
                  {
                      case 1:
                          _target = GetPoint();
                          SpellManager.Cast("Angelic Feather");
                          SpellManager.ClickRemoteLocation(_target);
                          Lua.DoString("featherNum = 0;");
                          _featherType = 0;
                          break;
                      case 2:
                          _target = GetPoint();
                          SpellManager.Cast("Angelic Feather");
                          SpellManager.ClickRemoteLocation(_target);
                          Lua.DoString("featherNum = 0;");
                          _featherType = 0;
                          break;
                  }
              }
      
      
      
      
              static WoWPoint GetPoint()
              {
                  var focus = StyxWoW.Me.FocusedUnit;
                  return focus.Location;
              }
      
      
      
      
          }
      }

      Thanks very much, will definitely tip for this information so pm your paypal.
       
    2. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      add
      Code:
      private static LocalPlayer Me { get { return StyxWoW.Me; } }
      
      then
      Code:
      SpellManager.ClickRemoteLocation(Me.Location);
      
      or forget the first part and just do StyxWoW.Me.Location

      also with spellcasts you should ALWAYS use the spellmanger
      SpellManager.Cast("Spellname Here");

      whats nice about the spellmanager is if someone is using a diffrent language then you it will automatically do it without you translating.
       
    3. optik_Rec0rds

      optik_Rec0rds New Member

      Joined:
      Feb 12, 2012
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      did u get it to work? cause iam looking for a plugin or something that automatically puts a feather on my target
       
    4. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      thread closed, not a support issue.
       
    Thread Status:
    Not open for further replies.

    Share This Page