Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!
RuneMate will permanently shut down on August 7, 2026
due to events outside our control. You can continue using RuneMate until this date after which it will no longer be available. Thank you to everyone that contributed to RuneMate's success and to the community for the opportunity to serve you all these years.

  • Learn about RuneMate Vault and how its zero knowledge local encryption already protects your sensitive information.
  • Edit or delete your RuneMate account from your Account Settings.
  • All account upgrade subscriptions have been cancelled. No action required.

Daemons

Joined
Jul 24, 2014
Messages
188
Is it possible to create a daemon within a script in RuneMate?

For example:
In a combat script you have 2 tasks, "attack", and "loot".
In combat you need food, you can solve this by creating a 3rd task called "eat".
The only problem is that if using this, you can only eat before/after the fight, and sometimes it's necessary to eat in the middle of a fight.

It woud be ideally to create a daemon called "EatDaemon", that basically activates whenever the condition is met, and even interrupts the current actions.
Something like the Interface closer.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Is it possible to create a daemon within a script in RuneMate?

For example:
In a combat script you have 2 tasks, "attack", and "loot".
In combat you need food, you can solve this by creating a 3rd task called "eat".
The only problem is that if using this, you can only eat before/after the fight, and sometimes it's necessary to eat in the middle of a fight.

It woud be ideally to create a daemon called "EatDaemon", that basically activates whenever the condition is met, and even interrupts the current actions.
Something like the Interface closer.
If you're using the ExecutorScript as your framework you can easily submit concurrent tasks, and since the mouse and keyboard both force synchronization your new task will be activated as soon as it's possible.
 
Joined
Jul 24, 2014
Messages
188
If you're using the ExecutorScript as your framework you can easily submit concurrent tasks, and since the mouse and keyboard both force synchronization your new task will be activated as soon as it's possible.
Can you give some little example code? :p

I'm using LoopingScript, and in the onLoop I got this:

Code:
@Override
public void onLoop() {
if(abortScript) {
stop();
} else {
for(Task task : tasksList) {
if(task.activate()) {
task.execute();
}
}
}
}
 
Joined
Jul 6, 2014
Messages
24
Create a health monitor, once it reaches danger levels, execute the task using the timed executor. You can always check if the task queue contains the current task, to avoid resubmissions. You can even add the health monitor to the timed executor to run it. Lol
 
Joined
Nov 15, 2013
Messages
339
I wrote a fairly basic framework which allows certain tasks to cancel the future of other tasks and execute itself.
 
Top