Jump to content

system64

Members
  • Posts

    10
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

system64's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. I had that too when I first bought a script. Restart your client & refresh your scripts it should be there.
  2. Alright, it successfully has the conversation with the competition judge. But doesn't seem to attack the target.
  3. WOOOO it works!! thanks man
  4. haha i have no idea been trying to figure it out for a while now.
  5. I start the script infront of the judge
  6. So i wrote a simple guild ranger script. No errors when compiling, shows up on script loader. But when I start it nothing happens. Source: import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.Area; import java.awt.*; @ScriptManifest(author = "system64", info = "range guild", name = "range Guild", version = 0, logo = "") public class range extends Script { private enum State { SHOOT_TARGET }; private State getState() { if(!myPlayer().isAnimating()) SHOOT_TARGET return State.SHOOT_TARGET; return State.SHOOT_TARGET; } public int onLoop() throws InterruptedException { switch(getState()) { case SHOOT_TARGET: interactWithJudge(); playMinigame(); break; } return random(200, 300); } private void playMinigame() throws InterruptedException { RS2Object target = getObjects().closest("Target"); if(target != null) { for(int x = 1; x >= 10; x ++) { if(target.interact("fire at target")) { sleep(100); } } } } private void interactWithJudge() throws InterruptedException { NPC judge = getNpcs().closest("Competetion Judge"); if(judge != null){ judge.interact("Talk-to"); sleep(500); } if(getInterfaces().getChild(548, 116).isVisible()) { sleep(random(600, 1000)); dialogues.clickContinue(); sleep(random(600, 1000)); dialogues.selectOption("Sure I'll give it a go"); sleep(random(600, 1000)); } } }
  7. NPC judge = getNpcs().closest("Judge"); if(judge != null){ judge.interact("Talk-to"); } use that instead of NPCS/RS2objects?
  8. It's my first script; I'm trying to make a range guild script. What should i use to talk to the Range judge? I currently have: import org.osbot.rs07.api.map.Position; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.Area; import java.awt.*; @ScriptManifest(author = "system64", info = "range guild", name = "SmartGuild", version = 0, logo = "") public class Guild extends Script { private static final int[] Judge_ID = { 6070 }; // competition judge private Position[] path = { new Position(2659, 3437, 0), new Position(2660, 3436, 0), new Position(2662, 3434, 0), new Position(2664, 3431, 0), new Position(2666, 3426, 0), new Position(2670, 3418, 0), };
×
×
  • Create New...