-
Posts
20644 -
Joined
-
Last visited
-
Days Won
1789 -
Feedback
100%
Everything posted by Czar
-
My opinion about osbot after osbot 2 [Poll]
Czar replied to Theodore Bagwell's topic in Community Discussion
I'll try rejuvenate the script section by releasing free scripts at a ratio of 4 : 1 (free : premium) script, but it's not a 1-man job, although I'll try. -
Lol scared me, I didn't want an unsatisfied customer
-
Yes it is currently up and running. Flawless version 3.5 is live.
-
If you need to get familiar with API: http://osbot.org/api For interfaces, you can do interfaces.get(30).interact("Close"); as an example, For walking, localWalker.walk(pos); If you are using Eclipse, just type "this." and wait, it will open a popup of suggestions etc and you can see what variables there are, e.g. camera.toEntity, mouse.move PM me if you need more help
-
Make a new text file and name it run.bat, make sure its an actual .bat file and not .txt.bat, and put this in: @echo off title OSBot java -jar osbot.jar pause EDIT: If you're having trouble with file extensions just enable file extensions for known file types in folder options.
-
its actually quite profitable selling garrosh hc loom boosts for 10k each
-
if (p.getInterfaces().get(300).isValid() && p.getInterfaces().get(300).isVisible()) { // store is open if (p.getStore().contains(1337)) { if (p.getStore().buy("czar", 1)) { return 1000; } } } else { Entity shopkeeper = p.npcs.closest("Shopkeeper"); if (shopkeeper != null) { if (shopkeeper.interact("Trade")) { return 1000; } } } That's for buying something from shop, As for the 'dropping gold', check if inventory is full, not if inventory isn't empty !getInventory().isEmpty() -->>> getInventory().isFull() PM me if you need more help
-
Is this for iron man? If so I have a better way and my iron man script will be out soon As for the smelter script, I just assisted http://osbot.org/forum/user/49898-edoggydogg/ on making a flawless smelting script in which he will release
-
NMZ script coming right up.
-
Did somebody say.. free scripts? Just tell me what script and I'll make a free one. I already finished 2 requests.
-
gj brah
-
Okay, eric approved the script and it's ready. Post proggies guys! Good luck botting on this flawless script
-
Lool, nah we improved it
-
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
-
Only http://osbot.org/forum/user/18499-ericthecmh/ can verify it and he's not online atm
-
yep Oh well it will be here soon
-
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
-
Does it work well, if not just pm me.
-
Oo thanks mate, I didn't know.
-
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.
-
It's alright bro, if you need any more help just pm me I'll be glad to 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