Jump to content

Trivial

Members
  • Posts

    78
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Trivial

  1. I tried adding a sleep, and all it did was it made the bot sleep after it deposit everything and spammed the deposit button. And using s.sleep just tells me that the static method sleep from MethodProvider should be accessed in a static way.
  2. private State getState() { if (inventory.isFull()){ return State.BANK; } else { return State.FISH; } } case BANK: if (Bank.contains(myPlayer())) { status = "Banking"; new Banking(this); //OP is the banking class } else { sleep(random(500,750)); status = "Walking to bank"; if (Docks1.contains(myPlayer())) { localWalker.walkPath(WalkToBFrom1); } else if (Docks2.contains(myPlayer())) { localWalker.walkPath(WalkToBFrom2); } } break;
  3. When I have tunas and swordfish in my inventory, using this method the bot first right click deposit all's the tunas and after that spam clicks the deposit all button inside the actual bank window until all the swordfish are in the bank. Is it a bug or something that im doing wrong? Heres the code: if (!s.bank.isOpen()) { if (bankbooth != null) { if (bankbooth.isVisible()) { if (!s.myPlayer().isMoving()) { bankbooth.interact("Bank"); Script.sleep(Script.random(800, 1600)); } } else { s.camera.toEntity(bankbooth); } } } else { s.bank.depositAllExcept(Main.TOOL_ID); }
  4. Oh crap, got a huge brainfart so I didnt figure that out... Thanks though.
  5. Im trying to get my fishing script to hover over the next fishing spot to interact with. I use josedpay's hovering snippet from this thread: http://osbot.org/forum/topic/54533-hovering-snippet-osbot-2/ Heres what im currently working with, but it only very rarely hovers over fishing spots. NPC Fishing_spot = npcs.closest(FISHING_ID); if(myPlayer().isAnimating()){ int playerX = myPlayer().getPosition().getX() + 2; int playerY = myPlayer().getPosition().getY() + 2; int playerX2 = myPlayer().getPosition().getX() - 2; int playerY2 = myPlayer().getPosition().getY() - 2; Area NearPlayer = new Area(playerX, playerY, playerX2, playerY2); if(Docks1.contains(myPlayer())){ if(Docks1.contains(Fishing_spot)){ if(!NearPlayer.contains(Fishing_spot)){ if(Fishing_spot.isVisible()){ hover(Fishing_spot); } else { camera.toEntity(Fishing_spot); } } } } else if(Docks2.contains(myPlayer())){ if(Docks2.contains(Fishing_spot)){ if(!NearPlayer.contains(Fishing_spot)){ if(Fishing_spot.isVisible()){ hover(Fishing_spot); } else { camera.toEntity(Fishing_spot); } } } } }
  6. I got 2 day ban too, been botting like 2 months nonstop lol
  7. I just removed the inv.interactWithId(rod, "Use-rod"); and now it does exactly what I wanted it to do, which is just click on the fishing spot. Thanks a lot for helping the noob though.
  8. Seems like that did the trick, thank you! But I'm sure there should be a way to just make it simply click on the fishing spot instead of using the rod itself on the fishing spot, that seems kinda silly. It does it really fast though so I guess it'll be fine. Thanks a bunch for the help
  9. Changed it, still does absolutely nothing.
  10. i suck, pls help whats wrong with this idk looks good to me package Fisher; import org.osbot.script.Script; import org.osbot.script.ScriptManifest; import org.osbot.script.rs2.model.Entity; import org.osbot.script.rs2.model.Player; import org.osbot.script.rs2.ui.Inventory; @ScriptManifest( author = "-", info = "--", name = "---", version = 0 ) public class BarbarianFisher extends Script { final String FISHINGSPOT_NAME = "Fishing spot"; public int onLoop() throws InterruptedException { Player player = client.getMyPlayer(); Inventory inv = client.getInventory(); if (!client.getInventory().isFull()) { // If inventory is not full then fish Entity fishSpot = closestObjectForName(FISHINGSPOT_NAME); if (fishSpot != null) { if (fishSpot.isVisible()) { if (!player.isAnimating()) { fishSpot.interact("Use-rod"); sleep(200 + random(400)); } } else { client.moveCameraToEntity(fishSpot); } } } else { // If inventory is full then drop all except feathers and rod inv.dropAllExcept(314,11323); } return 50; } }
×
×
  • Create New...