Once you've implemented the interface, you can override one of the methods provided to you by the Experience Listener. Below is one such example of how you could log the user achieving a new level:
@Override
public void onLevelUp(ExperienceEvent event) {
MethodProvider.log("Level up! " + event.getSkill() + " is now level " + Skills.getRealLevel(event.getSkill()));
}
You can find all of the methods provided by the listener here: https://dreambot.org/javadocs/org/dreambot/api/script/listen
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 Bonfire,
Beat me to it
Recommended by Hashtag
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