Jump to content

Solzhenitsyn

Members
  • Posts

    181
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Solzhenitsyn

  1. I broke it when I changed something before posting, going to take it down and reupload when I figure out what I broke. Sorry. Edit: @@dontbuzz Fixed, added a line in the ctor in the wrong order. oops. always test before uploading
  2. Probably not very useful, but I needed a way to manage my world jumps so I wrote this. Maybe someone will find this helpful. Modify world list to suit your needs. Usage: aHopper.jumpTo(301) // These two instructions do the same thing. aHopper.jumpTo(1) // aHopper is agnostic to the real server number vs. the used server number. // Now we are on world 301. aHopper handles boundary worlds. aHopper.jumpToPrev() // Now we will jump to 394. aHopper.jumpToNext() // Now we will jump to 301. // aHopper keeps track of how many times we have jumped during this runtime. aHopper.isNextHopMultipleOf(5) // returns true // aHopper will update when it begins to try jumping, the following instruction will complete. aHopper.jumpTo(hopTarget); new cSleep(() -> getWorlds().getCurrentWorld() == aHopper.getCurrWorld(), 2500).sleep(); // cSleep not included, go look at Explv's explanation of lambda expressions.
  3. Use parse method from your browser's javascript to read rsbuddy's price json.
  4. If I start doing all quests, and I don't have some of the skill requirements, will it skip the quests that I cannot complete?
  5. Great work, but please don't release this widely... My bots already have a ton of competition at every shop they are buying from and if this is a public release then the method will be dead for everyone.
  6. Anyone know how much an account like this is worth? Never played on OSRS, stats carried over to RS3 are fairly low. No quests complete. I am OO. No bans, no warnings, etc.
  7. Hey Jamez, I tried adding you on Skype but got an impersonator. I PM'd you my contact information, could you add me? Thanks. Edit: tagging you @@Jamez
  8. @@Alek What got changed about the ChatBox API? I was trying to use it in v2.4.81 and was having problems with it.
  9. This has always happened to me when I have multiple tabs open in a single client. I bought VIP so that I could open as many clients as I wanted to. If you mean when you start a script, well, if the script you're using is buggy or badly written then that could be eating up your resources.
  10. This is my favourite script. I use it every day, and it makes managing a ton of accounts possible so thanks for putting it together. Sometimes I get this error on launch which requires a client restart. console output: at java.awt.image.SinglePixelPackedSampleModel.createDataBuffer(Unknown Source) at sun.awt.image.IntegerInterleavedRaster.<init>(Unknown Source) at sun.awt.image.IntegerInterleavedRaster.createCompatibleWritableRaster(Unknown Source) at java.awt.image.ConvolveOp.createCompatibleDestImage(Unknown Source) at java.awt.image.ConvolveOp.filter(Unknown Source) at org.pushingpixels.substance.internal.utils.SubstanceTextUtilities.paintTextWithDropShadow(SubstanceTextUtilities.java:104) at org.pushingpixels.substance.internal.utils.SubstanceTitlePane.paintComponent(SubstanceTitlePane.java:1265) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager$4.run(Unknown Source) at javax.swing.RepaintManager$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.access$1200(Unknown Source) at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) [ERROR][08/03 08:56:31 PM]: Uncaught exception! java.lang.OutOfMemoryError: GC overhead limit exceeded at java.lang.String.toCharArray(Unknown Source) at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) at javax.swing.text.AbstractDocument.insertString(Unknown Source) at javax.swing.text.PlainDocument.insertString(Unknown Source) at javax.swing.text.AbstractDocument.replace(Unknown Source) at javax.swing.text.JTextComponent.setText(Unknown Source) at org.osbot.gb.run(bh:26) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) [ERROR][08/03 08:56:32 PM]: Uncaught exception! java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOfRange(Unknown Source) at java.lang.String.<init>(Unknown Source) at javax.swing.text.GapContent.getString(Unknown Source) at javax.swing.text.GapContent.remove(Unknown Source) at javax.swing.text.AbstractDocument.handleRemove(Unknown Source) at javax.swing.text.AbstractDocument.remove(Unknown Source) at javax.swing.text.AbstractDocument.replace(Unknown Source) at javax.swing.text.JTextComponent.setText(Unknown Source) at org.osbot.gb.run(bh:26) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) [DEBUG][08/03 08:56:32 PM]: Loaded script! [DEBUG][08/03 08:56:32 PM]: Launching script... [INFO][Bot #1][08/03 08:56:33 PM]: [Break Manager] After botting for 126 minute(s), you will break for 41 minute(s). [INFO][Bot #1][08/03 08:56:33 PM]: Loaded 6 built-in random solvers! [ERROR][08/03 08:56:33 PM]: Uncaught exception! java.lang.OutOfMemoryError: GC overhead limit exceeded at java.awt.image.DataBufferInt.<init>(Unknown Source) at java.awt.image.Raster.createPackedRaster(Unknown Source) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source) at java.awt.GraphicsConfiguration.createCompatibleImage(Unknown Source) at org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities.getBlankImage(SubstanceCoreUtilities.java:716) at org.pushingpixels.substance.internal.utils.SubstanceImageCreator.getRotated(SubstanceImageCreator.java:553) at org.pushingpixels.substance.internal.ui.SubstanceScrollBarUI.getTrackVertical(SubstanceScrollBarUI.java:546) at org.pushingpixels.substance.internal.ui.SubstanceScrollBarUI.paintTrackVertical(SubstanceScrollBarUI.java:493) at org.pushingpixels.substance.internal.ui.SubstanceScrollBarUI.paintTrack(SubstanceScrollBarUI.java:906) at javax.swing.plaf.basic.BasicScrollBarUI.paint(Unknown Source) at org.pushingpixels.substance.internal.ui.SubstanceScrollBarUI.paint(SubstanceScrollBarUI.java:969) at javax.swing.plaf.ComponentUI.update(Unknown Source) at org.pushingpixels.substance.internal.ui.SubstanceScrollBarUI.__org__pushingpixels__substance__internal__ui__SubstanceScrollBarUI__update(SubstanceScrollBarUI.java) at org.pushingpixels.substance.internal.ui.SubstanceScrollBarUI.__org__pushingpixels__substance__internal__ui__SubstanceScrollBarUI__container__update(SubstanceScrollBarUI.java) at org.pushingpixels.substance.internal.ui.SubstanceScrollBarUI.update(SubstanceScrollBarUI.java) at javax.swing.JComponent.paintComponent(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager$4.run(Unknown Source) at javax.swing.RepaintManager$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source) [ERROR][08/03 08:56:34 PM]: Uncaught exception! java.lang.OutOfMemoryError: GC overhead limit exceeded [ERROR][08/03 08:56:35 PM]: Uncaught exception! java.lang.OutOfMemoryError: GC overhead limit exceeded [ERROR][08/03 08:56:38 PM]: Uncaught exception! java.lang.OutOfMemoryError: GC overhead limit exceeded [ERROR][08/03 08:56:38 PM]: Uncaught exception! java.lang.OutOfMemoryError: GC overhead limit exceeded [INFO][Bot #1][08/03 08:56:52 PM]: Terminating script Explv's Walker... [WARN][Bot #1][08/03 08:56:57 PM]: Event executor is taking too long to suspend; terminating now... [INFO][Bot #1][08/03 08:56:57 PM]: Script Explv's Walker has exited!
  11. Hey, wondering if you can help me with this. http://stackoverflow.com/questions/4922145/non-static-method-cannot-be-referenced-from-a-static-context-error From SO, I've made this change... void jumpToSafeWorld() { status = "There are people on the radar, jumping away from them..."; //getWorlds().hop(Worlds[random(3,11)]); HHopper s = new HHopper(this); s.hop(Worlds[random(3,11)], ()->false); } (EDIT: ^ This is really bad, don't do this) but I'm wondering where I'm supposed to instantiate the new HHopper object and if I need to have a separate instance each time I jump. Thanks for writing this, and thanks for your time. EDIT: If anyone else doesn't know how to use this, and you want to take advice from someone who is more or less mentally retarded and has less than 4 days of Java experience... public class someClass { private HHopper hopper = new HHopper(this); private void someFunction() { hopper.hop(world, condition) } }
  12. But if I set all references to null, will the object be deleted by the garbage collector? I don't know anything about Java, and losing references without manually deleting things just seems like a terrible idea. In any case, I'm already on swap so every byte counts.
  13. If I set references to the table with all of the data to null after pulling the information from it, will it free all allocated memory?
  14. How did you find the source for the function? I have a hard time understanding API, but now that I know that getItems returns an array of the contents of each slot (I was under the impression it returned an array of only the items contained) I understand perfectly. Thanks for your post.
  15. It's returning an int, not a data structure.
  16. getSlot public int getSlot(Filter<Item>... filter) Gets the slot for the first item matched after filtering the container. Parameters: filter - The filter(s). Returns: The first slot matched. http://osbot.org/api/org/osbot/rs07/api/util/ItemContainer.html#getItem-org.osbot.rs07.api.filter.Filter...- 1) Will the method return 0 if no item is found? 2) What orientation? Is the upper left slot 1, upper right 4, lower left 24, lower right 28?
  17. Cuck claims to have made $100k USD in a year. I'm calling bullshit. He probably lost $100 in a day and is salty now.
  18. How are you running five sessions without paying for VIP?
  19. thoughts? thanks. edit: context - noticed that my nightshift bots usually get banned in 2-3 days, and they are all f2p. not sure how much of it is working nightshift, and how much of it is f2p (most of my day accounts are p2p, and so far 15/16 remain unbanned).
  20. Had around 130k to begin with, and it threw the error at something like 80k. It was before the big swordfish bid was placed, if that's what you're wondering about. It's happened on two of the three accounts that I've run through so far.
  21. Bug report: 1) On Prince Ali Rescue, the player character sometimes gets stuck when trying to traverse the field. The script paths the player character across the field instead of following the foot path. The player character gets stuck on both the entrance and the exit if the gates are closed. Around this area of the map. 2) When purchasing supplies and in F2P complete mode, the script throws an out of money error between purchasing a black hat and an amulet of magic, irrespective of the number of coins stored in the bank. Thanks for your fast response to my earlier questions. Do you mind if I ask which quests you are working on, and if you maintain a planned features list? EDIT: Any chance that the Hero's Quest is on your list of planned quests?
  22. Just bought, worked well on F2P quests. Any plans for supporting Black Knight's Fortress/Dragon Slayer/Teleports?
  23. Hi man, Almost all taught pathfinding algorithm will be good enough. A* is best pathfinding for games, and is modification of base work done by Dijkstra. Dijkstra is easiest to implement. If you implement by hand, and distances are short, just do Dijkstra because A* weighted nodes are pain in my asshole. Why you need implement your own pathfind method, though? Bot client already got some algorithm implement. For obstacle handle write method and call when you need.
  24. Hi, let me tell you quickly the difference between hash table, linked list, and array data structure. LL: Non-contiguous in memory, each node has data item and pointer to next. Good performance for iterate, O(n) performance for specific look up, O(n) for search. Array: Contiguous in memory, no node just data item. Good performance for iterate, O(1) performance for specific look up, O(n) for search. Hash table: Uses hash function to map a key (input) to a location (data), can't iterate but O(1) performance for specific look up and more importantly O(1) performance for searching. No key = can't search. Edit: so i think its not appropriate to use hash table here. but good useful code anyways thanks for that. Edit 2: usually you should use array because it is more efficient for memory. the only problem with array vs linkedlist is that insert a new element into the middle of array is slow, because you have to move all the shit in front of it. linkedlist you just need to add new node in memory, copy pointer of n-1 node into your new node and location of your new node into n-1 ptr. in java you dont get to use pointers though so idk, sry cant help there.
×
×
  • Create New...