Jump to content

rawgreaze

Members
  • Posts

    6
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by rawgreaze

  1. i want to have shared modules between scripts.. right now i have a wood cutter, fisher, etc, and they all go to the bank for example. i'd like to have a Bank.class that has the webwalk to bank function as well as deposit so I can reference these custom functions without code duplication. this must be a thing also i botted for like 10 hours straight with no bans, i enabled breaks and got banned a few hours later so could be coincidence but make that what you will
  2. You could also make an Area[]{} and pass area.contains(myPlayer()) that might work
  3. yes it sets the Z for the whole area i don't think you can make a 3d box can you? like in lumbridge you cant select the whole castle and all floors? you would have to do each floor i suppose. also i think i know what he did, on the map he used the top 2 numbers and the 2 underneath, he should only be using the top x and y
  4. nice guide, up and running and shitting scripts out left and right for trivial things now how can i link scripts together? i really avoided java, it wants me to create a static method to use it in my onLoop in my osbot plugin however if i do that then it wants me to make your methods static and it just cascades, what's the proper way to make things like, a shared bank module so I can have my own logic? trying to do like osbotplugin.util.Bank.bank(items) for example which would in turn call a bunch of your api methods?
  5. why are you importing java.awt.* i have used osbot for about 3 hours now and I have managed to make a fish->bank bot.. it's super simple.. your area is an array not really sure what you are doing there but the area should be: final Area MYAREA = new Area(x1,x2, x2,y2); <- this is the 2-dimensional square area, this is the grid the areas are 2d there is no Z-axis for an area, that would be for a Position also take a look at import org.osbot.rs07.api.map.constants.Banks has some very useful default locations such as GRAND_EXCHANGE or LUMBRIDGE_UPPER for bank etc then literally all you need to do is webwalk to a position.. so if(MYAREA.contains(myPosition())), then you want to getWalking().webWalk(Banks.LUMBRIDGE_UPPER); for example. I don't believe you can walk to an "area" try walking to a position, which is import org.osbot.rs07.api.map.Position;
  6. It's working only half the time. [INFO][06/17 07:13:10 AM]: Welcome to OSBot 2.6.27! [INFO][06/17 07:13:11 AM]: Loaded 1 RS accounts! [INFO][06/17 07:13:13 AM]: Script list refreshed and loaded 2 scripts. [INFO][06/17 07:13:20 AM]: Updated injection hooks for client revision : 197! [DEBUG][Bot #1][06/17 07:13:20 AM]: Initializing stealth injection bot... [INFO][Bot #1][06/17 07:13:20 AM]: Downloading latest RS2 old-school client parameters... [DEBUG][Bot #1][06/17 07:13:23 AM]: Injected bot reference into client! [DEBUG][Bot #1][06/17 07:13:24 AM]: Injected world accessors! [DEBUG][Bot #1][06/17 07:13:24 AM]: Injected 38 class and 341 field accessors! [DEBUG][Bot #1][06/17 07:13:24 AM]: Injected canvas! [ERROR][06/17 07:13:31 AM]: Uncaught exception! java.lang.NoClassDefFoundError: org.osbot.core.security.OSBotSecurityManager at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:2038) at org.osbot.rs07.Bot.initialize(kp:648) at org.osbot.hd.IIIiIiiIIIIi(js:71) at org.osbot.hd.IIIiIiiIIIIi(js:118) at org.osbot.lpT8.IIIiIiiIIIIi(hy:528) at org.osbot.lpT8$$Lambda$224/0x0000000000000000.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:823) Caused by: java.lang.ClassNotFoundException at java.lang.ClassLoader.findClass(ClassLoader.java:515) at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:951) at java.lang.ClassLoader.loadClass(ClassLoader.java:896) at java.lang.ClassLoader.loadClass(ClassLoader.java:879) at org.osbot.PE.loadClass(cs:9) ... 10 more
×
×
  • Create New...