Jump to content

GuiltyAsCharged

Members
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

1269 profile views

GuiltyAsCharged's Achievements

Newbie

Newbie (1/10)

9

Reputation

  1. 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.
  2. 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.
  3. 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: You can activate the script at any time during the fight caves, it will only swap your prayer when Jad is in sight. 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. From there, the script should take over and swap prayers as needed, so long as Jad is in sight. 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). 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: 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. As a continuation of the point of above, if you have an issue please copy and paste the logger. 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. 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!"); } }
×
×
  • Create New...