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.

Toph NMZ | Best Combat XP In the Game!

Featured Replies

Script is bugging today thought, it's spraying errors.

ERROR][01/31/14 10:04:12 PM]: Error on executing script worker!
java.lang.ArrayIndexOutOfBoundsException: -1
at com.Toph.NMZ.NMZ.B(Unknown Source)
at com.Toph.NMZ.NMZ.onLoop(Unknown Source)
at org.osbot.eb.run(vk:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[ERROR][01/31/14 10:04:13 PM]: Error on executing script worker!
java.lang.ArrayIndexOutOfBoundsException: -1
at com.Toph.NMZ.NMZ.B(Unknown Source)
at com.Toph.NMZ.NMZ.onLoop(Unknown Source)
at org.osbot.eb.run(vk:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[ERROR][01/31/14 10:04:14 PM]: Error on executing script worker!
java.lang.ArrayIndexOutOfBoundsException: -1
at com.Toph.NMZ.NMZ.B(Unknown Source)
at com.Toph.NMZ.NMZ.onLoop(Unknown Source)
at org.osbot.eb.run(vk:74)
 
and is lagging soo much
  • Author

 

Script is bugging today thought, it's spraying errors.

ERROR][01/31/14 10:04:12 PM]: Error on executing script worker!
java.lang.ArrayIndexOutOfBoundsException: -1
at com.Toph.NMZ.NMZ.B(Unknown Source)
at com.Toph.NMZ.NMZ.onLoop(Unknown Source)
at org.osbot.eb.run(vk:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[ERROR][01/31/14 10:04:13 PM]: Error on executing script worker!
java.lang.ArrayIndexOutOfBoundsException: -1
at com.Toph.NMZ.NMZ.B(Unknown Source)
at com.Toph.NMZ.NMZ.onLoop(Unknown Source)
at org.osbot.eb.run(vk:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[ERROR][01/31/14 10:04:14 PM]: Error on executing script worker!
java.lang.ArrayIndexOutOfBoundsException: -1
at com.Toph.NMZ.NMZ.B(Unknown Source)
at com.Toph.NMZ.NMZ.onLoop(Unknown Source)
at org.osbot.eb.run(vk:74)
 
and is lagging soo much

 

Because of the obfuscation done by the SDN, I can't tell where that is in code. Do you recall when this was happening?

Absolutely love this script but sometimes it forgets to wield d scim after surging with g maul it's rarely though.

Could do with range support what i meen is super ranging pots, they cost way less than overloads which aren't needed for ranging.

I'd suggest you add an option to flash piety/str prayers

int x = 0;
      while (this.myPlayer().isUnderAttack() && this.client.getMyPlayer().getAnimation() != this.animation && x < 200) {
         sleep(25);
         x++;
      }
      long time = System.currentTimeMillis();
if (this.prayerTab.isPrayerOn(Prayer.PIETY)) {
         togglePiety(true);
      }
/*
.
.
.
.
*/
if (this.client.getSkills().getCurrentLevel(Skill.PRAYER) > 0) {
         mouseToPrayer();
         // sleep
         int sleep = (int) (this.delay - random(600, 700) - (System.currentTimeMillis() - time));
         // prayer on
         if (sleep > 0) {
            sleep(sleep);
            if (!this.prayerTab.isPrayerOn(Prayer.PIETY)) {
               Player p = this.client.getMyPlayer();
               if (p.getFacing() != null) {
                  if (p.getFacing().isFacing(p)) {
                     togglePiety(false);
                  }
               }
            }
         }
      }
private void togglePiety(boolean force) throws InterruptedException {
      // 271 55
      this.openTab(Tab.PRAYER);
      Thread.sleep(50);
      Rectangle r = new Rectangle(553, 401, 30, 30);
      MouseDestination md = new RectangleDestination(r);
      Point p = this.client.getMousePosition();
      boolean clicked = false;
      if (!(p.x >= r.x && p.x <= r.x + r.width && p.y >= r.y && p.y <= r.y + r.height)) {
         this.client.moveMouse(md, false);
         sleep(50);
      }
      else {
         this.client.clickMouse(false);
         clicked = true;
      }
      if (force && !clicked) {
         this.client.clickMouse(false);
      }
   }

also when im using this with iron knifes and using power surge with g maul it switches to g maul puts it on accurate>[pound] (attack xp) and doesnt do nothing nor change back to knifes/book

Edited by jnfs96

  • Author

also when im using this with iron knifes and using power surge with g maul it switches to g maul puts it on accurate>[pound] (attack xp) and doesnt do nothing nor change back to knifes/book

It should be doing both of those. If you can video tape it not switching, I'll see if I can catch what's up. Message me. Maybe just don't use gmaul for now since you're doing ranged anyway?

I'd suggest you add an option to flash piety/str prayers

 

int x = 0;
      while (this.myPlayer().isUnderAttack() && this.client.getMyPlayer().getAnimation() != this.animation && x < 200) {
         sleep(25);
         x++;
      }
      long time = System.currentTimeMillis();
if (this.prayerTab.isPrayerOn(Prayer.PIETY)) {
         togglePiety(true);
      }
/*
.
.
.
.
*/
if (this.client.getSkills().getCurrentLevel(Skill.PRAYER) > 0) {
         mouseToPrayer();
         // sleep
         int sleep = (int) (this.delay - random(600, 700) - (System.currentTimeMillis() - time));
         // prayer on
         if (sleep > 0) {
            sleep(sleep);
            if (!this.prayerTab.isPrayerOn(Prayer.PIETY)) {
               Player p = this.client.getMyPlayer();
               if (p.getFacing() != null) {
                  if (p.getFacing().isFacing(p)) {
                     togglePiety(false);
                  }
               }
            }
         }
      }
private void togglePiety(boolean force) throws InterruptedException {
      // 271 55
      this.openTab(Tab.PRAYER);
      Thread.sleep(50);
      Rectangle r = new Rectangle(553, 401, 30, 30);
      MouseDestination md = new RectangleDestination(r);
      Point p = this.client.getMousePosition();
      boolean clicked = false;
      if (!(p.x >= r.x && p.x <= r.x + r.width && p.y >= r.y && p.y <= r.y + r.height)) {
         this.client.moveMouse(md, false);
         sleep(50);
      }
      else {
         this.client.clickMouse(false);
         clicked = true;
      }
      if (force && !clicked) {
         this.client.clickMouse(false);
      }
   }

Have you actually tested that piece of code? I haven't, but it doesn't seem like it'd work from just looking at it. Seems like it will just turn on or off prayer whenever your animation isn't the attacking animation (which I don't *think* will flash correctly)

It should be doing both of those. If you can video tape it not switching, I'll see if I can catch what's up. Message me. Maybe just don't use gmaul for now since you're doing ranged anyway?

Have you actually tested that piece of code? I haven't, but it doesn't seem like it'd work from just looking at it. Seems like it will just turn on or off prayer whenever your animation isn't the attacking animation (which I don't *think* will flash correctly)

I have tested it extensively.. if 30m combat xp counts

I'll give you the rundown -

it wait for your animation if YOUR weapon - 1658 for whip I think. On that animation, it turns prayer OFF

Then if does whatever else the script needs to do

Then it calculates how much time left until your weapon hits again - 600ms (tick)

sleeps the calculated time -

Turns prayer on

loops back to beginning

The art of flashing, your bonus prayers need to be on BEFORE you attack. Once you attack you can turn them off.

Flashing protect prayers, they have to be on BEFORE the monster animates, then you can turn them off. They only need to be on during the tick which calculates damage given/taken

Edited by dreamliner

  • Author

I have tested it extensively.. if 30m combat xp counts

I'll give you the rundown -

it wait for your animation if YOUR weapon - 1658 for whip I think. On that animation, it turns prayer OFF

Then if does whatever else the script needs to do

Then it calculates how much time left until your weapon hits again - 600ms (tick)

sleeps the calculated time -

Turns prayer on

loops back to beginning

The art of flashing, your bonus prayers need to be on BEFORE you attack. Once you attack you can turn them off.

Flashing protect prayers, they have to be on BEFORE the monster animates, then you can turn them off. They only need to be on during the tick which calculates damage given/taken

It seems like it might be too complicated to implement for the variety of weapons/animations/waiting times, along with lag that apparently a lot of people have when running bots.

It seems like it might be too complicated to implement for the variety of weapons/animations/waiting times, along with lag that apparently a lot of people have when running bots.

A. make it an option

B. find weapon timings/animations dynamically. I did.

At 99/99, pray flashing piety gives me 110k xp an hour, without piety I get 85k xp an hour. It's definitely worth looking into.

Edited by dreamliner

Only problem I'm running into is when my character enters the dungeon he will switch between prayer tab and inventory back and forth, never actually putting the prayer on and dying unless I manually do it. Otherwise running flawlessly

It should be doing both of those. If you can video tape it not switching, I'll see if I can catch what's up. Message me. Maybe just don't use gmaul for now since you're doing ranged anyway?

 

dem free str power surges though, ha i know im just being greedy :p

love this script bought it yesterday and gotten 20-70 def in no time! (sometimes messed up switching gmaul just keeps clicking str mode but sorts its self out next time

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.