Search the Community
Showing results for tags 'script'.
Found 47 results
- Maniacal Monkeys Magic or Range Bot?
-
[Free] OSBot Farmhand v1.3
VirusScan: https://www.virustotal.com/gui/file/375a2f8b691e0719e9bcc86102dc2ab1cd9a0c17a95192fb62e530e72fccdaa7?nocache=1 My Discord: Downer#9737 I whipped this bad larry up when I went to scale up my first farm and figured I would give back and share it with the community because this stuff can be quite tedious. It's a very simple python script that helps automate scaling up a farm that also supports proxies. ~~~Requirements~~~ -Up to date Osbot.jar -Python 3.9+ -Java 8 Update 351 -> https://www.java.com/en/download/manual.jsp <- DL Offline Version] ~~~Features~~~ -Proxy Support -World selection support -Script ID + Arguments support -Automatically uses new mouse -Autologin (Must have logged into Osbot once before running) -Delayed client start time based on your input https://www.buymeacoffee.com/zazaonabot Changelog
-
Tutorial: How to make Kotlin work
1. Follow this tutorial! Script Development Setup 2. Create your base class script inside of src directory @ScriptManifest(name = "Example", author = "Example", version = 1.0, info = "Example", logo = "") class OsbotScriptTemplate : Script() { override fun onLoop(): Int { TODO("Not yet implemented") } } 3. Build your project. (Build > Build Project) 4. You should see a lib folder with a bunch of kotlin library in it 5. Go back to File > Project Structure > Artifacts, assuming you followed step one correctly, you should already have an artifact. If not, go back to step 1! 6. On the right side under Available Elements you should see KotlinJavaRuntime , right click on this, and select extract into Output Root 7. Rebuild your project, and you should now be able to run your Kotlin based script!
- Progressive Woodcutter v0.1
-
Mining bot not running from combat
I am learning how to script and have started with a mining script. I have some previous programming knowledge but I'm learning the api. The bot walks to the mining spot then banks when he is done and walks back. When he is getting attacked by a mugger he just keeps trying to mine. It shows in the logs when I am under attack. Not sure how to make him run. (I would appreciate any tips on how to make my code more efficient as I know it's pretty messy) LINK TO CODE: https://pastebin.com/1imvcf7D
-
Rift Tithe Farmer - Development Thread
Hello all, I've been working on a Tithe Farm script which is going to be apart of my "Rift" script series, at the request of a few users. Below are the following features: *keep in mind this is a WIP and changes will come* Features: Plants, waters, and harvests any of the 3 plants in the farm Able to do 20 plants at a time Fills watering cans when needed to And that's pretty much it. There isn't any deposit feature or continuing to the next instance at this time. No humidify, stamina potion, Gricoller's can, or farmers outfit support. Additionally there isn't a GUI as it auto selects the seed based on your level and will automatically begin a 20 plant run. This is a VERY simple script at the moment. There are not any checks for individual plants just checks to see if an action was performed. This causes a problem as if there is any lag/disconnect it'll just skip over the plant resulting in it dying or not being planted. I just recorded a video but it's massive and currently rendering before I upload to YouTube. It's going to showcase just 4 of the 20 plant runs as my recording stopped at the beginning of the 5th and last one. The average EXP/HR using the Bologano seeds is 43-45k. This video is sped up to 3.5x from real-time. As you can see, in the 1st run, the 3rd run, and the 4th run, #18 died due to lag/delay in the click coming from plant #16. This has been since fixed by tweaking the timer on the action check. In the 2nd run, #6 was delayed due to lag and it skipped over #7 resulting in it dying. This is only from 1 session and is nothing close to release, but it is showing the progress I have reached up to. And yes, the GUI is WIP as well haha. Please let me know if you have any requests or would like to see something added to this script. Thank you for your time! UPDATES:
-
After a kill I want to loot first before attacking another monster.
I have read alot of other scripts and examples of how to loot before attacking again. I cannot understand this concept, could somebody explain me how to do this inside of my own code. This is my code for now: =============================================================================================== NPC npc = getNpcs().closest(o -> o.getName().equals("Cow") && o.getInteracting() == null && !o.isUnderAttack()); if (npc != null && npc.getName().equals("Cow") && npc.getHealthPercent() > 0 && npc.isAttackable() && npc.hasAction("Attack") && map.canReach(npc) && !npc.isUnderAttack()) { if (npc.equals(myPlayer().getInteracting())) { } else { npc.interact("Attack"); if (npc.interact("Attack")) { sleep(random(3500,5000)); } } } else { camera.toEntity(npc); npc = npcs.closest("Cow"); } ==================================================================================================
-
Grabber script
Hi, Am looking for a script that would: 1. Telegrab a specific ground item until there is none of it left then hop world and repeat this until: x amount of target ground item is in inventory OR run out of law runes in inventory OR cannot cast telegrab and then logout is triggered. 1.1 There would be a way to tell what worlds the bot will hop to through an interface. OR there is the exact same script but with the world hopping variable changed so if one would like the script to hop 451-459 then the specific script for that hopping pattern is loaded in the script selector. 2. The script, on the condition any hp is lost, would need to eat food in the inventory, activate quick pray and run to single-way combat (approx 100 tiles). 2.1 If hp is still being lost when reaching this co-ordinate then it needs to reach lvl 20 wild (approx 800 tiles) where home tele is activated. 2.2 If home tele turns out to be a null action (either through tb or cooldown timer or still in combat) then it will be taken to the wilderness ditch and logout. With 0 knowledge of Java I've tried making my own script for (1.) and got this far : Entity naturerune = getObjects().closest("Nature rune"); if (naturerune != null) { nature rune.interact("Take"); } Any help with developing this script would be appreciated.
- Need Help with a free dicing bot script
-
Changing my IP each time run a script.
So I have nordvpn and my question is would it be better to change my IP address each time I log on to an account to be botted, that way if I do get my IP flagged I can change it. Or should I stay with 1 IP for the account and use different IPs on different accounts? any info you guys could give me would really help as to why I have been having problems as getting accounts banned within a week. So I got a VPN and switched to botting on mirror mode.. anything else you guys do that helps you???
-
I want to learn how to write a bot script with someone at a beginner level as well
Is there anyone who wants to learn who to write a osrs bot with me? i am a beginner and know some very basic java and want to learn along side someone
-
Trading API unpredictable
Could anyone please explain to me why the following code is so incredibly un-predictable? if (m.getTrade().isCurrentlyTrading()) { m.log("Currently in trade with: " + m.getTrade().getOtherPlayer()); if (m.getTrade().getTheirOffers() != null && !m.getTrade().getTheirOffers().isEmpty()) { m.getTrade().acceptTrade(); return Utils.randNum(1000, 2000); } if (m.getTrade().isSecondInterfaceOpen()) { m.getTrade().acceptTrade(); return Utils.randNum(1000, 2000); } return Utils.randNum(250, 500); } if (!m.getTrade().isCurrentlyTrading()) { if (m.getTrade().getLastRequestingPlayer() != null && m.getTrade().getLastRequestingPlayer().exists()) { m.log("Interacting with: " + m.getTrade().getLastRequestingPlayer().getName()); if (m.getTrade().getLastRequestingPlayer().interact("Trade with")) { Sleep.sleepUntil(() -> m.getTrade().isCurrentlyTrading(), 5000, 500); return Utils.randNum(1000, 2000); } } else { delay = Utils.randNum(1000, 2000); m.log("Not currently in trade, checking again in: " + delay + "ms"); return delay; } } The m in this case is the MethodProvider. All i'm trying to do is run an account that sits there & just accepts trade requests, however it is incredibly un-reliable & un-predictable. Sometimes it works & accepts the trade, other times it will just close the trade interface or will spam trade the requesting player. As a side note, is there any difference in using trade or getTrade() ? Thanks!
-
Bank standing methods, macro or script?
Title pretty much explains it. With a bankstanding method, is a mouse macro recorded for 30 minutes and then repeated, better than a regular osbot script in terms of ban rates?
- {Beginner} Scripts are not sending from IntelliJ to OsBot Script Selector
- QuickPineapples [P2P] [200-250k/hr] [No Requirements]
-
Very new to coding
Hey guys, just need help. Currently working on a script learning pretty well. Started trying to make my own scripts a few days ago and I'm currently stuck. I'm trying to get the amount of gold in my inventory and set it to a name and use that value later in the script but it keeps saying error. Item originalGold = getInventory().getAmount("Coins"); //SCRIPT GATHERING HOW MUCH GOLD IS IN INVENTORY I have this on start. It keeps saying that I'm missing required API but it's already imported on top with color so I know it imported. P.S. I'm setting it up like in the OSBOT tutorial videos by chris. Using his NPC example but this time for gold. Sorry if I sound stupid it's because I am.
-
MOVED
Moved to correct subtopic Link:
-
Custom login handler
Hey guys does anyone heppen to have a idea how to make a custom login handler? (i know how to make it in a diff bot client but i can't seem to figure it out on here) Mainly what im looking for is disabling the random event login handler and any tips that you can give me
-
I need help with my code
I'm trying to make a script that changes the attack style by reaching a specific level of one skill so that it starts up another one. Example: I'm going up Defense at level 30 when I reach level 30 I want it to change automatically because of the attack style to climb Attack In the OSBot Logger the Message appears: [INFO] [Bot # 1] [03/23 11:29:31 PM]: Defense is 30, attempting to switch attack styles but does not change the style Here my code:
-
I need help with my script
I want to add in my script the option that when you reach a specific level in "Attack, force or defense" change the attack form to start uploading another melee skill Ex: reach level 30 of attack and I want to change to the mode of "Block" so that it raises defense and later that it changes to "Stab" to raise force when it reaches certain levels. Can you help me with that? if (getSkills().getStatic(Skill.DEFENCE) < 30) { } else if (getSkills().getStatic(Skill.DEFENCE) >=30) { log ("Defence level es 30."); this.stop (false); } I have this code but the only thing it can do is when it reaches level 30 of Defense it stops and I want it to change from Defense to Attack or Force ... to keep reaching melee levels. Please help guys!
-
Client won't close and bots keeps logging in
Hello fellow scripters! The bot log off but the client won't close so the handler(or something forgot the name) keeps logging the bot back in... This is what I'm doing: I tried without the .stop(true) but no effect. I remember that System.exit(0) worked yesterday but it stops..? Any help would be really appreciated! ty
-
Command to close client after bot logoff?
I want the osbot client to close when the script stops but I can'f find anything about it...
-
Need suggestions on a script to write
Hello all! Thought I'd like to give a little bit of something to this community, so I'm in need of a suggestion for a script to write. I don't want it to be something REALLY massive ("hurr durr make me a progressive fishing script"), and not high requirements either (as I won't have an account to collect the data on). Waiting for your suggestions Thanks
-
[osbot or script issue?] Finally found out whats causing deaths while running my script. but how do i solve it?
Been having some issues with one of my combat scripts, it died seemingly random. buy i finally managed to be at the PC when the script was messing up. What happened was that when the client tried shift dropping a vial, it instead normally clicked on it so basically it clicked "use" on it. and then went on to proceed with the script. it's just that it wont be able to interact with anything since all the interact options is now replaced with use vial > on. And for some reason the osbot wont notice this which results in the bot doing nothing since it cant use any interactions in either the game window or in the inventory. which means even though i have super strict priorities in the script to always eat and teleport away above anything else, it cant execute it cause it cant interact with anything cause the vial is highlighted for use and replace all the items other interactions. So i was thinking, I'll just add a check for it; if something is highlighted. but how do i do that? And also is this a osbot bug i should report, cause im 99% sure the logic in my script isn't causing this. I'm sure this isn't a big problem if your script involves walking around alot since it would simply normal click in the game window and the "use" would go away. but my script is in a super crowded area and walks between 2 tiles that has mobs on them which means it pretty much allways relies on right click>walk here which it cant do when the item is highlighted. to sum it shortly: highlighted(use) item is fucking my script.
-
how to use a script
ok, so i downloaded a script off of the website, but how to i get the script to work? the file wont open and i looked everywhere for help but couldn't. help!