• Visit Rebornbuddy
  • Plugin That....

    Discussion in 'Honorbuddy Forum' started by ElectricWizard, Dec 14, 2012.

    1. ElectricWizard

      ElectricWizard Member

      Joined:
      Oct 29, 2012
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      6
      Looking for a plug in that will move out of stuff on the ground like lightning or poison or whatever, any help would be appreciated.
       
    2. lynar

      lynar New Member

      Joined:
      Jan 15, 2010
      Messages:
      394
      Likes Received:
      2
      Trophy Points:
      0
      Harlem or harward, does not matter in this case :p It saved me couple of times when i had bad item level and farmed Lotus Rep :)

      Can't remember where i got it from, and were it went, but i can't find it anymore :(


      Vid: http://www.youtube.com/watch?v=Aja_d88pU8U
       
    3. tumbum

      tumbum Active Member

      Joined:
      Mar 17, 2011
      Messages:
      3,341
      Likes Received:
      13
      Trophy Points:
      38
      There is a Plugin from Megser for the Golden Lotus Dailys where the Toon moves away from stuff on the ground. dont know how it works, maybe scans a cast from a mob and moves, idk.

      maybe take a look and change some things there.
       
      chinajade likes this.
    4. lynar

      lynar New Member

      Joined:
      Jan 15, 2010
      Messages:
      394
      Likes Received:
      2
      Trophy Points:
      0
      Thank you very much!

      +rep
       
    5. lynar

      lynar New Member

      Joined:
      Jan 15, 2010
      Messages:
      394
      Likes Received:
      2
      Trophy Points:
      0
      Me again! That plugin just works for that profile!
      It's strange as hell.

      Would be really nice if Megser could rewrite it a bit so when it detects damage from other things then mobs, it would do the same as it does in the video.

      (I got my first computer when i was 4 years old, P75 16mb ram, 600mb hdd.. and cdplayer(!).. wish i had the head for coding, (i've been looking in to it actually, but my ADD just yells: NOOOOOOOOOOOOOO!!!)
      2 of my closests friends works with computercoding.
      Damn ADD... Hope i get some medc soon, then i promise you that i will learn the new language - c++ :)
       
      Last edited: Dec 23, 2012
    6. Kane49_2

      Kane49_2 New Member

      Joined:
      Jun 13, 2012
      Messages:
      450
      Likes Received:
      22
      Trophy Points:
      0
      Hi guys i made something just like that a while ago

      Code:
      using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Threading;
      using System.Windows.Forms;
      using Bots.ArchaeologyBuddy;
      using HBPlus;
      using Styx;
      using Styx.Common;
      using Styx.CommonBot;
      using Styx.Helpers;
      using Styx.Pathing;
      using Styx.WoWInternals;
      using Styx.WoWInternals.WoWObjects;
      
      // ReSharper disable CheckNamespace
      namespace Kane49.Honorbuddy.AvoidStuff
      // ReSharper restore CheckNamespace
      {
      
          public class AvoidStuffSettings : Styx.Helpers.Settings
          {
      
              public AvoidStuffSettings(string settingsPath)
                  : base(settingsPath)
              {
                  Load();
              }
      
              [Setting, DefaultValue(true)]
              public bool NothingForNow { get; set; }
          }
      
          public class AvoidStuff : Styx.Plugins.HBPlugin
          {
              private Vector3 _currentPool = Vector3.Zero;
      
              public override void Initialize()
              {
                  base.Initialize();
              }
      
              public override string Author
              {
                  get { return "Kane49"; }
              }
      
              public override string Name
              {
                  get { return "AvoidStuff"; }
              }
      
              public override void Pulse()
              {
                  if (!StyxWoW.Me.HasAura("Lightning Pool") || StyxWoW.Me.Location.Distance(new WoWPoint(_currentPool.X, _currentPool.Y, _currentPool.Z)) < 2f)
                  {
                      _currentPool = Vector3.Zero;
                      return;
                  }
                  if (_currentPool != Vector3.Zero)
                  {
                      Navigator.MoveTo(new WoWPoint(_currentPool.X, _currentPool.Y, _currentPool.Z));
                      return;
                  }
                  foreach (var obj in ObjectManager.GetObjectsOfType<WoWDynamicObject>().Where(ret => ret.Distance < 7))
                  {
                      var rand = new Random();
      
                      while (_currentPool == Vector3.Zero || !Navigator.CanNavigateFully(StyxWoW.Me.Location, new WoWPoint(_currentPool.X, _currentPool.Y, _currentPool.Z)))
                      {
                          var xax = rand.Next(1, 10);
                          var yax = rand.Next(1, 10);
                          var xoff = xax > 5 ? 1 : -1;
                          var yoff = xax > 5 ? 1 : -1;
                          _currentPool = new Vector3(obj.X + xoff * 5, obj.Y + yoff * 5, obj.Z);
                      }
                      LogMessage(String.Format("Avoiding: [Lightning Pool({0},{1},{2})]",obj.Location.X,obj.Location.Y,obj.Location.Z));
                      return;
                  }
                  return;
                  return;
              }
      
              public void LogMessage(string message)
              {
                  Logging.Write(string.Format("[AvoidStuff] {0}", message));
              }
      
              public override Version Version
              {
                  get { return new Version(0, 1); }
              }
          }
      
      }
      
      Its super simple :)
      However it does not stop other movement from occuring so you should build that in if you need it !
       
    7. botorific

      botorific New Member

      Joined:
      Oct 26, 2012
      Messages:
      664
      Likes Received:
      3
      Trophy Points:
      0
      Kane... so to use this do we just Copy/ paste the code into notepad, save as "outofthefire.cs" (or "my-biscuits-are-burning.cs"),) then copy to the plugins folder?

      :)
       
    8. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      Put it in it's own folder inside your plugin folder or HB will not pick it up.
      However looking over the code, this will only work for Lightning Pool under you.
      If you want it to work for other stuff too, you will have to change more code and add more debuff aura's.
       
    9. botorific

      botorific New Member

      Joined:
      Oct 26, 2012
      Messages:
      664
      Likes Received:
      3
      Trophy Points:
      0
    10. lynar

      lynar New Member

      Joined:
      Jan 15, 2010
      Messages:
      394
      Likes Received:
      2
      Trophy Points:
      0
      "ompiler Error: c:\HonorBuddy\Klasser\Munk\Plugins\PoolAvoider\PoolAvoider.cs(7,7) : error CS0246: The type or namespace name 'HBPlus' could not be found (are you missing a using directive or an assembly reference?)TidyBags 3.6 ready for use..."
       

    Share This Page