Jump to content

1 Screenshot

About This File

Automatically swims straight up once breath reaches %30~ remaining.

Monitors breath remaining and once you reach 30%~ it swims your character straight up until you are above 30% breath.

How to use : 
Add the SwimUP.cs file to the Wrobot Plugins folder.
After this, start up bot, go to the tab called "Plugins" and turn "SwimUP.cs" on.

User Feedback

Recommended Comments

TheSmokie

Posted

Hello, this code is good but you should check if you are in combat, most of the time there is mobs in the water attacking the player.

This should help.

if (!Conditions.ProductInPause && ObjectManager.Me.BreathTimerLeft <= 2000)
                    {
                        var unit = ObjectManager.GetWoWUnitAttackables().Where(x => x.Position.DistanceTo(ObjectManager.Me.Position) <= 30);
                        foreach (var u in unit)
                        {
                            if (!ObjectManager.BlackListGetUnitAttackPlayerGuidTime.ContainsKey(u.Guid))
                                ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Add(u.Guid, DateTime.Now + TimeSpan.FromMinutes(5));
                        }
                        wManager.Wow.Helpers.Keybindings.PressKeybindings(wManager.Wow.Enums.Keybindings.JUMP, 5000);

                    }
                }

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...