davis9955 Posted July 1, 2019 Share Posted July 1, 2019 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!"); } } Quote Link to comment Share on other sites More sharing options...
Roarings Posted July 1, 2019 Share Posted July 1, 2019 Cool script, thanks! Quote Link to comment Share on other sites More sharing options...
Perryy Posted July 1, 2019 Share Posted July 1, 2019 Just got my f cape on my 1 pray pure! Love it! 2 1 Quote Link to comment Share on other sites More sharing options...
Ragboys is back Posted July 1, 2019 Share Posted July 1, 2019 Gratzie Quote Link to comment Share on other sites More sharing options...
Promo Posted July 2, 2019 Share Posted July 2, 2019 So simple but effective. Thanks for the release! Quote Link to comment Share on other sites More sharing options...
luck or skill Posted July 22, 2019 Share Posted July 22, 2019 can someone explain what it does? i presume it kills jad but how? it pray flicks? drinks pots? kills healers? Quote Link to comment Share on other sites More sharing options...
sturnbull Posted July 26, 2019 Share Posted July 26, 2019 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. Quote Link to comment Share on other sites More sharing options...
Jesus Christ Posted October 2, 2019 Share Posted October 2, 2019 On 7/1/2019 at 11:27 PM, Perryy said: Just got my f cape on my 1 pray pure! Love it! troll Quote Link to comment Share on other sites More sharing options...
henkyT Posted June 22, 2020 Share Posted June 22, 2020 how to add this? Quote Link to comment Share on other sites More sharing options...
6969420fister Posted June 22, 2020 Share Posted June 22, 2020 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 Quote Link to comment Share on other sites More sharing options...
ez11 Posted June 22, 2020 Share Posted June 22, 2020 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 Quote Link to comment Share on other sites More sharing options...
Juggles Posted June 22, 2020 Share Posted June 22, 2020 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 Quote Link to comment Share on other sites More sharing options...
aexamo Posted June 24, 2020 Share Posted June 24, 2020 How do you install this? Quote Link to comment Share on other sites More sharing options...
Gunman Posted June 24, 2020 Share Posted June 24, 2020 (edited) 54 minutes ago, aexamo said: How do you install this? Compile into a jar then move to script folder. Only need to do part 1 https://osbot.org/forum/topic/154399-script-development-setup/ Edited June 24, 2020 by Gunman Quote Link to comment Share on other sites More sharing options...
lukey372 Posted June 24, 2020 Share Posted June 24, 2020 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 Quote Link to comment Share on other sites More sharing options...