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.

Pause/Unpause when an error is encountered in the "Waypoint timed out" log

Featured Replies

hi, I'm trying to make a plugin to fix a nasty bug I've encountered on a warmane (3.3.5a) server. it happens that the character periodically freezes and if he continues to move, then he is constantly teleported back until he stops for a few seconds. I face this problem without using a bot and on this server.

I found a plugin on the forum (https://wrobot.eu/forums/topic/12149-how-to-disable-anti-stuck/?do=findComment&comment=58260&_rid=97009). another error is processed there and the bot stops, how can I change "stop" to "pause" and add a timer of 5-10 seconds, after which the bot will unpause and continue working? I will be grateful if you help me with advice

 

attaching the plugin code from the topic on the forum:

using System.ComponentModel;
using wManager.Plugin;

public class Main : IPlugin
{
    private bool _isLaunched;

    public void Initialize()
    {
robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log)
        {
            if (log != null)
            {
                if (log.Text.Contains("[MovementManager] Think we are stuck"))
                    robotManager.Products.Products.ProductStop();
            }
        }; 
    }

    public void Dispose()
    {
        _isLaunched = false;
    }

    public void Settings()
    {
    }
}

 

Hello, you can should look like that :

using System.Threading;
using wManager.Plugin;

public class Main : IPlugin
{
    private bool _isLaunched;

    public void Initialize()
    {
        _isLaunched = true;
        robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log)
        {
            if (log != null)
            {
                if (log.Text.Contains("[MovementManager] Think we are stuck"))
                {
                    robotManager.Products.Products.InPause = true;
                    
                    // new thread to unpause after 5 seconds
                    new Thread(t =>
                    {
                        Thread.Sleep(5000);
                        if (_isLaunched)
                            robotManager.Products.Products.InPause = false;
                    }).Start();
                }
            }
        }; 
    }

    public void Dispose()
    {
        _isLaunched = false;
    }

    public void Settings()
    {
    }
}

 

  • Author

thanks a lot, it worked

 

using System.Threading;
using wManager.Plugin;

public class Main : IPlugin
{
    private bool _isLaunched;

    public void Initialize()
    {
        _isLaunched = true;
        robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log)
        {
            if (log != null)
            {
                if (log.Text.Contains("[MovementManager] Waypoint timed out"))
                {
                    robotManager.Products.Products.InPause = true;
                    
                    // new thread to unpause after 5 seconds
                    new Thread(t =>
                    {
                        Thread.Sleep(5000);
                        if (_isLaunched)
                            robotManager.Products.Products.InPause = false;
                    }).Start();
                }
            }
        }; 
    }

    public void Dispose()
    {
        _isLaunched = false;
    }

    public void Settings()
    {
    }
}

 

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.