Jump to content

Apaec

Scripter III
  • Posts

    11174
  • Joined

  • Last visited

  • Days Won

    91
  • Feedback

    100%

Everything posted by Apaec

  1. 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
  2. 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
  3. Sure - trial activated Apa
  4. 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
  5. 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
  6. Sure- trial started -Apa
  7. 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
  8. Sure - trial started Apa
  9. Sure - trial activated Apa
  10. Sure -trial started Apa
  11. 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!"); }
  12. Sure - trial started Apa
  13. 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
  14. 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
  15. Sure - trial activated Apa
  16. Sure - trial started. Have you considered training at Sand Crabs instead? they're much better exp! Apa
  17. 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
  18. 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
  19. Sure- trial started Apa
  20. 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
  21. 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
  22. 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
  23. All trials started Apa
  24. Sure thing - trial started! Apa
  25. Sure - trial started Apa
×
×
  • Create New...