Welcome!

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

Sign up now!

Request TaskScript#removeAll()

Mod Automation
Joined
Jul 26, 2013
Messages
3,053
In what use case would you want to do this?
Changing what the bot does at runtime, i.e. without requiring a bot restart. For example, user schedules 1000 bronze bars and then 1000 iron bars. Bot Author implements this by removing active task(s) for bronze and adding a new set for iron.
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
7,032
I make use of this in my new framework actually. Each activity ie chop 50 logs, chop until level 60 etc holds its own tasks and adds them to the taskscript. Once the activity is complete the tasks are removed and the next activity tasks are added.
 
However i will add that the remove method uses varargs so an array of tasks can be removed
 
Top