• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Request] Revive eLoot fixer.

    Discussion in 'Requests' started by TheMaff, May 17, 2013.

    1. TheMaff

      TheMaff New Member

      Joined:
      May 15, 2012
      Messages:
      467
      Likes Received:
      4
      Trophy Points:
      0
    2. Pookie

      Pookie New Member

      Joined:
      May 10, 2013
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      I have not tested this at all ... I simply fixed the errors due to changes in the API.

      If it does not work, let me know what's wrong and I'll have a look.

      Code:
      
      using System;
      using Styx;
      using Styx.Common;
      using Styx.CommonBot.POI;
      using Styx.Helpers;
      using Styx.Plugins;
      using Styx.WoWInternals;
      using Styx.WoWInternals.WoWObjects;
      
      namespace Plugins
      {
          internal class LootFixer : HBPlugin
          {
              public static bool EnableLua = true;
              public static WoWUnit Enemy;
              public ulong Lootingmob;
      
              private static LocalPlayer Me
              {
                  get { return (StyxWoW.Me); }
              }
      
              public override string Name
              {
                  get { return "eLoot Fixer"; }
              }
      
              public override string Author
              {
                  get { return "Echelon17"; }
              }
      
              public override Version Version
              {
                  get { return new Version(2, 7, 0); }
              }
      
              public override void Pulse()
              {
                  try
                  {
                      if (CharacterSettings.Instance.LootMobs)
                      {
                          ObjectManager.Update(); // Update game objects
                          if (Me.GotTarget && Me.CurrentTarget.IsHostile && !Me.CurrentTarget.IsPet &&
                              !Me.CurrentTarget.IsPlayer)
                          {
                              Enemy = Me.CurrentTarget; // Set enemy to temp variable
                          }
                          if (Enemy != null && Enemy.IsDead)
                          {
                              if (BotPoi.Current.Type == PoiType.None)
                              {
                                  BotPoi.Current = new BotPoi(Enemy, PoiType.Loot);
      
                                  Logging.Write("[eLootFixer] Setting new Loot POI to {0}", Enemy.Name);
      
                                  Enemy = null;
                              }
                          }
                      }
                  }
                  catch (InvalidOperationException ee)
                  {
                      Logging.Write("Got an exception - look at debug tab for more information.");
                      Logging.WriteDiagnostic("-- Exception: ---");
                      Logging.WriteException(ee);
                  }
                  catch (Exception ee)
                  {
                      Logging.Write("Got an exception - look at debug tab for more information.");
                      Logging.WriteDiagnostic("-- Exception: ---");
                      Logging.WriteException(ee);
                  }
              }
          }
      }
      
      
       
    3. arfianadam

      arfianadam New Member

      Joined:
      Nov 25, 2014
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      i used that and i got this

      Code:
      Plugin from D:\World of Warcraft\bot\Honorbuddy\Plugins\elootfixer.cs could not be compiled! Compiler errors:
      File: elootfixer.cs Line: 3 Error: The type or namespace name 'Common' does not exist in the namespace 'Styx' (are you missing an assembly reference?)
      File: elootfixer.cs Line: 4 Error: The type or namespace name 'CommonBot' does not exist in the namespace 'Styx' (are you missing an assembly reference?)
      File: elootfixer.cs Line: 12 Error: The type or namespace name 'HBPlugin' could not be found (are you missing a using directive or an assembly reference?)
      
      how?
       

    Share This Page