Everything posted by Jammer
- FrostMiner
- Restless Ghost
-
Price Check lvl 50 obby tank & lvl 59 gmauler
obby 13m, gmauler dunno
-
Juggles AIO Shop Buyer
Has anyone else experienced problems with hopping worlds, or is it just me?
-
Account Trading On OSBot
It would just hurt the forum.
-
Taking a break
Can't Believe you chose studies before xp gains, but gl anyway!
-
Price Check on a 2 Def pure accident ):
Yh, 5m, do some quests
-
Explv's Walker
Really nice script, it has saved a lot of time.
-
i need ur help
Focus less on gains and start focusing on your xp gains.
- china
-
1000 Post Count
congratulations, that is such an achievment!
-
Explv's Dank GUI Tutorial
Thanks for a well written tutorial
-
Juggles AIO Shop Buyer
Sometimes when trying to hop worlds, it gets stuck at a 500 skill level world and just holds the cursor there.
-
Explv's AIO [13 skill AIO in 1 script]
To start off with i have to say that this is an awesome script. At the moment i have found 3 problems though. 1. It can't fish using a harpoon. 2. It mines one clay and then it goes to the bank. 3. It can't get more ore from the bank when smithing. The same happens now that i tried to mine coal, it banks after mining one ore.
-
Won't run
It works perfect now, I will look in to the conditional sleep when i get home, thanks again!
-
Won't run
Thanks for the advice, I will do some changes.
-
Won't run
I finished my script but when I try to run it, it simply won't run. In eclipse everything looks fine, but I guess there is some problem with the code that I can't understand. package miner; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Mex", info = "mi", logo = "mx", name = "Miner", version = 0) public class miner extends Script { Entity iron = objects.closest(7488, 7455); Entity tin = objects.closest(7486, 7485); Entity bankbooth = objects.closest(7409, 7478); final Area BANK_AREA = new Area(3250, 3423, 3257, 3420); final Area MINING_AREA = new Area(3282, 3371, 3290, 3361); Position player = myPlayer().getPosition(); public void onStart() { log("Script started"); } private enum State { MINEIRON, BANK, WALKBANK, WALKMINE, MINETIN, WAIT } private State getState() { if (MINING_AREA.contains(player) && skills.getStatic(Skill.MINING) >= 15) return State.MINEIRON; if (MINING_AREA.contains(player) && skills.getStatic(Skill.MINING) < 15) return State.MINETIN; if (getInventory().isFull()&& !BANK_AREA.contains(player)) return State.WALKBANK; if (!getInventory().isFull() && !MINING_AREA.contains(player)) return State.WALKMINE; if (BANK_AREA.contains(player)&& getInventory().isFull()) return State.BANK; return State.WAIT; } @@Override public int onLoop() throws InterruptedException { switch (getState()) { case MINETIN: if (tin != null && !myPlayer().isAnimating() && !myPlayer().isMoving()) { tin.interact("Mine"); sleep(random(300, 600)); } break; case MINEIRON: if (iron != null && !myPlayer().isAnimating() && !myPlayer().isMoving()) { iron.interact("Mine"); sleep(random(300, 600)); } break; case BANK: if (getBank().isOpen()) { bank.depositAllExcept("Bronze pickaxe", "Iron pickaxe", "Black pickaxe", "Mithril pickaxe", "Adamant pickaxe", "Rune pickaxe"); } else { if (bankbooth != null) { if (bankbooth.isVisible()) { bankbooth.interact("Bank"); sleep(random(1500, 2500)); } } } break; case WALKBANK: walking.walk(BANK_AREA); break; case WALKMINE: walking.walk(MINING_AREA); break; } return 0; } public void onExit() { log("Thanks for using this script"); } }
- States
-
States
Hello guys! I've recently started getting in to scripting and im trying to make a script that mines Tin untill 15 mining and then starts mining Iron. I ran in to a problem where it says "unreachable code" when i added Another state. I know the code is horrible, but if you can explain what im doing wrong, I would be thankfull. private State getState() { if(MINING_AREA.contains(player) && skills.getStatic(Skill.MINING) >= 15); return State.MINEIRON; // I get the error here if(MINING_AREA.contains(player) && skills.getStatic(Skill.MINING) <15); return State.MINETIN; if(getInventory().isFull()) return State.WALKBANK; if(!getInventory().isFull() && !MINING_AREA.contains(player)); return State.WALKMINE; if(BANK_AREA.contains(player)) return State.BANK; return State.WAIT; }