Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package salamanderhunter;
- import java.awt.Graphics;
- import net.runelite.api.coords.WorldPoint;
- import simple.hooks.scripts.Category;
- import simple.hooks.scripts.ScriptManifest;
- import simple.hooks.simplebot.ChatMessage;
- import simple.hooks.wrappers.SimpleObject;
- import simple.robot.script.Script;
- import simple.hooks.wrappers.SimpleItem;
- @ScriptManifest(
- author = "Esmaabi",
- category = Category.HUNTER,
- description = "Hunts for red salamander west of the Gnome-Khazard Battlefield at hunter icon. Have 6 ropes and 6 fishings net in inventory start at hunter icon!",
- discord = "Esmaabi#5752",
- name = "Red salamander hunter by Esmaabi",
- servers = { "Zenyte" },
- version = "1.0"
- )
- public class redsalamanderhunter extends Script {
- private static final WorldPoint HUNTER_TILE = new WorldPoint(2448, 3226, 0);
- @Override
- public void onExecute() {
- System.out.println("Started Red Salamander hunter!");
- }
- @Override
- public void onProcess() {
- if (this.ctx.players.getLocal().getLocation().distanceTo(HUNTER_TILE) > 5 && !this.ctx.inventory.inventoryFull()) {
- this.ctx.pathing.step(HUNTER_TILE);
- } else {
- if (this.ctx.objects.populate().filter(new int[]{8990}) != null && !this.ctx.inventory.inventoryFull()) {
- SimpleObject Youngtree = ctx.objects.populate().filter(new int[]{8990}).next();
- Youngtree.click("Set-trap");
- ctx.sleep(3500);
- } else {
- if (this.ctx.objects.populate().filter(new int[]{8986}) != null && !this.ctx.inventory.inventoryFull()) {
- SimpleObject Check = ctx.objects.populate().filter(new int[]{8986}).next();
- Check.click("Check");
- ctx.sleep(3000);
- }
- if (this.ctx.groundItems.populate().filter(new int[]{303, 954}) != null && !this.ctx.inventory.inventoryFull()) {
- SimpleObject Pickup1 = ctx.objects.populate().filter(new int[]{303}).next();
- SimpleObject Pickup2 = ctx.objects.populate().filter(new int[]{954}).next();
- Pickup1.click("Take");
- Pickup2.click("Take");
- ctx.sleep(600);
- }
- if (this.ctx.inventory.inventoryFull()) {
- this.ctx.inventory.populate().filter(new String[]{"Red salamander"});
- SimpleItem Salamander = this.ctx.inventory.populate().filter(new String[]{"Red salamander"}).next();
- Salamander.click("Release");
- ctx.sleep(600);
- }
- }
- }
- }
- @Override
- public void onTerminate() {
- }
- @Override public void onChatMessage(ChatMessage e) {}
- @Override
- public void paint(Graphics g) {
- int x = 10;
- int y = 310;
- g.drawString("Esmaabi's red salamander hunter", x, y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement