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.

Jad Prayer Swapper

Featured Replies

JAD PRAYER SWAPPER


Swaps prayers automatically so you don't have to!


 


PRO TIP:


When you activate the script, please make sure that the log is spamming "waiting for Jad to appear...", this ensures that the script is working and checking for Jad.


 


 


IMPORTANT STEPS TO KEEP IN MIND:


  1. You can activate the script at any time during the fight caves, it will only swap your prayer when Jad is in sight.
  2. To ensure that Jad is in sight, make sure to kill the off colored orange level 360 LAST. Jad will spawn where the off colored orange 360 spawned.
  3. From there, the script should take over and swap prayers as needed, so long as Jad is in sight.
  4. When the script prayer swaps for you, it may cause your camera to jerk around. This is due to me allowing user input. TIME YOUR CLICKS ACCORDINGLY TO AVOID WALKING INTO JAD (Click to drink potions/attack Jad after each prayer swap).
  5. Lastly, I have it scripted so it can protect against melee. I DO NOT ADVISE YOU GET COMFORTABLE IN MELEE RANGE. I DOUBT IT WILL CHANGE FAST ENOUGH FOR JAD's QUICK MELEE ANIMATION.

 


Download: http://uppit.com/7bk9h99h7l5x


 


FULL DISCLOSURE:


  1. I've only tested the script once to help my stupid slow reflexes fight Jad. It worked so I'm not planning on doing another run anytime soon now that I have the fire cape. If you have problems with the script, then you're either doing some wrong or I fucked up. If I did fuck up, I'll fix it if possible when I have time.
  2. As a continuation of the point of above, if you have an issue please copy and paste the logger.
  3. I'm publishing this to you guys because I searched everywhere for a prayer swapper like this and couldn't find one, so I made this. IT IS BY NO MEANS AMAZING. I just made this barebones to swap prayers, nothing more. IT WILL NOT FIGHT  JAD FOR YOU.
  4. Credits to this link for giving me the animation ids, saved me lots of work: http://osbot.org/forum/topic/61368-jad-attack-style-animation-ids/

 


Here's the stupidly simple code for you to hate:



import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.ui.PrayerButton;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

//TzTok-Jad
//MAGE(2656, Prayer.PROTECT_FROM_MAGIC, Color.BLUE),
//MELEE(2655, Prayer.PROTECT_FROM_MELEE, Color.RED),
//RANGE(2652, Prayer.PROTECT_FROM_MISSILES, Color.GREEN);

@ScriptManifest(author = "GuiltyAsCharged", info = "Because reflexes suck hardcore.", name = "Jad Prayer Swaper", version = 1.1, logo = "")

public class main extends Script
{
@Override
public void onStart() {
log("Let's get started!");
}

@Override
public int onLoop() throws InterruptedException
{
getBot().setHumanInputEnabled(true);
NPC jad = npcs.closest("TzTok-Jad");
if(jad != null)
{
//begin prayer swapping
//get animation
if(jad.getAnimation() == 2656)
{
//swap to mage prayer
log("Jad is maging.");
prayer.set(PrayerButton.PROTECT_FROM_MAGIC, true);
}
else if(jad.getAnimation() == 2652)
{
//swap to range prayer
log("Jad is ranging.");
prayer.set(PrayerButton.PROTECT_FROM_MISSILES, true);
}
else if(jad.getAnimation() == 2655)
{
//swap to melee prayer
log("Jad is meeleing.");
prayer.set(PrayerButton.PROTECT_FROM_MELEE, true);
}
return random(100, 110);
}
else
{
log("waiting for Jad to appear...");
return random(100, 110);
}
}

@Override
public void onExit() {
log("Hope you got the cape!");
}
}


Edited by GuiltyAsCharged

  • Author

Let me know how it works out. Good luck on cape!

 

EDIT: Be sure to read over everything in the post, it's important to ensure minimum fuck-ups.

Edited by GuiltyAsCharged

it's switching prayers, not swapping.

  • Author

it's switching prayers, not swapping.

Forgive me for my ignorance. I hope it's not a huge burden on your soul that it says swapping instead of switching, despite both being similar in definition.
  • 4 weeks later...

Nice script , however you should remove the melee prayer support as it will instantly hit when it animates unlike magic and ranged attacks , or make it camp on Melee when in melee range.

Frost is currently making one of these but it also has a lot of other bloat such as doing the whole fight caves :/

  • 2 months later...

loaded it from the beginning of the caves and it just idles i cant click on the screen or anything so i just died.. any advice?

Edited by 3 Hit U

loaded it from the beginning of the caves and it just idles i cant click on the screen or anything so i just died.. any advice?

 

You have to pause the script or enable user imput.. until jad

You have to pause the script or enable user imput.. until jad

 

Is this error msg normal?

[iNFO][bot #1][08/06 12:25:30 AM]: Started script : Jad Prayer Swaper

[ERROR][bot #1][08/06 12:25:30 AM]: Error in bot executor!

java.lang.NoSuchMethodError: org.osbot.rs07.Bot.setHumanInputEnabled(Z)V

    at main.onLoop(main.java:23)

    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(vi:149)

    at java.lang.Thread.run(Thread.java:745)

 

I get it starting the script at wave 1. Just checking because i don't wanna get to jad hit play and it not work.

Create an account or sign in to comment

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.