Jump to content

run plugin before engine starts


Weer36

Recommended Posts

Hello, yes in quester fightclass is loaded before engine and plugins. You can't change that.

If you want cancel totown task when it's running you can 

robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancelable) =>
        {
            if (state is ToTown)
                cancelable.Cancel = true;
        };

 

Link to comment
Share on other sites

  • 4 months later...
On 10/15/2022 at 11:25 PM, Droidz said:

Hello, yes in quester fightclass is loaded before engine and plugins. You can't change that.

If you want cancel totown task when it's running you can 

robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancelable) =>
        {
            if (state is ToTown)
                cancelable.Cancel = true;
        };

 

There is no OnRunningLoopState events ,do you change it to OnRunState?

FiniteStateMachineEvents Members (wrobot.eu)

Link to comment
Share on other sites

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...