how do i use my event manager i added but idk how to use it

Code:
EventManager.getSingleton().addEvent(
    new Event() {
        public void execute(EventContainer c) {
            sendMessage("You hit the dummy.");
            // you could add animations here, addSkillXP, whatever you want
            c.stop(); // stops the event from running
        }
    }, 2000); // executes after 2,000 ms = 2 seconds
};
Like this, so inside the code like example hitting the dummy
Code:
case ID:
//startanimation etc...
EventManager.getSingleton().addEvent(
    new Event() {
        public void execute(EventContainer c) {
            sendMessage("You hit the dummy.");
            // you could add animations here, addSkillXP, whatever you want
            c.stop(); // stops the event from running
        }
    }, 2000); // executes after 2,000 ms = 2 seconds
};
break;
 

Users who are viewing this thread (total: 1, members: 0, guests: 1)

Who read this thread (total members: 1)