Jump to content

lare96

Members
  • Posts

    70
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by lare96

  1. For some reason whenever I try and export my script with my osbot-helper dependency (contains event state hierarchy and some utilities to avoid copying and pasting the same classes from script to script) I encounter a weird issue. When the bot first starts up (Failed to load local script : <class>): [INFO][04/25 01:29:32 PM]: Welcome to OSBot 2.3.64! [INFO][04/25 01:29:33 PM]: Loaded 2 RS accounts! [DEBUG][04/25 01:29:33 PM]: You last logged in as : Lare96 [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/AntiBanEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/AttackEnemyEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/NavigateTabsEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/LootItemEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/MouseMovementEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/EatFoodEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/CameraRotationEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/task/PlayerRunTask.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/task/AutoRetaliateTask.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/task/TargetMonitorTask.class [INFO][04/25 01:29:34 PM]: Loaded 1 local scripts and 0 custom random solvers! [INFO][04/25 01:29:35 PM]: You have 0 SDN scripts loaded. [INFO][04/25 01:29:35 PM]: Updated injection hooks for client revision : 77! [INFO][04/25 01:29:35 PM]: There are 138 scripts on the SDN. [DEBUG][04/25 01:29:35 PM]: OSBot is now ready! Then when I try and run the script: ERROR][04/25 01:31:12 PM]: Uncaught exception! java.lang.NoClassDefFoundError: org/helper/event/Event at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) at org.osbot.cOM1.run(im:387) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.helper.event.Event at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 8 more It's almost like the dependency isn't being bundled in with the JAR file I export my script in (I have it set up to include all dependencies). Anyone else have this problem, or know a solution?
  2. .. its ... its beautiful i wanna try this out so bad but I'm banned
  3. turned out to be the client I was using, thanks for the advice pain. feel free to lock/move this or whatever.
  4. am i the only black dude on this website
  5. EDIT: I did a bit of searching around and apparently there was a bug with the camera rotations in versions prior to 1.8.3, I'm using 1.8.1 which might explain the issue I'm having. I'm going to update to version 1.8.3 and test out the script again. I'll update the topic with the results. For the antiban portion of my script I'm trying to get it to move the camera randomly. I've accomplished this by using the rotateCameraPitch(int degrees) and the rotateCameraAngle(int degrees) methods. This works sometimes, but other times I encounter a problem where the script will literally just block (stop, pause, etc.) forever when its supposed to rotate the camera! I thought it might've been the values I was entering into the methods so I tried changing the random intervals with no luck. Anyone have similar problems? Any possible fixes for this? The code I'm using to rotate the camera: script.myPlayer().getClient().rotateCameraPitch(MethodProvider.random(30, 50)); and script.myPlayer().getClient().rotateCameraToAngle(MethodProvider.random(50, 200));
  6. I will post a selfie in my new black flag shirt later 8)
  7. I'm new here and I find all of the ranks a bit confusing, there's like three different types of scripter ranks that all seem to be closely related so I support this I guess
  8. the trick to not getting banned is to monitor your bot... don't do stupid shit like leave it on all night. Bot while doing homework or something and for gods sake talk every once and awhile to not make yourself look so bait it's so easy to tell that bots are bots because a lot of people feel the need to bot for a crazy amount of time like 20 hours... then you complain that you got caught? just take it easy
  9. are you getting a ConcurrentModificationException? if so what Swizzbeat suggested will work although I wouldn't recommend using concurrent collections as they can be slower you're probably getting that error because you're trying to do something like this for(Element e : list) { if(e == null) { continue; } e.function(); list.remove(e); // <- will throw a ConcurrentModificationException!! } you cant modify a list that isnt concurrent while doing this type of loop. use a raw iterator instead like so for(Iterator<Element> iterator = list.iterator(); iterator.hasNext();) { Element e = iterator.next(); if(e == null) { continue; } e.function(); iterator.remove(); // <- does the same thing but no exception will be thrown! } or like I stated before, you can use a CopyOnWriteArrayList or what the dude above suggested
  10. really good explanation, will definitely help out the java newbies
  11. lare96

    AccuXP - [API]

    this actually helped me out a bit with the paint stuff, so thanks
  12. lare96

    Condition

    I see you're going for an abstract state model, I took a similar approach when writing my first script yesterday Declaring fields to hold the states is bad design, you should try something like this: public enum State { MINING_ORE(new AbstractState() { ... }), DROPPING_ORE(new AbstractState() { ... }); private State(AbstractState abstractState) { ... } ... } then you can just loop through all of the states for(State s : State.values()) { if(s.getAbstractState().force(...)) { s.getAbstractState().run(); } } a lot more maintainable and it looks nicer too. also your naming is a bit off
×
×
  • Create New...