Everything posted by Apaec
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Hey, These are methods of the Area class. 'public Area' is the constructor: it's saying that you can construct an Area with four integers. The description here should be sufficiently explanatory. You would construct an area as follows: public Area myArea = new Area(100, 200, 300, 400); where the bottom left tile is (100,200), and the top right tile is (300, 400). Here, 'public' is just the access modifier, public is fine in this context. Alternatives include 'private' and 'protected', but I wouldn't worry about those too much for now. You can then do handy stuff like checking if you're in the area: if (myArea.contains(myPlayer())) { log("hi!"); } etc. There isn't a tutorial on how to read the API (to my knowledge) - it is based on javadocs so the layout is standard, and it just tells you classes and methods, there's not a lot more to it. In general, the left hand pane will list the important classes that you will need. Then, when you select a class (e.g. 'Area'), you will be shown the constructor (if applicable) and the methods belonging to that class. If you're still struggling with this stuff (which is perfectly natural, this is a lot to take in in one go!), i'd strongly recommend giving this tutorial a read. The official oracle tutorials are great for getting the basics in understanding of this stuff: https://docs.oracle.com/javase/tutorial/java/index.html Best of luck! And let me know if you need anything else. Always happy to help. Apa
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Hey, Great, sounds like good progress - baby steps! To learn this stuff, take it one step at a time, e.g. 'how do I walk to a tile'. Then think about areas, recording paths, webwalking. All of these can be learnt about through trial and error, and through reading the API. As ever, let me know if you have any questions or need any help. Always happy to reply; I understand the difficulty of this learning curve so ask as many questions as you can! -Apa
-
APA Rooftop Agility
Sure - trial activated Apa
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Hey, That code looks good. I'm not exactly sure about fishing spots, though they may be NPCs rather than RS2Objects, as you assume. I think your problem might be with your definition strings. Are you sure that 'Net Fishing spot' is the interaction action? This is case sensitive and has to be exactly correct. Likewise, are you sure that the object (NPC) is called 'Net Fishing spot'? again, this has to be exactly correct. -Apa
-
APA Rooftop Agility
Hey, Maybe you're health is too low and you don't have enough food? In this case, the script would log out for safety. In general, please open the console logger (via the OSBot settings gear) and any reason for script termination will be displayed there. Hopefully this resolves your issue, but if not, please let me know! -Apa
-
APA Script Trials
Sure- trial started -Apa
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Yep, should be mostly up to date. If you spot anything that you suspect might be outdated, please let me know And yes, this is for OSRS Apa
-
APA AIO Cooker
Sure - trial started Apa
-
APA Script Trials
Sure - trial activated Apa
-
APA Script Trials
Sure -trial started Apa
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Here's a link to the OSBot API: https://osbot.org/api/ To check if you're at a location, i'd take a look at the Area API: https://osbot.org/api/org/osbot/rs07/api/map/Area.html Then, you can do something like: Area someArea = new Area(500,600,700,800); if (someArea.contains(myPlayer())) { log("hello!"); }
- APA Rooftop Agility
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
You can get a really long way by trying (and failing!) to write scripts of your own. This kind of stuff is much better learned by doing, rather than through lessons, guides or videos. Think of a cool script that you want to write, make sure it is simple, and give it a shot! Good examples of simple scripts are those which have a very basic task which can be gradually expanded. For example, a woodcutting script can start by just clicking on trees. Then, you can add appropriate delays and pauses, dropping, walking, banking, upgrading axes, etc etc. As always, if you have any questions, post em here and i'll do my best to answer! -Apa
-
APA Rooftop Agility
Hey, Yep, that can happen often. In future, if this kind of thing happens again, open the console logger (accessible via the OSBot settings menu). The script will log details of execution there, and if for whatever reason the script terminates unexpectedly, it will always display the reason (e.g. misconfiguration, low hp, etc) or an error there. Apa
-
APA Rooftop Agility
Sure - trial activated Apa
-
APA Script Trials
Sure - trial started. Have you considered training at Sand Crabs instead? they're much better exp! Apa
-
APA Script Trials
Hey, Sure thing - trial activated. As for payments, this is all handled by OSBot, and the store only accepts PayPal. However, you can still pay with RSGP: you will have to purchase a store voucher from a third party (see this subforum: https://osbot.org/forum/forum/227-vouchers/) which you can then redeem for in-store credit. Hope that helps, let me know if you need anything else! Apa
-
APA AIO Cooker
Thanks for letting me know. I've made a note of this, and i'm not sure if there's something I can tweak to reduce the frequency of this, but I will run some tests in hosidius and see. Apa
-
APA Script Trials
Sure- trial started Apa
-
APA Script Trials
All trials started The scripts will be available in your collection like any other script would be for the next 24h. Enjoy! Hey, which script are you interested in? -Apa
-
APA Rooftop Agility
All trials activated Thanks for stopping by. @nover: I'm not an experienced botter in these times (the botting scene changes over the years, and I haven't run a script for a significant time for a year or so now). I'd recommend tuning in to the OSBot discord, where you can get more (& better) advice. In general, keep sessions short, use generous breaks, and play legitimately between sessions, and you should be fine. GL! Apa
-
APA Sand Crabs
Hmm, this is quite a niche corner case that I hadn't accounted for in the script. The script checks for your player being under attack, and since this is not the case in this situation, the issue occurs. I have made a note of this and will see if I can work out a fix for the next update when I am back home. Thanks for letting me know Apa
-
APA Script Trials
All trials started Apa
-
APA AIO Cooker
Sure thing - trial started! Apa
-
APA AIO Cooker
Sure - trial started Apa