Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.parabot.Kozs.kPickup;
- import java.util.ArrayList;
- import org.parabot.environment.api.utils.Time;
- import org.parabot.environment.scripts.Category;
- import org.parabot.environment.scripts.Script;
- import org.parabot.environment.scripts.ScriptManifest;
- import org.parabot.environment.scripts.framework.Strategy;
- import org.rev317.min.api.methods.GroundItems;
- import org.rev317.min.api.methods.GroundItems.Option;
- import org.rev317.min.api.methods.Inventory;
- import org.rev317.min.api.wrappers.GroundItem;
- @ScriptManifest(author = "Kozs", category = Category.UTILITY,
- description = "Picks shit up", name = "kPickerUpper", servers = { "PKH" }, version = 1)
- public class Main extends Script {
- public static ArrayList<Strategy> strategies = new ArrayList<Strategy>();
- public boolean onExecute() {
- strategies.add(new PickUpLoot());
- provide(strategies);
- return true;
- }
- public class PickUpLoot implements Strategy {
- @Override
- public boolean activate() {
- return !Inventory.contains(385);
- }
- @Override
- public void execute() {
- for (GroundItem item : GroundItems.getNearest(385)) {
- if (item != null) {
- item.interact(Option.TAKE);
- Time.sleep(1000);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement