Everything posted by Butters
-
Launch a script which's name has spaces from CLI
Sadly none of the above options work
-
help script
If you use walking.webwalk then basically no. Try to create a WalkingEvent and set some break conditions
-
Launch a script which's name has spaces from CLI
Thanks, tried this and it didn't work SCRIPT="My\ Script:null" java -jar "osbot 2.4.101.jar" $OSBOTLOGIN $BOT1 -script $SCRIPT $BOT1WORLD Gonna try with two \\ when I get on my other PC. The idea behind this is to launch like 10 bots with the same script, so thought that storing script params to variables would make it cleaner and easier to manage
-
Launch a script which's name has spaces from CLI
Sorry for misleading you. Yep, both your and Abuses' options work fine. The problem is that I want to store the script params in a variable and then add it to the java -jar line. For example this works fine: java -jar "osbot 2.4.101.jar" $OSBOTLOGIN $BOT1 -script My\ Script:null $BOT1WORLD Though this doesn't find the script SCRIPT="-script My\ Script:null" java -jar "osbot 2.4.101.jar" $OSBOTLOGIN $BOT1 $SCRIPT $BOT1WORLD By the way, a noob question. What does the "\" actually do? And even so, how to understand this syntax that you've provided? "\"My Script\":null"
-
Sleep while performing task in inventory
Well this will sleep UNTIL you are in dialogue or if you don't have 14 items in inventory. So dunno if this is what you want
-
Sleep while performing task in inventory
I can't remember if there's a method something like inventory.interactAll("Item", "Use") and interact with a another item. You can simply always check if (inventory.getAmount("Item1) > 0 || inventory.getAmount("Item2) > 0) { // Do some interacting } If a level up dialog appears it will simply keep on interacting cause the above mentioned condition will still be true. Also you can add (though I don't think you need it) something like if(dialogues.isPendingContinuation()) { dialogues.clickContinue(); } Don't have an IDE running so the method names might be a bit off. This will click continue on the "You have leveled up" screen
-
Launch a script which's name has spaces from CLI
It works great on Windows. Failed to launch it on Linux, any ideas? Super easy for my own scripts. Problem when I want to launch a script that someone else made. And I find decompiling it unethical
-
Sleep while performing task in inventory
Conditional sleep is your friend new ConditionalSleep(2000, 100) { @[member=Override] public boolean condition() throws InterruptedException { return bank.withdraw("Item", 14); } }.sleep(); This will wait until it withdraws 14 "Items" from bank
-
Launch a script which's name has spaces from CLI
Kudos Lemons, works great
-
Launch a script which's name has spaces from CLI
Hey, the title says it all. I am familiar with launching OSbot from CLI so this is only about the -script part Let's say I have a local script called "My Script". How to launch it in Windows/Linux? I've tried noob stuff like without commas -script My Script:null with commas -script "My Script:null" name with commas, params nor -script "My Script":nulll Nothing works
-
CMD automated farm
The idea behind this is that you can configure your farm and start it automatically. If you have good scripts which support CLI and muling you can launch your bots and go on a pub crawl for three days. For a very very simple example imagine you write a bat file which launches 10 bots. You launch it, it launches 10 bots which cur yew logs and trades them to the mule. At the end of the day you log in to the mule, sell the logs - profit.
- :troll:
-
Is it possible to disable RandomSolvers?
I had the assumption that -allow norandoms dismisses ALL random solvers. The includes logging in, RS pesky random dismissal etc. and I do believe that even breaks (correct me if I'm wrong). I seriously doubt that if you use -allow norandoms and check "Dismiss all randoms" in OSBot settings, that the client with dismiss RS randoms
-
Is it possible to disable RandomSolvers?
Dissabling it is easy, you'll just need to launch the OSBot client from CLI with a -allow norandoms parameter. Example: java -jar "PATH_TO_OSBOT\osbot 2.4.101.jar" -login OSBOT_LOGIN:OSBOT_PASS -bot BOT_USERNAME:BOT_PASSWORD:BANK_PIN(0000 if none) -debug 5012 -allow norandoms -script SCRIPT_NAME_OR_ID:null (script parameters are null) Check this out http://i.imgur.com/8ZCZeq4.png
-
[FREE] F2P Rune crafter
- [Gold Farm Goal] 15-20b in 2017
Good job and good luck- [withdrawing an addy scim with getbank().withdraw method] Not sure if bug or something weird with my code (possible bug?)
Best would be not to use ID's. Better hardcode the names of the scimitars. bank.withdraw("Adamant scimitar", 1); Edit: Also a good idea would be to use conditional sleeps between each withdrawal, like: new ConditionalSleep(3000, 500) { @[member=Override] public boolean condition() throws InterruptedException { return bank.withdraw("Adamant scimitar", 1); }.sleep(); Have your logger opened when trying do withdraw stuff your way. I suspect a null pointer exception.- Scripting Help
95% that you ripped this code Look here if (System.currentTimeMillis() - openDelay < 1000) { return; } Item pack = getInventory().getItem(12732); if ((pack != null)) { openDelay = System.currentTimeMillis(); pack.interact("Open"); opened++; log("" + opened);- finding npc help
Well two things here that may produce "Lag", though I think you should be getting an error in the logs. First of all check if the ID's are right, then check if the npc is found with if (npc != null) . Then a good idea would be to check if the NPC is visible, cause it won't interact with it the other way (correct me if I'm wrong). And finally, I seriously doubt that an NPC has an action "use". I don't remember the outcome if you use an action that isn't there. Either nothing happens or you'll get an error.- finding npc help
Will work great if the NPC is in the area, bu here's some messy code to walk to npc if it's too far away Filter npcFilter = new Filter<NPC>() { public boolean match(NPC npc) { return npc != null && npc.getName().equals("NPC NAME"); } }; NPC npc = npcs.closest(npcFilter); if (npc != null) { if (npc.isVisible()) { //Interact } else { Area npcArea = npc.getArea(6); // Radius around the NPC if (!npcArea.contains(myPlayer())) { walking.walk(npcArea); } else { camera.toEntity(npc); } } }- started my first f2p melee bot account
I've been doing f2p melee/range/magic for about three weeks using injection. 8 accounts still not banned. Though none of them ever been boting for more than 6 hours.- [FREE] Doric's Quest || Fully automated
Kinda ashamed that I didn't test it on Mirror Give it a go- JavaFX and OSBot
- Restless Ghost
Aah, I didn't test it on mirror mode, but will do. Thanks for the heads up- JavaFX and OSBot
- [Gold Farm Goal] 15-20b in 2017