Weer36 3 Posted October 15, 2022 Share Posted October 15, 2022 Is it possible to run my plugin before Quester's GoToTown runs, for example? Fight class written in c# instead of standard plugin is good alternative ?)) Link to comment https://wrobot.eu/forums/topic/14849-run-plugin-before-engine-starts/ Share on other sites More sharing options...
Droidz 2738 Posted October 15, 2022 Share Posted October 15, 2022 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 https://wrobot.eu/forums/topic/14849-run-plugin-before-engine-starts/#findComment-66869 Share on other sites More sharing options...
libai 2 Posted March 13, 2023 Share Posted March 13, 2023 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 https://wrobot.eu/forums/topic/14849-run-plugin-before-engine-starts/#findComment-67838 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now