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.

[Resolved] Pause if player nearby ONLY AFTER regen finishes

Featured Replies

It looks really crappy / bot-like when you're eating, a player comes within range and you just stand up with 30% HP without finishing eating.

The same way bot waits for combat to finish before it pauses itself, it should wait for regen to finish.

EDIT: Wrote a plugin for this. Once properly tested, I will release it...

  • Author

Can't really imagine it.

Like if me.havebuff.food then wrobot.settings.pauseifplayer = false ? That would mess up the timer though. Also, not even sure if that can be controlled.

  • Author
Just now, Marsbar said:

No i mean not using the setting at all and just setting the bot to be in a paused state while a player is near (unless in combat or regenerating)

Right... Hmmm, will look into it :)

  • Author

One more thing @Marsbar. I have this line, look below. How do I get all of the names of the player so I can print it in the log?

var PlayersNearby = ObjectManager.GetObjectWoWPlayer().Where(p => p.GetDistance <= 120).ToList();

 

foreach (var player in ObjectManager.GetObjectWoWPlayer().Where(p => p.GetDistance <= 120))
            {
                Logging.Write("Player '" + player.Name + "' is close by!");
            }

Guess you could do that. May want to add a timer in there though so it doesn't spam the log like mad.

edit: Maybe something like that around it>

	using Timer = robotManager.Helpful.Timer;
	public Timer PlayerNotificationTimer = new Timer();
        public void GetPlayers()
        {
            if (PlayerNotificationTimer.IsReady)
            {
                foreach (var player in ObjectManager.GetObjectWoWPlayer().Where(p => p.GetDistance <= 120))
                {
                    Logging.Write("Player '" + player.Name + "' is close by!");

                }
                PlayerNotificationTimer = new Timer(1000 * 5);
            }
        }

 

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.