Everything posted by Czar
-
Need Help With First Script
Lool, nah we improved it
-
New To Scripting, Need Help!
You made it abstract, remove the abstract public abstract class Woodcutter extends Script { and make it public class Woodcutter extends Script { EDIT: Pm me if you need more help. Glad to help
-
Perfect Experiments
Only http://osbot.org/forum/user/18499-ericthecmh/ can verify it and he's not online atm
-
CzarRangingGuild
yep Oh well it will be here soon
-
10 Fast Fingers.
YESSSSSS fk it, enough typing for today lmao worst words to type: American and Indian omg. had a couple of those lol killed my score EDIT: beat that 151, after around ~10 tests
- 10 Fast Fingers.
-
Need Help With First Script
Does it work well, if not just pm me.
-
Perfect Experiments
Oo thanks mate, I didn't know.
-
Need Help With First Script
import java.awt.Graphics2D; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.ui.EquipmentSlot; @ScriptManifest(author = "edoggydogg", info = "Welcome to my very first script!", logo = "", name = "eIron", version = 0.1) public class main extends Script { Position GOODAREA = new Position(random(3683, 3686), random(3478, 3480), 0); Position BANKAREA = new Position(random(3687, 3690), random(3466, 3469), 0); // code used on start public void onStart() { log("Welcome to eIron."); log("Please begin the script in Port P. Bank"); log("If any problems occur, please report them to me."); camera.toTop(); camera.moveYaw(random(1, 5)); } private enum state { BADAREA, GOODAREA, SMELT, WAIT, BANKAREA, BANK }; public state getState() { if (inventory.isEmpty()) return state.BANK; if (inventory.onlyContains(2351)) return state.BANK; if (inventory.onlyContains(440)) return state.SMELT; return state.BANK; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case SMELT: localWalker.walk(GOODAREA); if (inventory.onlyContains(440)) { objects.closest(24009).interact("Smelt"); sleep(random(1000, 2000)); mouse.move(random(130, 170), random(400, 440)); mouse.click(random(130, 170), random(400, 440), true); sleep(random(1000, 2000)); mouse.move(random(130, 170), random(471, 480)); mouse.click(random(130, 170), random(471, 480), false); sleep(random(1000, 2000)); keyboard.typeString("99", true); mouse.moveOutsideScreen(); sleep(random(85000, 88000)); } break; case BANK: localWalker.walk(BANKAREA); if (inventory.isEmpty()) { if (equipment.isWearingItem(EquipmentSlot.RING)) { objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); } else { // ADDED THIS @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@22 objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.withdraw(2568, 1); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); equipment.equip(EquipmentSlot.RING, 2568); sleep(random(1500, 2000)); } } else { if (equipment.isWearingItem(EquipmentSlot.RING)) { objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.depositAll(); sleep(random(1500, 2000)); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); } else { // ADDED THIS @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@22 objects.closest(16642).interact("Bank"); sleep(random(1500, 2000)); bank.depositAll(); sleep(random(1500, 2000)); bank.withdraw(2568, 1); bank.withdrawAll(440); sleep(random(1500, 2000)); bank.close(); sleep(random(1500, 2000)); equipment.equip(EquipmentSlot.RING, 2568); sleep(random(1500, 2000)); } } break; case WAIT: sleep(random(200, 300)); break; default: break; } return random(200, 300); } // code used on exit public void onExit() { log("Thank you for using eIron"); } // paint public void onPaint(Graphics2D g) { } } Added code is in green. You forgot to make it only withdraw a ring if it doesn't have one. Your code was saying: if you're wearing ring, bank for ore. Then, bank for ring (without even checking if has ring or not). I made it so it will check if it has ring, then withdraw ore, if not, withdraw ring.Sorry if I didn't explain myself well enough, if you need any more help just ask. EDIT: Make sure to format your code! It was confusing at first, but just hit CTRL + SHIFT + F to automatically format code in Eclipse IDE.
-
First Script Help
It's alright bro, if you need any more help just pm me I'll be glad to help.
-
First Script Help
Read the getState method, look at when State.ATTACKING is actually set: When the player is moving. So whenever the player is moving, it will attack, if its not moving, it will be idle. if(myPlayer().isUnderAttack()) { return State.IN_COMBAT; } else { return State.ATTACKING; } That is just an example, you can find a suitable way of setting the state to attack EDIT: "Attack" << Correct "Attack-Cow" << Incorrect
-
CzarRangingGuild
Final verification, once a moderator verifies version 3.5 it will be ready. So far it says version 3.2 is still there After all this is done, everything will be fine.
-
Perfect Experiments
Yep We just need to wait until the mods verify and it's up
-
Another Typical Ban
Agility is the worst skill to bot, very high ban rates
-
Perfect Experiments
Lmao I just noticed. Thanks brah.
-
Perfect Experiments
'the intelligent choice' by Czar Buy (only $4.99) Want to buy the bot, but only have rs gp? Buy an OSBot voucher here old pictures
-
CzarRangingGuild
Pushed update 3.3. Dialogue system perfected. EDIT: Got a chance to actually test the script, thanks to mdanhorn for lending me an account. I fixed the camera, the click position and dialogues. Tested the script endlessly until I fixed everything and now it's flawless. 3.5 pushed to the SDN. Should be available soon.
-
Hh:mm:ss Run Time Method?
Don't make things so complicated. public String formatTime(final long time) { final int sec = (int) (time / 1000), h = sec / 3600, m = sec / 60 % 60, s = sec % 60; return (h < 10 ? "0" + h : h) + ":" + (m < 10 ? "0" + m : m) + ":" + (s < 10 ? "0" + s : s); }
-
Where Is Everyone?
Wow, it's actually true, there are so many paid scripts lmfao. I even submitted one.. Oh well time to turn this around. EDIT: Swarm of free scripts incoming
-
CzarRangingGuild
Okay v3.2 is out. There should be no more problems.
-
CzarRangingGuild
Update hasn't been pushed yet We have to wait a bit longer. It's still v3.11, the latest is 3.2.
-
CzarRangingGuild
Pushed update 3.2. Fixed alot of previously untested bugs. - Menu detection improved - Positioning fixed, shouldn't keep 'walking to position.1 ' - Buying arrows updated
-
CzarRangingGuild
Okay, the script has a problem with the distance method, sorry, I will push version 3.12 ASAP. Apologies for the inconvenience.
-
CzarRangingGuild
Okay script is up! Enjoy guys
-
CzarRangingGuild
As soon as a mod verifies it, it will be available