Hey is there a mod who could give me a copy of the archived eLoot fixer? http://www.thebuddyforum.com/archives/51367-plugin-eloot-fixer.html
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); } } } }
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?