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 script

Featured Replies

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!");

    }

}

Just got my f cape on my 1 pray pure! Love it!

  • 3 weeks later...
On 7/23/2019 at 12:31 AM, luck or skill said:

can someone explain what it does? i presume it kills jad but how? it pray flicks? drinks pots? kills healers?

Just briefly looking at the code it looks like it just reacts to the attack Jad is doing and uses the correct protection prayer.

You would still manually have to click the healers, drink pots etc.

  • 2 months later...
  • 8 months later...

could this work for zulrah as well if you change the name from jad to zulrah? Hate having to pay lots of attention at zulrah xoxo

52 minutes ago, 6969420fister said:

could this work for zulrah as well if you change the name from jad to zulrah? Hate having to pay lots of attention at zulrah xoxo

no

1 hour ago, 6969420fister said:

could this work for zulrah as well if you change the name from jad to zulrah? Hate having to pay lots of attention at zulrah xoxo

Zulrah has different animations. You prob need to use color for zulrah as well for prayer switches 

On 6/23/2020 at 12:08 AM, 6969420fister said:

could this work for zulrah as well if you change the name from jad to zulrah? Hate having to pay lots of attention at zulrah xoxo

Get good and maybe you wouldn't need to pay attention :kappa:

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.