Jump to content

Joseph

Trade With Caution
  • Posts

    4692
  • Joined

  • Last visited

  • Feedback

    91.3%

Everything posted by Joseph

  1. yep scroll is bugged
  2. 480, I did a typo my mistake
  3. Good luck with your scripting
  4. Jd GUI Jd means java decompiler Plus the API is your bestfriend always use it
  5. I'm give you a little advice. I did exactly what you did. Got someone else script, did a little copy and paste, and a bit of editing. I ran the script to see what everything does. If you want to improve your coding, best thing to do is. If your trying to make a magic script, look for a open source magic script. Or download this program that convert the .jar or .class file into readable .java file. Then youll be able to download local scripts and convert them. Then you read into the script and see how cast a spell, and you try it out on your script. Also reading into a couple of java books help improve your coding. If your stuck, you could post help under issue, the community is nice, and helpful. And if you need any further help or explanation you could ask me on Skype I'll help you out to my best ability Jose.dpay
  6. I got the same thing, it could be on how we've imported those files (shop, and shop item)
  7. i get this error when i try to start script java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.osbot.script.engine.ScriptManager.startScript(ci:115) at org.osbot.xB.run(vg:4) 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.NullPointerException at Shop.isOpen(Shop.java:36) at Shop.getAllShopItems(Shop.java:80) at Buyer.<init>(Buyer.java:39) ... 9 more
  8. Node 4: I've notice from node 3 to 4 your "Y" are kinda a far distinct from one another 3429 to 3440 it's kinda a big gap. Try a short distance. PLUS Node 7: You have to many numbers in your "Y" from the looks of your number I think you were trying to type "3452". That's all I've notice
  9. i was thinking about that, and i thought i should try to find a fix before i do that. it didnt even take me that long.
  10. This isnt really for the admin, it just to help out Scripters that are having troubling withdrawing items
  11. the withdraw method use to work fine before.
  12. So lately ive been having a problem with withdrawing a certain item that isn't in view, when the bank is open. I heard around the forum of other people having this same issue. But finally i got a solution. if (client.getBank().isOpen()){ if (client.getBank().contains(Bucket)) { client.getBank().scrollToSlot(client.getBank().getSlotForId(Bucket)); client.getBank().withdraw5(Bucket); sleep(3000); } } or for even a shorter code: int B = this.client.getBank().getSlotForId(Bucket); if (client.getBank().isOpen()){ if (client.getBank().contains(Bucket)) { client.getBank().scrollToSlot(B); client.getBank().withdraw5(Bucket); sleep(3000); } }
  13. how do i use this in my script?
  14. Could you explain to me how to add this into my script, because this walking is killing me -.-"
  15. first of all this is wronge section it here where you post issuse http://osbot.org/forum/forum/158-issues/
  16. import org.osbot.script.Script; import org.osbot.script.ScriptManifest; @ScriptManifest(name = "", author = "", version = 1D, info="") public class test extends Script { enum State { FIRST, SECOND, THIRD; } private State state; public void onStart(){ if(client.getInventory().isFull()){ state = State.FIRST; } } public int onLoop() throws InterruptedException{ switch (state){ case FIRST: return first(); case SECOND: return second(); case THIRD: return third(); } return random(10, 20); } int first() throws InterruptedException { return 0; } int second() throws InterruptedException{ // TODO Auto-generated method stub return 0; } int third() throws InterruptedException{ // TODO Auto-generated method stub return 0; } } ----------> "state = State.FIRST;" <------------------- using this will help you switch between your botstates
  17. Joseph

    Making GUI Live

    why dont you record it
  18. Joseph

    API Link

    +1, it was really handy, I always knew where it was at. I bookmarked it now
  19. sound great already cant wait. Thanks for hearing us out.
  20. its telling me to put a try and catch method on client.getInventory().interactWithId(ectophial, "Empty");
  21. public void onStart() { if (client.getInventory().contains(ectophial) &&!myPlayer().isInArea(EctoArea)) { try { client.getInventory().interactWithId(ectophial, "Empty"); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (myPlayer().getAnimation()== 714) { while (myPlayer().getAnimation()== 714) { try { sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } state = State.WALKTOECTOHERB; } } so then this (what i had in the beginning, with just a little tweaks )
×
×
  • Create New...