Jump to content

Alias

Members
  • Content Count

    10
  • Joined

  • Last visited

  • Days Won

    3

About Alias

  • Rank
    Bronze Member

Recent Profile Visitors

56 profile views
  1. where k=33, the answer is: (8,866,128,975,287,528)³ + (–8,778,405,442,862,239)³ + (–2,736,111,468,807,040)³ = 33.
  2. This is a simple class that can be used to convert String names into Item ID's or visa versa There are a few edge cases where there is more than one ID for the same item so that is a possibility if you're using this. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import com.google.gson.JsonObject; import com.google.gson.JsonParser; public class ItemConverter { private final static String URL = "https://rsbuddy.com/exchange/summary.json"; private final JsonObject json; public ItemConverter() {
  3. edited to remove redundant walking code 🙂
  4. I wrote this fairly quickly and was a little bit lazy so no GUI to input your food or selected stall. Just edit the String for food - this is case sensitive (don't use cakes or bread as that clearly won't work on this). Also edit the stall you want to steal from if you wish. Should go right beside the stall and attempt to steal from it. import com.epicbot.api.shared.GameType; import com.epicbot.api.shared.entity.SceneObject; import com.epicbot.api.shared.model.Area; import com.epicbot.api.shared.model.Tile; import com.epicbot.api.shared.script.LoopScript; import com.epicb
  5. @Ayylmao420 I feel like the boolean is a bit redundant as it is always returning true. There is nothing in the code that provides a false return so there's not really a point to check it with an if statement. This is what I do in my API public static void sleepUntil(final BooleanSupplier condition, final long timeout) { long start = System.currentTimeMillis(); while (!condition.getAsBoolean()) { if (System.currentTimeMillis() > start + timeout) { break; } } } And if you want to add a reset condition can just do this: public static voi
  6. public class TEST { public static void main(String[] args) throws InterruptedException { //create our something object that you need to get info from final Something something = new Something(); //create a thread and pass the runnable subclass though as a parameter //so the thread knows what it's job is final Thread thread = new Thread(something); //start the thread thread.start(); //synchronized block with the target of the thread we will be waiting on synchronized (thread) { Sy
  7. package cannonballer; import com.epicbot.api.shared.GameType; import com.epicbot.api.shared.entity.SceneObject; import com.epicbot.api.shared.model.Area; import com.epicbot.api.shared.script.LoopScript; import com.epicbot.api.shared.script.ScriptManifest; import com.epicbot.api.shared.util.time.Time; @ScriptManifest(name = "CB Smither", gameType = GameType.OS) public class AliasCannonballer extends LoopScript { private final static Area SMITH_AREA = new Area(3109, 3501, 3105, 3497); private final static Area EDGE_BANK = new Area(3098, 3499, 3092, 3493); private long animationTi
  8. Considering you don't have a Zulrah released I figured I'd help. public class RotationListener implements Runnable { public RotationListener(final AliasZulrah ctx) { this.ctx = ctx; }
  9. import com.epicbot.api.shared.GameType; import com.epicbot.api.shared.entity.SceneObject; import com.epicbot.api.shared.model.Area; import com.epicbot.api.shared.script.LoopScript; import com.epicbot.api.shared.script.ScriptManifest; import com.epicbot.api.shared.util.time.Time; @ScriptManifest(name = "Alias", gameType = GameType.OS) public class Main extends LoopScript { private final static Area OAK_AREA = new Area(3172, 3422, 3159, 3411); private final static Area BANK_AREA = new Area(3185, 3439, 3180, 3431); @Override public boolean onStart(String... strings) { r
×
×
  • Create New...