Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

having trouble getting to the bot to loop in the way I want...

Featured Replies

I am trying to get the bots logic to loop through a little better in the sense of checking itself after each fight,

I would like to have it stop itself after each fight for check of (do I have a pet, is my hp/mp above X %) that kinda thing

so far I've tried something like

 internal void Rotation()
    {
        while (_running)
        {
            try
            {
                if (!ObjectManager.Me.IsDeadMe)
                {

                  if (!ObjectManager.Pet.IsAlive)
                  {
                   PSpawn();    //Pet spawner
                   return;
                  }

                    Buff();
                    if (Fight.InFight && ObjectManager.Me.Target > 0)
                    {
                        Pull();
                        CombatRotation();
                    }
                  
                  .....................

which seems to help but not quite full proof, so just wondering is there a better way to basically have it reinitialize, or just have a section of code it executes after it exits combat each time ?

  • Author
internal void Rotation()
    {
        while (_running)
        {
            try
            {
                if (!ObjectManager.Me.IsDeadMe)
                {

                  if (!ObjectManager.Pet.IsValid && !ObjectManager.Me.IsMounted)
                        {
                            // Thread.Sleep(300);
                            Fight.StopFight();
                            MovementManager.StopMove();
                            PSpawn();   // pet spawner
                        }

                    Buff();
                    if (Fight.InFight && ObjectManager.Me.Target > 0)
                    {
                        Pull();
                        CombatRotation();
                    }
                  
                  .....................

  its not after the fight but seems to have fixed it just carrying out to the next target without resummoning ?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.