I'd personally recommend just using AdvancedMessageListener
public class Main extends AbstractScript implements AdvancedMessageListener {
public int onLoop() {
return 0;
}
...
public void onGameMessage(Message msg) {
if(msg.getMessage().toLowerCase().contains("you can't light") {
// do something
}
}
}
Not sure of the exact usage but what I've written should work as at least a base for what you're trying to do. This should also work
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Recommended Posts
Posted by
Banker,0 reactions
Go to this post
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