Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import net.kronok.bot.script.EventModel
- class PowerChopper extends EventModel {
- void stop() {
- getBot().log("Woah...")
- }
- void start() {
- getBot().log("Starting..");
- addListeners("state", "inventory")
- }
- void onPlayerIdle() {
- chop()
- }
- void onInventoryItemAdded(int newCount) {
- if(newCount == 28) {
- drop()
- }
- }
- def chop() {
- getBot().log("They see me choppin' they hatin'...")
- interactWithObject("Chop down", 1278)
- }
- def drop() {
- getBot().log("Dropping...")
- dropAllOf(1511)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement