Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

trying to make a 4tick fishing script.

Featured Replies

The idea is to get better exp so i can bot for less hours with better results since the bot has the capablities to do it just have to get the timing right and i trying to make it go into crafting when 1 trout or same enters the inv and after it comes out of crafting drop the one trout. the timing as far as sleep goes is going to be a bitch and ping is going to play apart in this i am just frustrated atm.

public class main extends Script {
@[member='Override']
public void onStart() {
}

@[member='Override']
public int onLoop() throws InterruptedException {
switch (getState()) {
case FISH:
fishFly();
break;
case CRAFT:
craftLeather();
break;
}
return random(20, 42);
}

private void fish() throws InterruptedException {
{
if(!this.myPlayer().isAnimating() && this.inventory.contains(new String[]{"Fly fishing rod", "Feather"})) {
NPC fishingSpot = (NPC)this.npcs.closest(true, new String[]{"Fishing Spot"});
if(fishingSpot != null) {
this.status = "Catching Fish";
fishingSpot.interact(new String[]{"Lure"});
} else {
}
}

private void craftLeather() throws InterruptedException {
inventory.interact("Use", "Leather");
sleep(random(20, 20));
inventory.interact("Use", "Needle");
sleep(random(80, 90));
getWidgets().get(542, 103).interact("Armour");
sleep(random(45, 92));
}

@[member='Override']
public void onExit() {
}


private enum State {
FISH, CRAFT;
};

private State getState() {
if(inventory.contains("Trout"),("Salmon"))
return State.CRAFT;
return State.FISH;
}
}
}

Edited by aeondenied

On 21/01/2017 at 8:49 PM, Light said:

oh you want auto ban?

 

2 hours ago, Magarac said:

Lol yes this would lead to very quick bans sadly.

And your logic behind that is?...

 

op: Look into conditional sleeps will make your script more efficient than using random sleeps

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.