Two suggestions for AutoAngler 2.
To support Nat's Hat.
ApplyLureAction.cs Line 49
And to fall back on Anglers Fishing Raft for water walkingCode:WoWItem head = _me.Inventory.GetItemBySlot((uint) WoWEquipSlot.Head); if (head != null && (head.Entry == 88710 || head.Entry == 33820)) { AutoAngler.Instance.Log("Appling Fishing Hat lure to fishing pole"); Utils.UseItemByID((int)head.Entry); return true; }
WaterWalking.cs Line 19
WaterWalking.cs Line 34Code:public static bool CanCast { get { return AutoAngler.Instance.MySettings.UseWaterWalking && (SpellManager.HasSpell("Levitate") || // priest levitate SpellManager.HasSpell("Water Walking") || // shaman water walking SpellManager.HasSpell("Path of Frost") || // Dk Path of frost SpellManager.HasSpell("Soulburn") || // Affliction Warlock Utils.IsItemInBag(8827) || // Elixir of Water Walking Utils.IsItemInBag(85500)); // Anglers Fishing Raft } }
WaterWalking.cs Line 78Code:public static bool IsActive { get { // DKs have 2 Path of Frost auras. only one can be stored in WoWAuras at any time. return StyxWoW.Me.Auras.Values.Any(a => (StyxWoW.Me.HasAura("Levitate") || StyxWoW.Me.HasAura("Water Walking") || StyxWoW.Me.HasAura("Anglers Fishing Raft") || StyxWoW.Me.HasAura("Unending Breath")) && a.TimeLeft >= new TimeSpan(0, 0, 20)) || StyxWoW.Me.HasAura("Path of Frost"); } }
If you want I can generate diffs?Code:WoWItem waterPot = Utils.GetIteminBag(8827); if (waterPot != null && waterPot.Use()) { casted = true; } WoWItem fishingRaft = Utils.GetIteminBag(85500); if (fishingRaft != null && fishingRaft.Use()) { casted = true; }
Think I didnt forget any changes I made.
Anyway, take it or leave it
EDIT: Forgot this
Util.cs
ApplyLureAction.csCode:public static bool IsLureOnPole { get { bool useHatLure = false; var head = Me.Inventory.GetItemBySlot((uint)WoWEquipSlot.Head); if (head != null && (head.Entry == 88710 || head.Entry == 33820)) useHatLure = true; var lure = StyxWoW.Me.BagItems.FirstOrDefault(r => r.Entry == 85973); if (AutoAngler.Instance.MySettings.Poolfishing && lure != null && !Me.HasAura(125167)) { return false; } //if poolfishing, dont need lure say we have one if (AutoAngler.Instance.MySettings.Poolfishing && !useHatLure && !AutoAngler.FishAtHotspot) return true; var ret = Lua.GetReturnValues("return GetWeaponEnchantInfo()"); return ret != null && ret.Count > 0 && ret[0] == "1"; } }
Prio on "Awesome panda lure" to avoid repeated execution of ApplyLure()Code:private bool Applylure() { if (_lureRecastSW.IsRunning && _lureRecastSW.ElapsedMilliseconds < 10000) return false; _lureRecastSW.Reset(); _lureRecastSW.Start(); if (_me.Inventory.Equipped.MainHand != null && _me.Inventory.Equipped.MainHand.ItemInfo.WeaponClass != WoWItemWeaponClass.FishingPole) return false; //Awesome panda lure WoWItem pandalure = StyxWoW.Me.BagItems.FirstOrDefault(r => r.Entry == 85973); if (pandalure != null && !_me.HasAura(125167)) { AutoAngler.Instance.Log("Appling awesome panda lure"); Utils.UseItemByID(85973); return true; } // Fishing Hats WoWItem head = _me.Inventory.GetItemBySlot((uint) WoWEquipSlot.Head); if (head != null && (head.Entry == 88710 || head.Entry == 33820)) { AutoAngler.Instance.Log("Appling Fishing Hat lure to fishing pole"); Utils.UseItemByID((int)head.Entry); return true; } foreach (var kv in Lures) { WoWItem lureInBag = Utils.GetIteminBag(kv.Key); if (lureInBag != null && lureInBag.Use()) { AutoAngler.Instance.Log("Appling {0} to fishing pole", kv.Value); return true; } } return false; }
hi
all of this loocks great but can we add a pet waterwalking buff to?
Hunters whid water striders can self water buff ^_^
wonder if we can get that in there
