Jump to content

protectedboolean

Members
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Female

protectedboolean's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. it shows up in selector https://i.imgur.com/v4UFUzD.png why would the bot misclick? excuse my ignorance how about this? can i have my checkPoint up there? public class Draynor_Agility extends Script{ private int checkPoint = 0; THANK YOU EVERYONE i am just tryna learn EDIT: I was looking off the tea thiever bot when making this [ERROR][Bot #1][07/19 02:38:36 PM]: Error in bot executor! java.lang.AbstractMethodError: client.getMouseX()I at org.osbot.rs07.api.Mouse.getPosition(hi:497) at org.osbot.rs07.event.InteractionEvent.iiIiiiiiIiiI(yi:217) at org.osbot.rs07.event.InteractionEvent.execute(yi:479) at org.osbot.rs07.event.EventExecutor$2.run(ch:252) at org.osbot.rs07.event.EventExecutor.execute(ch:213) at org.osbot.rs07.api.model.WallDecoration.interact(cn:25) at Draynor_Agility.onLoop(Draynor_Agility.java:38) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(kl:223) at java.lang.Thread.run(Unknown Source)
  2. Hi folks, I took an advanced Java course almost a year ago and made good marks, but haven't touched an IDE since then.. I thought I would try my hand at scripting, so I would appreciate any feedback on this script! Thanks! import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "Draynor Agility Course", author = "", version = 1.0, info = "", logo = "") public class Draynor_Agility extends Script{ RS2Object RoughWall = getObjects().closest("Rough Wall");//'Climb' RS2Object Tightrope = getObjects().closest("Tightrope");//'Cross' RS2Object Tightrope2 = getObjects().closest("Tightrope");//'Cross' RS2Object NarrowWall = getObjects().closest("Narrow Wall");//'Balance RS2Object Wall = getObjects().closest("Wall");//'Jump-up' RS2Object Gap = getObjects().closest("Gap");//'Jump' RS2Object Crate = getObjects().closest("Crate");//'Climb-down' int checkPoint = 0; @Override public void onStart(){ log("Started Successfully"); //Code here will execute before the loop is started } @Override public void onExit(){ log("Ended Successfully"); //Code here will execute after script ends } @Override public int onLoop() throws InterruptedException{ if (checkPoint == 0 && RoughWall != null && !myPlayer().isAnimating()) { RoughWall.interact("Climb"); checkPoint++; } else if(checkPoint == 1 && Tightrope != null && !myPlayer().isAnimating()){ Tightrope.interact("Cross"); checkPoint++; } else if(checkPoint == 2 && Tightrope2 != null && !myPlayer().isAnimating()){ Tightrope2.interact("Cross"); checkPoint++; } else if(checkPoint == 3 && NarrowWall != null && !myPlayer().isAnimating()){ NarrowWall.interact("Balance"); checkPoint++; } else if(checkPoint == 4 && Wall != null && !myPlayer().isAnimating()){ Wall.interact("Jump-up"); checkPoint++; } else if(checkPoint == 5 && Gap != null && !myPlayer().isAnimating()){ Gap.interact("Jump"); checkPoint++; } else if(checkPoint == 6 && Crate != null && !myPlayer().isAnimating()){ Crate.interact("Climb-down"); checkPoint = 0; } else return random(200,300); return random(200,300); //the amount of time before the loop starts over } public void onPaint(Graphics2D g){} //This is where you will put your code for paint(s) }
×
×
  • Create New...