Jump to content

Cyberus

Trade With Caution
  • Posts

    24
  • Joined

  • Last visited

  • Feedback

    100%

About Cyberus

Profile Information

  • Gender
    Male

Recent Profile Visitors

916 profile views

Cyberus's Achievements

Bronze Poster

Bronze Poster (2/10)

0

Reputation

  1. Cyberus

    Smite

    It's the only game I've played for as long as I have and it really is the best multiplayer game I've ever played, and the only one I've gone competitive with. I highly recommend it. The world championship is also coming around real quick which is amazing to watch whether you play the game or not.
  2. I'd also appreciate making the WorldHopper.EXISTANT list contain a list of world objects instead of integers containing information about the world population and type.
  3. Cyberus

    Smite

    Any Smite players on this forum? It's one of the best games I've ever played, but I've been taking a break for the past month or so. I'm currently sitting in diamond league in both conquest and joust.
  4. Not sure if you guys actually just updated it or the bot just decided to start being fast, but now it has only been stalling for a couple of seconds per hop.
  5. The world hopper stalls for a longer amount of time than it takes actually hopping. Could we get this sped up please?
  6. added clues done and bounty hunter kills
  7. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; /** * A wrapper for the RuneScape old school highscores API. * @author Ryan Greene * */ public final class Highscores { /** * A private constructor to prevent initialization. */ private Highscores() { } /** * The base URL of the API request. */ private static final String BASE_URL = "http://services.runescape.com/m=hiscore_oldschool/index_lite.ws?player="; /** * The amount of skills in old school RuneScape. */ private static final int SKILL_COUNT = 24; /** * The amount of recorded activities in old school RuneScape. */ private static final int ACTIVITY_COUNT = 3; /** * Gets all of the specified player's skills. * @param playerName The name of the player to get the skills of. * @return The skills of the player. * @throws IllegalArgumentException if the player name isn't a valid one. */ public static Skill[] getSkills(final String playerName) { try { final Skill[] skills = new Skill[SKILL_COUNT]; try (final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(new StringBuffer(BASE_URL).append(playerName).toString()).openStream()))) { for (int skill = 0; skill < SKILL_COUNT; skill++) { final String[] skillEncodedSplit = reader.readLine().split(","); skills[skill] = new Skill(Integer.parseInt(skillEncodedSplit[0]), Integer.parseInt(skillEncodedSplit[1]), Integer.parseInt(skillEncodedSplit[2])); } } return skills; } catch (final IOException e) { throw new IllegalArgumentException("Username not valid"); } } /** * Gets the specified skill of the specified player. * @param playerName The name of the player to get the skill of. * @param skillId The id of the skill to get. * @return The skill of the player. */ public static Skill getSkill(final String playerName, int skillId) { return getSkills(playerName)[skillId]; } /** * Gets all of the specified player's activities. * @param playerName The name of the player to get the activities of. * @return The activities of the player. * @throws IllegalArgumentException if the player name isn't a valid one. */ public static Activity[] getActivities(final String playerName) { try { final Activity[] activities = new Activity[ACTIVITY_COUNT]; try (final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(new StringBuffer(BASE_URL).append(playerName).toString()).openStream()))) { for (int skill = 0; skill < SKILL_COUNT; skill++) { reader.readLine(); } for (int activity = 0; activity < ACTIVITY_COUNT; activity++) { final String[] activityEncodedSplit = reader.readLine().split(","); activities[activity] = new Activity(Integer.parseInt(activityEncodedSplit[0]), Integer.parseInt(activityEncodedSplit[1])); } } return activities; } catch (final IOException e) { throw new IllegalArgumentException("Username not valid"); } } /** * Gets the specified activity of the specified player. * @param playerName The name of the player to get the activity of. * @param activityId The id of the activity to get. * @return The activity of the player. */ public static Activity getActivity(final String playerName, int activityId) { return getActivities(playerName)[activityId]; } /** * Represents a single skill. * @author Ryan Greene * */ public static class Skill { /** * The rank of the skill. */ private final int rank; /** * The level of the skill. */ private final int level; /** * The xp of the skill. */ private final int xp; /** * Constructs a new skill with the specified rank, level, and xp. * @param rank The rank of the skill. * @param level The level of the skill. * @param xp The xp of the skill. */ private Skill(final int rank, final int level, final int xp) { this.rank = rank; this.level = level; this.xp = xp; } /** * Gets the rank of the skill. * @return The rank of the skill. */ public int getRank() { return rank; } /** * Gets the level of the skill. * @return The level of the skill. */ public int getLevel() { return level; } /** * Gets the xp of the skill. * @return The xp of the skill. */ public int getXp() { return xp; } } /** * Represents a single activity. * @author Ryan Greene * */ public static class Activity { /** * The rank of the activity. */ private final int rank; /** * The score of the activity. */ private final int score; /** * Constructs a new activity with the specified rank and score. * @param rank The rank of the activity. * @param score The score of the activity. */ private Activity(final int rank, final int score) { this.rank = rank; this.score = score; } /** * Gets the rank of the activity. * @return The rank of the activity. */ public int getRank() { return rank; } /** * Gets the score of the activity. * @return The score of the activity. */ public int getScore() { return score; } } }
  8. Cyberus

    Sound

    Is there any way I can get sound effect information, and if not could you guys pretty please with a cherry on top add that as a feature?
  9. The update runs for me but I get freezing problems when trying to interact with NPCs edit: it only happens when I attempt to pickpocket the master farmer in draynor
  10. My script keeps freezing when these messages appear in the console. [WARN][Bot #1][11/11 08:35:44 PM]: Event executor is taking too long to suspend; terminating now... [WARN][Bot #1][11/11 08:35:49 PM]: Script executor is taking too long to suspend; restarting now... The script: package me.rabrg.mine; import org.osbot.rs07.api.map.Position; 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; @ScriptManifest(name = "Miner", author = "Rabrg", version = 1.0, info = "", logo = "") public class Skeleton extends Script { private final int miningAnimation = 628; private final int[] ironRocks = new int[] { 13710, 13711 }; private final Area miningArea = new Area(3302, 3285, 3303, 3284); private final Position[] pathMineToBank = new Position[] {new Position(3302, 3273, 0), new Position(3303, 3263, 0), new Position(3297, 3252, 0), new Position(3292, 3240, 0), new Position(3282, 3233, 0), new Position(3278, 3222, 0), new Position(3279, 3210, 0), new Position(3282, 3198, 0), new Position(3281, 3186, 0), new Position(3277, 3174, 0), new Position(3269, 3167, 0)}; private final Position[] pathBankToMine = new Position[] {new Position(3277, 3178, 0), new Position(3281, 3192, 0), new Position(3284, 3205, 0), new Position(3292, 3216, 0), new Position(3298, 3229, 0), new Position(3297, 3242, 0), new Position(3298, 3255, 0), new Position(3294, 3268, 0), new Position(3301, 3278, 0), new Position(3302, 3284, 0)}; @Override public int onLoop() throws InterruptedException { if (!inventory.isFull()) { if (this.myPlayer().getAnimation() != miningAnimation) { final RS2Object object = objects.closest(miningArea, ironRocks); if (object != null) { object.interact("Mine"); log("Mining rock"); } else { log("No rocks to mine"); } } else { log("Already mining"); } } if (inventory.isFull()) { localWalker.walkPath(pathMineToBank); log("Inventory full, returning to bank"); localWalker.waitUntilIdle(); bank.open(); bank.depositAll(); bank.close(); } else if (inventory.isEmpty()) { localWalker.walkPath(pathBankToMine); log("Inventory empty, returning to mine"); localWalker.waitUntilIdle(); } return random(10, 50); } }
  11. I did make it, and my example works.
  12. Price price = PriceGrabber.getPrice("Rune Axe");
  13. package org.rabrg.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; /** * Grabs prices from the Zybez RuneScape 2007 marketplace. * @author Ryan Greene * */ public final class PriceGrabber { /** * The base of the URL used to grab prices. */ private static final String BASE_URL = "http://forums.zybez.net/runescape-2007-prices/api/"; /** * Gets the price of the item with the specified name. * @param itemName The name of the item. * @return The price of the item. * @throws IOException If an IOException occurs. */ public static Price getPrice(final String itemName) throws IOException { try (final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(BASE_URL + itemName).openStream()))) { String line = reader.readLine().replaceAll("" + '"', ""); int id = Integer.parseInt(line.split("id:")[1].split(",")[0]); String name = line.split("name:")[1].split(",")[0]; String image = line.split("image:")[1].split(",")[0]; float recentHigh = Float.parseFloat(line.split("recent_high:")[1].split(",")[0]); float recentLow = Float.parseFloat(line.split("recent_low:")[1].split(",")[0]); float average = Float.parseFloat(line.split("average:")[1].split(",")[0]); int highAlch = Integer.parseInt(line.split("high_alch:")[1].split(",")[0]); return new Price(id, name, image, recentHigh, recentLow, average, highAlch); } } /** * Represents a single price of an item. * @author Ryan Greene * */ public static final class Price { /** * The id of the item. */ private final int id; /** * The name of the item. */ private final String name; /** * The image of the item. */ private final String image; /** * The recent high price of the item. */ private final float recentHigh; /** * The recent low price of the item. */ private final float recentLow; /** * The average price of the item. */ private final float average; /** * The high alch value of the item. */ private final int highAlch; /** * Constructs a new price. * @param id * @param name * @param image * @param recentHigh * @param recentLow * @param average * @param highAlch */ private Price(int id, String name, String image, float recentHigh, float recentLow, float average, int highAlch) { this.id = id; this.name = name; this.image = image; this.recentHigh = recentHigh; this.recentLow = recentLow; this.average = average; this.highAlch = highAlch; } /** * Gets the id of the item. * @return The id of the item. */ public int getId() { return id; } /** * Gets the name of the item. * @return The name of the item. */ public String getName() { return name; } /** * Gets the image of the item. * @return The image of the item. */ public String getImage() { return image; } /** * Gets the recent high price of the item. * @return The recent high price of the item. */ public float getRecentHigh() { return recentHigh; } /** * Gets the recent low price of the item. * @return The recent low price of the item. */ public float getRecentLow() { return recentLow; } /** * Gets the average price of the item. * @return The average price of the item. */ public float getAverage() { return average; } /** * Gets the high alch value of the item. * @return The high alch value of the item. */ public int getHighAlch() { return highAlch; } } }
×
×
  • Create New...