Everything posted by Nightchillz
-
Help needed with Script :D " Y NO WERK!"
2.3.44 ? I thought older versions are unsupported?
-
Help needed with Script :D " Y NO WERK!"
@ Isolate yo Iso, Soz about format I'm using java SE 1.7 Thanks for help again dude ill keep tweaking it will post a revised version tomorrow.
-
Help needed with Script :D " Y NO WERK!"
Hey guys I'm new to java, trying to create a Yew Cutter & bank in seers , any ways of improving or any mistakes in code please point out. I am eager to learn and improve I am using Oracle and this script was written on one 'Class' page in IDE. Do i need to create other pakages,enum or class pages to support this code? will this layout even work? Thanks Guys -NightChillz import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "NightChillz", info = "WC", name = "WC", version = 0, logo = "") public class WC extends Script { private Position[] path = { new Position(2710, 3462, 0), new Position(2717, 3463, 0), new Position(2719, 3469, 0), new Position(2719, 3476, 0), new Position(2718, 3483, 0), new Position(2725, 3488, 0), new Position(2724, 3493, 0), }; private static final Area TREE_AREA = new Area(2716, 3458, 2704, 3464); private static final Area BANK_AREA = new Area(2721, 3493, 2729, 3490); @Override public void onStart() { "script under development" } private enum State { CHOP, WALK_TO_BANK, BANK, WALK_TO_TREES, }; private State getState() { if (inventory.isFull() && TREE_AREA.contains(myPlayer())) return State.WALK_TO_BANK; if (!inventory.isFull() && BANK_AREA.contains(myPlayer())) return State.WALK_TO_TREES; if (inventory.isFull() && BANK_AREA.contains(myPlayer())) return State.BANK; return State.CHOP; } private boolean walkTile(Position p) throws InterruptedException { client.moveMouse(new MinimapTileDestination(bot, p), false); sleep(random(150, 250)); client.pressMouse(); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; } } @Override public boolean execute() throws java.lang.InterruptedException { switch (getState()) { case CHOP: if (!myPlayer().isAnimating()) { RS2Object tree = objects.closest(YEW); if (tree != null) { if (tree.interact("Chop-Down")) sleep(random(1000, 1500)); } } break; case WALK_TO_BANK: traversePath(path, false); sleep(random(1500, 2500)); break; case WALK_TO_TREES: traversePath(path, true); sleep(random(1500, 2500)); break; case BANK: RS2Object bankBooth = objects.closest("Bank booth"); if (bankBooth != null) { if (bankBooth.interact("Bank")) { while (!bank.isOpen()) sleep(250); bank.depositAll(); } } break; } return random(200, 700); } @Override public void onExit() { } @Override public void onPaint(Graphics2D g) { } }
-
Stop loop when smelting
private State getState() { if (inventory.isFull()) return State.Bankrun or whatever you are using link to your Banking Enum... I think? im learning
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Hey dude thanks a lot for you guide , just wondering i downloaded latest oracle for 32bit windows, my default settings differ from yours, my execution environment is different.( CDC-1.1/Foundation1.1) does this matter? should i match your settings or leave defult? thanks!
-
Snippet help plz =O
Just need help understanding what snippets are.? If i copy & paste code from forum into oracle java will it automatically use the shortcut links from OSbot API ? or do i add the code manually?
-
Need A Bond plz anyone awake?
Buying 1 bond with osrs gp plz pm me with skype name
-
▓▆▓[1.3-1.4M][CHEAPEST | FASTEST]▇「☾★ BOND SHOP!★☽」▇[150+ FB][Sponsor][PP|07]▓▆▓
Hey there, I am after 1 please. added you on skype Will give good feedback
-
Habbo Hotel Shit
If anyone has old habbo hotel accounts with stuff on them let me know! add me on skype : twotonnbomb Thanks guys
-
Habbo Hotel Shit
lolol ^^ thanks walter
-
Habbo Hotel Shit
Hcs not worth much anymore man like 1c each if you wanna donate them ill hook you up on 07 when i get membership. ^^ How much would you like for this? or trade for this
-
Habbo Hotel Shit
how many do you have?
-
Habbo Hotel Shit
Hey there, I am currentley going through a habbo hotel stage, so if anyone has old accounts with crap on them please let me know. if theres heaps of stuff maby we could do a deal for a pure rs3 account?? Let me know , any donation would be appreciated. Thanks! -Night
-
Selling Bulk MagicShortbows! Merch Them!
logs are 1200 , string what 120? in bulk so hard to sell end up swapping for items and wasting like 2 days . not even making a profit. sell on zybes.. if you can
-
Selling Bulk MagicShortbows! Merch Them!
HAHA.. your the one trying to flogg of useless shit. ,speaking of useless shit That just happened
-
100% Cpu, what do you do?
Get more fans if the temp is bothering you, even diy a common fan to give better airflow, otherwise upgrade your gear, alternativley run smaller os like linux
-
Selling Bulk MagicShortbows! Merch Them!
ripp
-
BETA v1.7.57
guy above me, try closing n restarting client and or computer sometimes works for me ? Just logged in for the first time in 2 days good job team. To evreyone complaining about scripts ---> gotta wait for scripts to be updated to match the new client so chill
-
Sxmasterfarmer works but no bank?
Masterfamer scripts works great up until banking time, deposits all the seeds then clicks onto bank floor and back to bank teller , so i have to manually pause it take food and walk back to npc and press play. Still a very cool script. any info would be appreciated , thanks