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.

How to stop event?

Featured Replies

How to stop the event, event start again and again even the char running.

using System;
using System.Threading;
using robotManager.Helpful;
using robotManager.Products;
using wManager.Plugin;
using wManager.Wow.Helpers;
using System.Collections.Generic;
using System.Linq;
using robotManager.FiniteStateMachine;
using wManager;
using wManager.Wow.Bot.States;
using wManager.Wow.Enums;
using wManager.Wow.ObjectManager;
using robotManager;
using MemoryRobot;
using Memory = wManager.Wow.Memory;
using Timer = robotManager.Helpful.Timer;
using Math = robotManager.Helpful.Math;
using System.Windows.Forms;


public class Main : IPlugin
{
    private bool _isLaunched;

    public void Initialize()
    {
        _isLaunched = true;

        back:

        Thread.Sleep(5000);
        Logging.Write("begin");

        if (!MovementManager.InMovement)
        {
            robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) =>
            {
                Logging.Write("event still work");

                robotManager.Products.Products.InPause = true;
                Thread.Sleep(1000);
                robotManager.Products.Products.InPause = false;
            };
            goto back;
        }
    }
    public void Dispose()
    { }
    public void Settings()
    { }
}

You can Subscribe to the events inside the Initialize() Method like the following (be sure to Unsubscribe from the event on Dispose):

** Code is not tested **

public void Initialize()
{
	wManager.Events.FightEvents.OnFightEnd += FightEventsOnFightEnd;	// Subscribe to the Event
	_isLaunched = true;
	// ...
}

public void Dispose()
{
 	wManager.Events.FightEvents.OnFightEnd -= FightEventsOnFightEnd;	// Unsubscribe from the Event
	_isLaunched = false;
	// ...
}

private void FightEventsOnFightEnd (ulong guid)
{
	Random _rand = new Random();
    Logging.WriteDebug("FightEventsOnFightEnd()");
  	// Wait some random time
  	Thread.Sleep(_rand.Next(2000, 5000));
}


 

  • Author
57 minutes ago, Apexx said:

You can Subscribe to the events inside the Initialize() Method like the following (be sure to Unsubscribe from the event on Dispose):

** Code is not tested **


public void Initialize()
{
	wManager.Events.FightEvents.OnFightEnd += FightEventsOnFightEnd;	// Subscribe to the Event
	_isLaunched = true;
	// ...
}

public void Dispose()
{
 	wManager.Events.FightEvents.OnFightEnd -= FightEventsOnFightEnd;	// Unsubscribe from the Event
	_isLaunched = false;
	// ...
}

private void FightEventsOnFightEnd (ulong guid)
{
	Random _rand = new Random();
    Logging.WriteDebug("FightEventsOnFightEnd()");
  	// Wait some random time
  	Thread.Sleep(_rand.Next(2000, 5000));
}


 

I need only the event: robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) =>. I use the plugin for running in ghost.

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.