Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Collection of snippets


    LogicSoup

    Recommended Posts

    Thought I would leave this here for new and current scripts as a small resource

    public enum Thieving { */some addons to Nezz enum source from - script dump - enjoy the extras*/
    
    	MAN("Man", "Pickpocket"),
    	WOMAN("Woman", "Pickpocket"),
    	MASTER_FARMER("Master Farmer", "Pickpocket"),
    	FARMER("Farmer", "Pickpocket"),
    	ARDOUGNE_KNIGHT("Knight of Ardougne", "Pickpocket"),
    	GUARD("Guard", "Pickpocket"),
    	FALADOR_KNIGHT("White Knight", "Pickpocket"),
    	YANILLE_WATCHMEN("Yanille watchman", "Pickpocket"),
    	GNOME("Gnome", "Pickpocket"),
    	HERO("Hero", "Pickpocket"),
    	ELF("Elf", "Pickpocket"),
    	PALADIN("Paladin", "Pickpocket"),
    	VEG_STALL("Vegetable stall", "Steal-from", "Onion", ""),
    	TEA_STALL("Tea stall", "Steal-from", "Cup of tea"),
    	SILK_STALL("Silk stall", "Steal-from", "Silk"),
    	BAKERS_STALL("Baker's stall", "Steal-from"),
    	MONKEY_FOOD_STALL("Monkey Food stall", "Steal-from", "Banana"),
    	MONKEY_GENERAL_STALL("Monkey General stall", "Steal-from", "Pot", "Hammer", "Tinderbox"),
    	WINE_STALL("Wine stall", "Steal-from"),
    	FUR_STALL("Fur stall", "Steal-from"),
    	FISH_STALL("Fish stall", "Steal-from"),
    	GEM_STALL("Gem Stall", "Steal-from"),
    	;
    
    	private String entity;
    	private String action;
    	private String[] dropItems;
    
    	Thieving(String entity, String action, String...dropItems){
    		this.entity = entity;
    		this.action = action;
    		this.dropItems = dropItems;
    	}
    
    	public String getName(){
    		return this.entity;
    	}
    	public String getAction(){
    		return this.action;
    	}
    	public String[] getDropItems(){
    		return this.dropItems;
    	}
    
    } 
    
    public enum Armour {
        BRONZE("Bronze", 1),
        IRON("Iron", 1),
        STEEL("Steel", 5),
        BLACK("Black", 10),
        MITHRIL("Mithril", 20),
        ADAMANT("Adamant", 30),
        RUNE("Rune", 40),
        DRAGON("Dragon", 60);
    
        private String name;
        private int level;
    
        Armour(String name, int level) {
            this.name = name;
            this.level = level;
        }
    
        public int getLevel() {
            return level;
        }
    
        public String getFullHelm() {
            return name + " full helm";
        }
    
        public String getMedHelm() {
            return name + " med helm";
        }
    
        public String getPlatebody() {
            return name + " platebody";
        }
    
        public String getChainbody() {
            return name + " chainbody";
        }
    
        public String getPlatelegs() {
            return name + " platelegs";
        }
    
        public String getBoots() {
            return name + " boots";
        }
    
        public String getKiteshield() {
            return name + " kiteshield";
        }
    
        public String getShield() {
            return name + " sq shield";
        }
    }
    
    public enum Container {
    
        JUG("Jug"),
        BUCKET("Bucket"),
        VIAL("Vial");
    
        String name;
    
        private Container(String name) {
            this.name = name;
        }
    
        public String getName() {
            return name;
        }
    }
    
    public enum City {
    
        LUMBRIDGE(3222, 3218, 0),
        AL_KHARID(3293, 3174, 0),
        DRAYNOR(3093, 3244, 0),
        PORT_SARIM(3023, 3208, 0),
        KARAMJA(2948, 3147, 0),
        CRANDOR(2851, 3238, 0),
        RIMMINGTON(2957, 3214, 0),
        VARROCK(3210, 3424, 0),
        DIGSITE(3354, 3402, 0),
        FALADOR(2964, 3378, 0),
        GRAND_EXCHANGE(3161, 3486, 0),
        BARBARIAN_VILLAGE(3082, 3420, 0),
        EDGEVILLE(3093, 3493, 0),
        BURTHORPE(2926, 3559, 0),
        CATHERBY(2813, 3447, 0),
        CAMELOT(2757, 3477, 0),
        SEERS_VILLAGE(2708, 3492, 0),
        WEST_ARDOUGNE(2529, 3307, 0),
        EAST_ARDOUGNE(2662, 3305, 0),
        TREE_GNOME_STRONGHOLD(2461, 3443, 0),
        POLLNIVNEACH(3359, 2910, 0),
        SOPHANEM(3274, 2784, 0),
        CANIFIS(3506, 3496, 0),
        PORT_PHASMATYS(3687, 3502, 0),
        MORT_TON(3489, 3288, 0),
        TZHAAR(2480, 5175, -2),
        APE_ATOLL(2755, 2784, 0);
    
        private int x, y, z;
    
        City(int x, int y, int z) {
            this.x = x;
            this.y = y;
            this.z = z;
        }
    
        public Position construct() {
            return new Tile(x, y, z);
        }
    }
    
    public enum Equipment {
        BRONZE("Bronze", 1),
        IRON("Iron", 1),
        STEEL("Steel", 5),
        BLACK("Black", 10),
        MITHRIL("Mithril", 20),
        ADAMANT("Adamant", 30),
        RUNE("Rune", 40),
        DRAGON("Dragon", 60);
    
        private String name;
        private int level;
    
        Equipment(String name, int level) {
            this.name = name;
            this.level = level;
        }
    
        public int getLevel() {
            return level;
        }
    
        public String getFullHelm() {
            return name + " full helm";
        }
    
        public String getMedHelm() {
            return name + " med helm";
        }
    
        public String getPlatebody() {
            return name + " platebody";
        }
    
        public String getChainbody() {
            return name + " chainbody";
        }
    
        public String getPlatelegs() {
            return name + " platelegs";
        }
    
        public String getBoots() {
            return name + " boots";
        }
    
        public String getKiteshield() {
            return name + " kiteshield";
        }
    
        public String getShield() {
            return name + " sq shield";
        }
    
        public String getAxe() {
            return name + " axe";
        }
    
        public String getPickaxe() {
            return name + " pickaxe";
        }
    
    } 
    
    
    public enum FishingEquipment {
    
        SMALL_NET("Small fishing net"),
        LARGE_NET("Big fishing net"),
        FISHING_ROD("Fishing rod"),
        FLY_FISHING_ROD("Fly fishing rod"),
        FISHING_BAIT("Fishing bait"),
        FEATHERS("Feather"),
        LOBSTER_POT("Lobster pot"),
        HARPOON("Harpoon"),
        BARBARIAN_ROD("Barbarian rod");
    
        String name;
    
        private FishingEquipment(String name) {
            this.name = name;
        }
    
        public String getName() {
            return name;
        }
    } 
    
    public enum FishingType {
        NET_BAIT("Net", "Bait"),
        LURE_BAIT("Lure", "Bait"),
        CAGE_HARPOON("Cage", "Harpoon"),
        NET_HARPOON("Net", "Harpoon"),
        HARPOON_NET("Harpoon", "Net"),
        USE_ROD("Use-rod");
    
        private final String[] options;
    
        FishingType(String... options) {
            this.options = options;
        }
    
        public String[] getOptions() {
            return options;
        }
    }
     
    public enum Food {
        NONE("None"),
        PEACH("Peach"),
        KEBAB("Kebab"),
        SHRIMP("Shrimp"),
        ANCHOVIES("Anchovies"),
        CHICKEN("Chicken"),
        MEAT("Cooked meat"),
        BREAD("Bread"),
        HERRING("Herring"),
        MACKEREL("Mackerel"),
        TROUT("Trout"),
        SALMON("Salmon"),
        TUNA("Tuna"),
        CAKE("Cake"),
        TWO_THIRDS_CAKE("2/3 cake"),
        SLICE_OF_CAKE("Slice of cake"),
        LOBSTER("Lobster"),
        SWORDFISH("Swordfish"),
        MONKFISH("Monkfish"),
        SHARK("Shark"),
        MANTA_RAY("Manta ray"),
        TUNA_POTATO("Tuna potato");
        private String name;
    
        Food(String name) {
            this.name = name;
        }
    
        public String getName() {
            return name;
        }
    
        @Override
        public String toString() {
            return name;
        }
    } 
    
    public enum QuestsAPI { /*Thanks dogerina*/
        TUTORIAL_ISLAND(406, true),
        ABYSS_SUBQUEST(492),
        BLACK_KNIGHTS_FORTRESS(130, true), // 4
        COOKS_ASSISTANT(29, true), // 2
        DEMON_SLAYER(222, true), // 2561 3
        DORICS_QUEST(31, true), // 199
        DRAGON_SLAYER(176, true), // 10
        ERNEST_THE_CHICKEN(32, true), // 3
        GOBLIN_DIPLOMACY(62, true), // 6
        IMP_CATCHER(160, true), // 2
        THE_KNIGHTS_SWORD(122, true), // 7
        PIRATES_TREASURE(160, true), // 2
        PRINCE_ALI_RESCUE(273, true), // 110
        THE_RESTLESS_GHOST(107, true), // 5
        ROMEO_AND_JULIET(144, true),
        RUNE_MYSTERIES(63, true), // 6
        SHEAP_SHEARER(179, true), //
        SHIELD_OF_ARRAV(145, true), //logged 146 too, might be different for gang
        VAMPIRE_SLAYER(178, true),
        WITCHS_POTION(67, true),
        ANIMAL_MAGNETISM(939),
        ANOTHER_SLICE_OF_HAM(997),
        BETWEEN_A_ROCK(433),
        BIG_CHOMPY_BIRD_HUNTING(293),
        BIOHAZARD(68),
        CABIN_FEVER(655),
        CLOCK_TOWER(10),
        COLD_WAR(968),
        CONTACT(964),
        CREATURE_OF_FENKENSTRAIN(399),
        DARKNESS_OF_HALLOWVALE(869),
        DEATH_PLATEAU(314),
        DEATH_TO_THE_DORGESHUUN(794),
        DESERT_TREASURE(440),
        DEVIOUS_MINDS(622),
        THE_DIGSITE(131),
        DREAM_MENTOR(1003),
        DRUIDIC_RITUAL(80),
        DWARF_CANNON(69), //wrong
        EADGARS_RUSE(335),
        EAGLES_PEAK(934),
        ELEMENTAL_WORKSHOP_I(299),
        ELEMENTAL_WORKSHOP_II(896),
        ENAKHRAS_LAMENT(641),
        ENLIGHTENTED_JOURNEY(912),
        THE_EYES_OF_GLOUPHRIE(844),
        FAIRYTALE_I(671), //10, 20,
        FAIRYTALE_II(810),
        FAMILY_CREST(148),
        THE_FEUD(435),
        FIGHT_ARENA(17),
        FISHING_CONTEST(11),
        FORGETTABLE_TALE(521),
        THE_FREMMENIK_ISLES(970),
        THE_FREMMENIK_TRIALS(347),
        GARDEN_OF_TRANQUILITY(188),
        GERTRUDES_CAT(180),
        GHOSTS_AHOY(408),
        THE_GIANT_DWARF(482),
        THE_GOLEM(437),
        THE_GRAND_TREE(150),
        THE_GREAT_BRAIN_ROBBERY(980),
        GRIM_TALES(1016),
        THE_HAND_IN_THE_SAND(635),
        HAUNTED_MINE(382),
        HAZEEL_CULT(223),
        HEROES_QUEST(188),
        HOLY_GRAIL(5),
        HORROR_FROM_THE_DEEP(351),
        ICTHLARINS_LITTLE_HELPER(445),
        IN_AID_OF_THE_MYREQUE(705),
        IN_SEARCH_OF_THE_MYREQUE(387),
        JUNGLE_POTION(175),
        KINGS_RANSOM(1049),
        LEGENDS_QUEST(139),
        LOST_CITY(147),
        THE_LOST_TRIBE(465),
        LUNAR_DIPLOMACY(823),
        MAKING_HISTORY(604),
        MERLINS_CRYSTAL(14),
        MONKS_FRIEND(30),
        MONKEY_MADNESS(365),
        MOUNTAIN_DAUGHTER(423),
        MOURNINGS_END_PART_I(517),
        MOURNINGS_END_PART_II(574),
        MURDER_MYSTERY(192),
        MY_ARMS_BIG_ADVENTURE(905),
        NATURE_SPIRIT(307),
        OBSERVATORY_QUEST(112),
        OLAFS_QUEST(994),
        ONE_SMALL_FAVOUR(416),
        PLAGUE_CITY(165),
        PRIEST_IN_PERIL(302),
        RAG_AND_BONE_MAN(714),
        RAT_CATCHERS(607),
        RECIPE_FOR_DISASTER(69),//will need to get the index for each subquest
        RECRUITMENT_DRIVE(496),
        REGICIDE(328),
        ROVING_ELVES(402),
        ROYAL_TROUBLE(730),
        RUM_DEAL(600),
        SCORPION_CATCHER(76),
        SEA_SLUG(159),
        SHADES_OF_MORTTON(339),
        SHADOW_OF_THE_STORM(602),
        SHEEP_HERDER(60),
        SHILO_VILLAGE(116),
        THE_SLUG_MENACE(874),
        A_SOULS_BANE(709),
        SPIRITS_OF_THE_ELID(616),
        SWAN_SONG(723),
        TAI_BWO_WANNAI_TRIO(320),
        A_TAIL_OF_TWO_CATS(568),
        TEARS_OF_GUTHIX(499),
        TEMPLE_OF_IKOV(26),
        THRONE_OF_MISCELLANIA(359),
        THE_TOURIST_TRAP(197),
        TOWER_OF_LIFE(977),
        TREE_GNOME_VILLAGE(111),
        TRIBAL_TOTEM(200),
        TROLL_ROMANCE(385),
        TROLL_STRONGHOLD(317),
        UNDERGROUND_PASS(161), //logged 161 and 162
        WANTED(571),
        WATCHTOWER(212),
        WATERFALL_QUEST(65),
        WHAT_LIES_BELOW(499),
        WITCHS_HOUSE(226),
        ZOGRE_FLESH_EATERS(455);
    
        QuestsAPI(int config) {
    
        }
    
        QuestsAPI(int config, boolean isF2P) {
    
        }
    } 
    
    public class Rune {
    
    	public static final int FIRE = 554;
    	public static final int WATER = 555;
    	public static final int AIR = 556;
    	public static final int EARTH = 557;
    	public static final int MIND = 558;
    	public static final int BODY = 559;
    	public static final int DEATH = 560;
    	public static final int NATURE = 561;
    	public static final int CHAOS = 562;
    	public static final int LAW = 563;
    	public static final int COSMIC = 564;
    	public static final int BLOOD = 565;
    	public static final int SOUL = 566;
    	public static final int STEAM = 4694;
    	public static final int MIST = 4695;
    	public static final int DUST = 4696;
    	public static final int SMOKE = 4697;
    	public static final int MUD = 4698;
    	public static final int LAVA = 4699;
    	public static final int ASTRAL = 9075;
    
    } 
    
    public enum StrongholdQuestion {
        PHISHER("A website claims that they can make me a player moderator if I give them my password. What should I do?", "Don't tell them anything and inform Jagex through the game website"),
        STAY_LOGGED_IN("Can I leave my account logged in while I'm out of the room?", "No"),
        COOL_ADDON("My friend uses this great add-on program he got from a website, should I?", "No, it might steal my password"),
        LEND_ACCOUNT("My friend asks me for my password so that he can do a difficult quest for me", "Don't give him my password"),
        RECOVERY_QUESTIONS("Recovery answers should be..", "Memorable"),
        RECOVER_QUESTIONS_USED_FOR("What are your recovery questions used for?", "To recover my account if i don't remember my password"),
        BANK_PIN("What is a good example of a Bank PIN?", "The birthday of a famous person or event"),
        FREE_MEMBERS("What do you do if someone asks you for your password or recoveries to make you a member for free?", "Don't tell them anything and click the Report Abuse button"),
        MOD_PLS("What do you do if someone asks you for your password or recoveries to make you a player moderator?", "Don't tell them anything and click the Report Abuse button"),
        LOTTERY("What do you do if someone tells you that you have won the RuneScape lottery and asks you for your password and recoveries to award your prize?", "Don't tell them anything and click the Report Abuse button"),
        KEYLOGGER("What do I do if I think I have a keylogger or a virus?", "Virus scan my computer then change my password"),
        DETAILS_PLS("What do I do if a moderator asks me for my account details?", "Politely tell them no then use the report abuse button"),
        DEY_GOT_MY_RECOVS("What should I do if I think someone knows my recoveries?", "Use the recover a lost password section"),
        CHEATS("Where can I find cheats for RuneScape?", "Nowhere"),
        ENTER_PASSWORD("Where should I enter my password for RuneScape?", "Only on the RuneScape website"),
        BLOCK_PIN("Will Jagex block me for saying my PIN ingame?", "No"),
        GIVE_PASSWORD_PLS("Who can I give my password to?", "Nobody"),
        CHANGE_PIN("Who can I give my password to?", "Nobody"),
        WHY_RECOVER("Why do I need to type in recovery questions?", "To help me recover my password if I forget it or if it is stolen"),
        ;
    
        private final String question;
    
        private final String answer;
    
        StrongholdQuestion(String question, String answer) {
            this.question = question;
            this.answer= answer;
        }
    
        public String getAnswer() {
            return answer;
        }
    
        public String getQuestion() {
            return question;
        }
    } 
    
    public enum Supply {
        RAW_SHRIMP("Raw shrimps","Shrimps"),
        RAW_KARAMBWANJI("Raw karambwanji", "Karambwanji"),
        RAW_SARDINE("Raw sardine", "Sardine"),
        ;
    
        private String raw, cooked;
    
        Supply(String raw, String cooked) {
            this.raw = raw;
            this.cooked = cooked;
        }
    
        public String getRaw() {
            return raw;
        }
    
        public String getCooked() {
            return cooked;
        }
    } 
    
    public enum Tanner{
    
        LEATHER("Cowhide", 324, 148, "Leather"),
        HARD_LEATHER("Cowhide", 324, 149, "Hard leather"),
        GREEN_LEATHER("Green dragonhide", 324, 152, "Green dragon leather"),
        RED_LEATHER("Red dragonhide", 324, 154, "Red dragon leather"),
        BLUE_LEATHER("Blue dragonhide", 324, 153, "Blue dragon leather"),
        BLACK_LEATHER("Black dragonhide", 324, 107, "Black dragon leather");
    
        //(324, 148) leather, (324, 149) hard leather, (324, 152) green, (324, 153) blue, (324, 154) red, (324, 107) black
        private int parent, child;
        private String supply, finishedProduct;
    
        Tanner(String supplies, int parent, int child, String finishedProduct) {
            this.supply = supplies;
            this.parent = parent;
            this.child = child;
            this.finishedProduct = finishedProduct;
        }
    
        public int getParent() {
            return parent;
        }
    
        public int getChild() {
            return child;
        }
    
        public String getSupply() {
            return supply;
        }
    
        public String getFinishedProduct() {
            return finishedProduct;
        }
    } 
    
    public enum Tree {
        REGULAR("Tree"),
        DEAD("Dead tree"),
        EVERGREEN("Evergreen"),
        ACHEY("Achey tree"),
        OAK("Oak"),
        WILLOW("Willow"),
        MAPLE("Maple"),
        TEAK("Teak"),
        YEW("Yew"),
        MAGIC("Magic");
        private String name;
    
        Tree(String name) {
            this.name = name;
        }
    
        String format(String str) {
            char[] stringArray = str.trim().toCharArray();
            stringArray[0] = Character.toUpperCase(stringArray[0]);
            return new String(stringArray);
        }
    
        String getName() {
            return name;
        }
    
        public String getTreeName() {
            return this == MAPLE ? this.getName() + " tree" : this.getName();
        }
    
        public String getLogName() {
            return this == REGULAR || this == DEAD || this == EVERGREEN ? "Logs" : this.getName() + " logs";
        }
    
        public String getShortbowName(boolean strung) {
            return format(getName() + " shortbow" + (strung ? " (u)" : ""));
        }
    
        public String getLongbowName(boolean strung) {
            return format(getName() + " longbow" + (strung ? " (u)" : ""));
        }
    } 
    
    /**
     * Created by Mad on 5/29/16.
     */
    public enum FishSpot {
    
        
        LUMBRIDGE_SWAMP(new Position(3202, 2322, 0), "Net",
                "Small fishing net"),
    
        LUMBRIDGE_RIVER(new Position(3202, 3432, 0), "Bait",
                "Fishing rod", "Fishing bait");
    
        private final Position location;
        private final String action;
    
        private final String[] requiredEquipment;
    
        FishSpot(Position location, String action, String ... requiredEquipment)
        {
            this.location = location;
            this.action = action;
            this.requiredEquipment = requiredEquipment;
        }
    
        public Position getLocation()
        {
            return location;
        }
    
        public String getAction()
        {
            return action;
        }
    
        public String[] getRequiredEquipment()
        {
            return requiredEquipment;
        }
    } 
    
    public enum Rock {
    
        CLAY(6705),
        COPPER(4645),
        TIN(53),
        IRON(2576),
        SILVER(74),
        COAL(10508),
        GOLD(8885),
        MITHRIL(-22239),
        ADAMANTITE(21662),
        RUNITE(-31437);
    
        public final short COLOUR;
    
        Rock(final int COLOUR) {
    
            this.COLOUR = (short) COLOUR;
        }
    }
    
    public enum Ore {
      RUNE_ESSENCE("Rune essence", 2491, 1),
      PURE_ESSENCE("Pure essence", 2491, 1),
      CLAY("Clay", 2109, 1),
      COPPER("Copper", 7484, 1),
      TIN("Tin", 2095, 1),
      IRON("Iron", 2093, 15),
      SILVER("Silver", 2101, 20),
      COAL("Coal", 2097, 30),
      GOLD("Gold", 2099, 40),
      MITHRIL("Mithril", 2103, 55),
      ADAMANT("Adamant", 2105, 70),
      RUNITE("Runite", 2107, 85);
      
      String name;
      int rockId, level;
      
      Ore(String name, int rockId, int level) {
        this.name = name;
        this.rockId = rockId;
        this.level = level;
      }
    
    
      public String getName() {
        return this.name + " ore";
      }
      
      public int getRockId() {
        return this.rockId;
      }
      
      public int getLevel() {
        return this.level;
      }
    }
    
    
    public enum Altars {
    
        AIR_ALTAR("Rune essence", "Air rune", new Tile(2986, 3294,0), new Tile(3013, 3356, 0), new Area(2839, 4840, 2849, 4827), new Area(3009, 3358, 3021, 3353), new Area(2970, 3379, 3022, 3275)),
        MIND_ALTAR("Rune essence", "Mind rune", new Tile(2980, 3513, 0), new Tile(2945, 3370, 0), new Area(2771, 4852, 2798, 4823), new Area(2940, 3375, 2952, 3358), new Area(2922, 3525, 3037, 3308)),
        WATER_ALTAR("Rune essence", "Water rune", new Tile(3183, 3166, 0), new Tile(3094, 3244, 0), new Area(2706, 4842, 2730, 4828), new Area(3088, 3246, 3097, 3240), new Area(3058, 3278, 3280, 3119)),
        EARTH_ALTAR("Rune essence", "Earth rune", new Tile(3305, 3472, 0), new Tile(3253, 3421, 0), new Area(2644, 4851, 2663, 4824), new Area(3248, 3427, 3259, 3414), new Area(3225, 3406, 3318, 3500)),
        FIRE_ALTAR("Rune essence", "Fire rune", new Tile(3312, 3253, 0), new Tile(3382, 3270, 0), new Area(2572, 4852, 2596, 4827), new Area(3375, 3275, 3388, 3266), new Area(3267, 3302, 3412, 3154)),
        BODY_ALTAR("Rune essence", "Body rune", new Tile(3055, 3447, 0), new Tile(3093, 3490, 0), new Area(2511, 4847, 2529, 4829), new Area(3090, 3499, 3098, 3488), new Area(3039, 3521, 3127, 3408)),
        COSMIC_ALTAR("Pure essence", "Cosmic rune", new Tile(2408, 4379, 0), new Tile(2386, 4458, 0), new Area(2119, 4856, 2164, 4811), new Area(2382, 4461, 2390, 4453), new Area(2382, 4461, 2424, 4369)),
        //CHAOS_ALTAR("Pure essence", "Chaos rune", new Tile(3062, 3590, 0), new Tile(3094, 3497, 0), new Area(), new Area(3090, 3499, 3098, 3488), new Area(3114, 3455, 2959, 3621)),
        ASTRAL_ALTAR("Pure essence", "Astral rune", new Tile(2156, 3865, 0), new Tile(2100, 3918, 0), new Area(2150, 3871, 2164, 3859), new Area(2097, 3921, 2104, 3917), new Area(2094, 3924, 2170, 3845))
        ;
        private String essence, crafted;
        private Tile ruinsPos, bankPos;
        private Area altarZone, bankZone, pathingZone;
    
        Altars(String essence, String craftedRune, Tile ruinsPos, Tile bankPos, Area altarZone, Area bankZone, Area pathingZone) {
            this.essence = essence;
            this.crafted = craftedRune;
            this.ruinsPos = ruinsPos;
            this.bankPos = bankPos;
            this.altarZone = altarZone;
            this.bankZone = bankZone;
            this.pathingZone = pathingZone;
        }
    
        public String getEssence() {
            return essence;
        }
    
        public String getCrafted() {
            return crafted;
        }
    
        public Tile getRuinsPos() {
            return ruinsPos;
        }
    
        public Tile getBankPos() {
            return bankPos;
        }
    
        public Area getAltarZone() {
            return altarZone;
        }
    
        public Area getBankZone() {
            return bankZone;
        }
    
        public Area getPathingZone() {
            return pathingZone;
        }
    
    }
    
    public class ExtendedArea extends Area {
        public ExtendedArea(int lx, int by, int rx, int ty, int z) {
            super(lx, by, rx, ty);
            this.setZ(z);
        }
    }
    
    /*Author: Botre*/
    public enum SmeltingBar {
    
    	BRONZE("Bronze bar", 1),
    	BLURITE("Blurite bar", 8),
    	IRON("Iron bar", 15),
    	SILVER("Silver bar", 20),
    	STEEL("Steel bar", 30),
    	GOLD("Gold bar", 40),
    	MITHRIL("Mithril bar", 50),
    	ADAMANTITE("Adamantite bar", 70),
    	RUNITE("Runite bar", 85);
    	
    	private static final Map<SmeltingBar, Map<Ore, Integer>> ORE_RECIPES = Collections.unmodifiableMap(initOres());
    	
    	private String name;
    	private int requiredSmithingLevel;
    	
    	SmeltingBar(String name, int requiredSmithingLevel) {
    		this.name = name;
    		this.requiredSmithingLevel = requiredSmithingLevel;
    	}
    	
    	public String getName() {
    		return name;
    	}
    	
    	public int getRequiredSmithingLevel() {
    		return requiredSmithingLevel;
    	}
    	
    	public Map<Ore, Integer> getOres() {
    		return ORE_RECIPES.get(this);
    	}
    	
    	@Override
    	public String toString() {
    		return getName();
    	}
    
    	private static Map<SmeltingBar, Map<Ore, Integer>> initOres() {
    		Map<SmeltingBar, Map<Ore, Integer>> map = new EnumMap<>(SmeltingBar.class);
    		for (SmeltingBar bar : values()) {
    			Map<Ore, Integer> ores = new EnumMap<>(Ore.class);
    			switch (bar) {
    			case BRONZE:
    				ores.put(Ore.COPPER, 1);
    				ores.put(Ore.TIN, 1);
    				break;
    			case BLURITE:
    				ores.put(Ore.BLURITE, 1);
    				break;
    			case IRON:
    				ores.put(Ore.IRON, 1);
    				break;
    			case SILVER:
    				ores.put(Ore.SILVER, 1);
    				break;
    			case STEEL:
    				ores.put(Ore.IRON, 1);
    				ores.put(Ore.COAL, 2);
    				break;
    			case GOLD:
    				ores.put(Ore.GOLD, 1);
    				break;
    			case MITHRIL:
    				ores.put(Ore.MITHRIL, 1);
    				ores.put(Ore.COAL, 4);
    				break;
    			case ADAMANTITE:
    				ores.put(Ore.ADAMANTITE, 1);
    				ores.put(Ore.COAL, 6);
    				break;
    			case RUNITE:
    				ores.put(Ore.RUNITE, 1);
    				ores.put(Ore.COAL, 8);
    				break;
    			}
    			map.put(bar, ores);
    		}
    		return map;
    	}
    
    	
    }
    
    /**
     * In-game (parent, child)  widgets for the item smithing interface
     */
    public enum SmithingBar {
        DAGGER(312, 2),
        AXE(312, 7),
        CHAIN_BODY(312, 12),
        MEDIUM_HELM(312, 17),
        DART_TIPS(312, 23),
        SWORD(312, 3),
        MACE(312, 8),
        PLATELEGS(312, 13),
        FULL_HELM(312, 18),
        ARROW_TIPS(312, 24),
        SCIMITAR(312, 4),
        WARHAMMER(312, 9),
        PLATE_SKIRT(312, 14),
        SQUARE_SHIELD(312, 19),
        KNIVES(312, 25),
        LONG_SWORD(312, 5),
        BATTLE_AXE(312, 10),
        PLATE_BODY(312, 15),
        KITE_SHIELD(312, 20),
        TWO_HAND_SWORD(312, 6),
        NAILS(312, 16)
        ;
    
        private int parent, child;
    
    
        SmithingBar(int parent, int child) {
            this.parent = parent;
            this.child = child;
        }
    
        public int getParent() {
            return parent;
        }
    
        public int getChild() {
            return child;
        }
    
    }
    
    
    Link to comment
    Share on other sites

    Thank you so much for this! Will definitely save me some time when I have to find the player settings when making a questing script! :)

    Link to comment
    Share on other sites

    This is super useful stuff!

     

    Thanks for posting

     

     

    Thank you so much for this! Will definitely save me some time when I have to find the player settings when making a questing script! :)

     

     

    No problem

    Link to comment
    Share on other sites

    • 2 weeks later...

    he quit for osbot

     

     

    i see

    I resigned due to the fact of being pressured off-site because I was scripting here. It isn't allowed for some reason.

    Link to comment
    Share on other sites

    I resigned due to the fact of being pressured off-site because I was scripting here. It isn't allowed for some reason.

    It's because mald is obnoxious as all hell

    Link to comment
    Share on other sites

    It's because mald is obnoxious as all hell

    I see that you have resigned from Sctiper+ too. That's a shame aswell :(

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.