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.

FuzzyFightCaves

Featured Replies

FuzzyFightCaves v1.0

 

 

If any of you have used the same script from vInsert. you will know what to expect from this script. I'm currently converting it from Java and vInsert's API to Groovy and OSBot's API. It shouldn't take long and I shall attach a zip file containing the .groovy files to the thread.

 

NOTE: Current version is very basic, will improve script much more as soon as support for Java is added.

 

Instructions:

 - Save script as "FuzzyFightCaves.groovy" - Place in:   -> %userprofile%/osbot/scripts (Windows)   -> /home/osbot/scripts (Mac/Linux) - Launch bot   -> Log in   -> Position your character near the entrance - Open script selector   -> Click "Reload"   -> Select "FuzzyFightCaves"   -> Click "Start"

 

Changelog:

 - v1.0   -> Initial release. - v1.1   -> Walks to centre of caves if out of combat for 10 seconds   -> Camera should have stopped moving around so much

 

Features:

 - Entering caves - Running back to centre of the area if out of combat for too long.// -- No GUI yet -> coming soon (When Java support is added)// - GUI//   -> Shows experience and tokkul gained (and average hourly rates)

 

Planned features:

 - GUI   -> Exp and tokkul gains with hourly rates - NPC clicking   -> Could be added now, but buggy and will likely lower the exp/h - Food/prayer support   -> Food and prayers will be selectable by the user

 

Known bugs:

 - None!


Script:

import org.osbot.script.ScriptManifestimport org.osbot.script.rs2.map.Positionimport org.osbot.script.rs2.model.RS2Objectimport java.awt.*@ScriptManifest(name = "FuzzyFightCaves", author = "Fuz", version = 1.1D, info = "Superior Fight Caves training script! (Crappy version)")public class FuzzyFightCaves extends org.osbot.script.Script {    private static final int CAVE_ENTRANCE = 9356;    private static final int CAVE_EXIT = 9357;    private static final int TIMEOUT = 10;    private int timeOut = TIMEOUT;    private RS2Object exit;    private RS2Object entrance;    @Override    void onStart() {    }    @Override    int onLoop() {	    if ((entrance = getClosestObject(CAVE_ENTRANCE)) != null && (exit = getClosestObject(CAVE_EXIT)) == null)		    if (!selectEntityOption(entrance, "Enter"))			    client.moveCameraToEntity(entrance);		    else {			    if (timeOut < 1) {				    walk(getCentralTile());				    timeOut = TIMEOUT;			    } else if (!client.myPlayer.isAnimating()) {				    timeOut -= 1;				    return 1000;			    } else				    timeOut = TIMEOUT;		    }	    return 2000;    }    @Override    void onPaint(Graphics g) {    }    private RS2Object getClosestObject(int id) {	    RS2Object o = null;	    for (RS2Object obj : client.getCurrentRegion().getObjects())		    if (obj != null && obj.getId() != null && obj.getId() == id)			    if (o == null || distance(obj) < distance(o))				    o = obj;	    return o;    }    private Position getCentralTile() {	    int x = client.getMapBaseX();	    int y = client.getMapBaseY();	    return new Position(x + 96, y + 96, 0);    }}

 

Please report any bugs, post proggies (1h+) if possible

Edited by Fuz

Once you complete converting it to groovy, can you private message me so I can try this script out, I will post screenshots proggies.

Edited by Peter

Quite off topic, but do you actually believe in the Norse mythology? (Your avatar) Or do you just use valknut because, well, just for fun?

Edited by snaes

  • Author

Quite off topic, but are you an actual believer in the Norse mythology? (Your avatar) Or do you just use valknut because, well, just for fun?

I have a really strong/passionate interest for Norse Paganism/Mythology.

 

On topic: Script shouldnt take long to finish. I'm currently eating but shouldnt take more than 30 minutes (I'm also converting my API)

  • Author

Update: Scripts don't seem to be loading in the bot, thus I am unable to test the script. I won't be uploading until it's tested, and I an unsure of when this will be sorted (A few people have reported the same problem)

I have a really strong/passionate interest for Norse Paganism/Mythology.

 

On topic: Script shouldnt take long to finish. I'm currently eating but shouldnt take more than 30 minutes (I'm also converting my API)

Hail the Alfather and his son.

  • Author

Ok, I found the problem (thanks to Peter). The problem was the packaging so I'll have to upload all the required classes in one file

:L

Ah well, at least it works now (hopefully). Enjoy.

Edited by Fuz

Wow I never thought I would see fellow followers of Asatru on a botting website

 

Anyway I will be using this script a lot when its out

Ah well, at least it works now (hopefully). Enjoy.

So does it work now or..? Where will I be able to download it

  • Author

Can't seem to fix the problem with it not loading. Will update when it's fixed. Sorry for the delay guys.

Edit: The problem seems to be related to the fact the script (and API) is packaged.

Edited by Fuz

Guest
This topic is now closed to further replies.

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.