What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Snipped] Arctic Armour

tozededao

Community Developer
Joined
Jan 15, 2010
Messages
1,225
[Snippet] Arctic Armour

Since they introduced a new Arctic Armour the old code is no longer working. Here's what you need to replace

From :

Code:
// Handle Arctic Armour conditionally.     
           if (_arcticArmourSlot != -1)
                {
                    // See if we can use the skill.
                    var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_arcticArmourSlot);
                    if (!LokiPoe.Me.HasArcticArmourBuff && skill.CanUse())
                    {
                        if (OldRoutineSettings.Instance.ArcticArmourCastMode == 1 ||
                            (OldRoutineSettings.Instance.ArcticArmourCastMode == 2 &&
                             Utility.NumberOfMobsNear(LokiPoe.Me, OldRoutineSettings.Instance.CombatRange) > 0))
                        {
                            var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_arcticArmourSlot, true);
                            if (err1 == LokiPoe.InGameState.UseError.None)
                            {
                                await Coroutine.Sleep(Utility.LatencySafeValue(500));


                                await Coroutines.FinishCurrentAction(false);


                                await Coroutine.Sleep(Utility.LatencySafeValue(100));


                                return true;
                            }


                            Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
                        }
                    }
                }

To :

Code:
//  Handle Arctic Armour conditionally.
                if (_arcticArmourSlot!= -1)
                {
                    // See if we can use the skill.
                    var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_arcticArmourSlot);
                    
                    
                    if (skill.CanUse() && !LokiPoe.Me.HasAura("new_arctic_armour"))
                    {
                        var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_arcticArmourSlot, true);
                        if (err1 == LokiPoe.InGameState.UseError.None)
                        {
                            await Coroutine.Sleep(Utility.LatencySafeValue(500));


                            await Coroutines.FinishCurrentAction(false);


                            await Coroutine.Sleep(Utility.LatencySafeValue(100));


                            return true;
                        }


                        Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
                    }
                }
 
.CS or the settings gui?

Can't open either for some reason, sorry if it's an obvious question
 
Thanks, will fix HasArcticArmourBuff in the API to the correct buff.
 
Back
Top