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 Simple Prayer Switcher [untested]

Featured Replies

Should switch prayers at jad, untested and wrote it notepad++ in 5mins xD was meant as a joke but it should work biggrin.png

 

Inspiration:

[01:42:05] Cory Nelson: naa jad prayer switcher be easy as fuck
[01:42:05] Cory Nelson: xD
[01:42:32] Kyle: yea, it would, cant you just get his anim and then switch it to that
[01:42:39] Cory Nelson: yeh
[01:43:00] Kyle: thought so. Lol. It would have to be for mains wouldnt it? or would doing a pure be possible
[01:43:39] Cory Nelson: prayer switcher is all it would have to doo
[01:43:42] Cory Nelson: and eat at low hp
[01:43:49] Cory Nelson: brew*
[01:43:54] Cory Nelson:  and restore
[01:44:50] Kyle: ah. So you'd almost be able to do it without doing jad lol
[01:47:52] Cory Nelson: sec
[01:51:42] Cory Nelson: http://paste.ee/r/QeBsg
[01:51:49] Cory Nelson: untested
[01:51:50] Cory Nelson: lol
[01:52:00] Cory Nelson: needs anim id and name of jad
[01:52:06] Kyle: god damn you cory
[01:52:35] Smart: cory is too quick.
[01:53:15] Cory Nelson: took 4min
[01:53:16] Cory Nelson: lol
[01:55:47] Cory Nelson: scratch that
[01:55:50] Cory Nelson: has name and anims
[01:55:51] Cory Nelson: http://paste.ee/r/NCnmI

Source

import org.osbot.script.Script;
import org.osbot.script.ScriptManifest;
import org.osbot.script.rs2.model.NPC;
import org.osbot.script.rs2.ui.Prayer;

import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.net.URL;
import java.util.LinkedList;

/**
 * User: Cory
 * Date: 20/06/13
 * Time: 22:06
 */
@ScriptManifest(name = "JadPrayerSwitch", author = "Cory", version = 1, info="Switches Prayer At Jad")
public class JadPrayerSwitch extends Script {

	private int lastJadAnimation = -1;

	@Override
	public int onLoop() throws InterruptedException {

		NPC npc = closestNPCForName("TzTok-Jad");
		if(npc.getAnimation() != lastJadAnimation) {
			lastJadAnimation = npc.getAnimation();
			if(lastJadAnimation != -1)
				animationChange();
		}

		return 0;
	}

	public void animationChange() throws InterruptedException {
		switch(lastJadAnimation) {
			case 2652: //jad range anim
				if(prayerTab.isPrayerOn(Prayer.PROTECT_FROM_MISSILES))
					return;
				prayerTab.setPrayer(Prayer.PROTECT_FROM_MISSILES, true);
				break;

			case 2656: //jad mage anim
				if(prayerTab.isPrayerOn(Prayer.PROTECT_FROM_MAGIC))
					return;
				prayerTab.setPrayer(Prayer.PROTECT_FROM_MAGIC, true);
				break;
		}
	}
}

Jar:

https://www.dropbox.com/s/d0kbkb3i3341yzi/JadSwitcher.jar

Edited by Cory

LOLOLOL, just released this script that he wrote in a skype chat. Boss.thumbs up

  • Author

This will get everyone killed when they try to attack Jad while the script goes to change pray lol

 

Then don't click attack as its about to do an animation, easy to time etc, so only an idiot would die for the reason you specified

 

This will get everyone killed when they try to attack Jad while the script goes to change pray lol

 

Then don't click attack as its about to do an animation, easy to time etc, so only an idiot would die for the reason you specified

 

You'd be surprised how many people suck at Jad.

  • Author

 

 

This will get everyone killed when they try to attack Jad while the script goes to change pray lol

 

Then don't click attack as its about to do an animation, easy to time etc, so only an idiot would die for the reason you specified

 

You'd be surprised how many people suck at Jad.

 

 

I've done jad 1/13 attempts. But i know when he is about to do an attack :p

The best firecaper in the world will attempt to use this script when he feels like dying in fight caves.

Tbh it would've been better to notify us which attack he's using so that we can switch manually.

 

e.g. colour Jad blue if he's doing a mage attack, colour Jad green if he's doing a range attack.

Tbh it would've been better to notify us which attack he's using so that we can switch manually.

 

e.g. colour Jad blue if he's doing a mage attack, colour Jad green if he's doing a range attack.

...Why would you do that? You already know if he's doing a range/mage attack from how he moves and the sound he makes.....

  • 2 weeks later...

I needa do jad, and I don't wanna pay 5m+ for someone to do it for me..Never done it before either. Hope this works :o

trying it now posting results lol.

 

Edit: didnt work only crashed client.

Edited by Mico

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.