Jump to content

kyukyu

Members
  • Posts

    103
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by kyukyu

  1. Recently some people made rsautoswitcher which you can use alongside your other clients, but they kind of charge alot
  2. most likely more ram will be beneficial, but i dont know the speccs of your pc so i cant tell you for sure
  3. +1 to that, i have a blitz gmaul rusher in this bracket and 60 hp is a safe spot to be in
  4. kyukyu

    Combat Helper

    hp bar of current enemy would be a good feature to add ^^
  5. hey im interested in buying and testing the v2 for zulrah, but dont have a v1 sub. If i buy a v1 sub will i get an auth for v2?
  6. update: private version i've been working on now supports banking
  7. stand under your cannon and youll shoot yours yeah those are problems that kind of come with what i was trying to do. I just wanted to replicate afk cannon behavior so the time inbetween clicks on the cannon is quite a bit long. Basically i wanted to make a script that afks for me
  8. currently doesnt bank, start at the desired sandcrab spot with an inventory full of tuna ^.^ will consider making this one nice if its well recieved sandCrabber.jar
  9. update: fixed have a fully functioning afk sandcrab script
  10. how would i declare the variable globally so that it can be called from in the onloop method?
  11. package Main; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.*; import org.osbot.rs07.api.map.Position; import java.awt.*; @ScriptManifest(name = "CrabKiller", author = "kyu", version = 1.0, info = "noob scripting", logo = "") public class Main extends Script { @Override public void onStart() { log("welcome to kyu crabs"); //Code here will execute before the loop is started } private enum State{ FIGHTING, RESET; } private State getState(){ if(myPlayer().isHitBarVisible() || myPlayer().isUnderAttack()) return State.FIGHTING; return State.RESET; } @Override public void onExit() { log("ending...."); //Code here will execute after the script ends } final Position starting = myPlayer().getPosition(); final Position reset = new Position(1750,3503,0); @Override public int onLoop() throws InterruptedException{ switch(getState()){ case FIGHTING: if(myPlayer().getHealthPercent()<50) getInventory().interact("Eat","Tuna"); return 20000; case RESET: log("walking...."); getWalking().walk(reset); sleep(15000); log("walking to start"); getWalking().walk(starting); sleep(15000); } return 5000; //The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) } } I was building a simple afk sandcrabber for personal use but when i went to test it wouldnt even start running. The logger doesnt even show the onstart text so i'm looking for a quick troubleshoot
  12. import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.*; import java.awt.*; @ScriptManifest(name = "Cannon Clicker", author = "Kyu", version = 1.0, info = "", logo = "") public class Main extends Script { private long startTime; @Override public void onStart() { //Code here will execute before the loop is started startTime = System.currentTimeMillis(); } @Override public void onExit() { //Code here will execute after the script ends } @Override public int onLoop() { RS2Object cannon = getObjects().closest("Dwarf multicannon"); if(cannon.hasAction("Repair")) cannon.interact("Repair"); if(cannon.hasAction("Fire")) cannon.interact("Fire"); return random(30000,40000); //The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { final long runTime = System.currentTimeMillis() - startTime; g.drawString(formatTime(runTime), 30, 30); //This is where you will put your code for paint(s) } public final String formatTime(final long ms){ long s = ms / 1000, m = s / 60, h = m / 60; s %= 60; m %= 60; h %= 24; return String.format("%02d:%02d:%02d", h, m, s); } } first script be gentle
×
×
  • Create New...