Jump to content

FrostBug

Scripter III
  • Posts

    3967
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    100%

Everything posted by FrostBug

  1. Try something along these lines (assumes that a knife is present) if(getInventory().contains("Chocolate bar")) { if("Knife".equals(getInventory().getSelectedItemName())) { int slot = getInventory().getSlot("Chocolate bar"); getMouse().click(new InventorySlotDestination(getBot(), slot)); } else { int slot = getInventory().getSlot("Knife"); getMouse().click(new InventorySlotDestination(getBot(), slot)); } }
  2. URLConnection con = submit.openConnection(); instance.log("Submitting statistics..."); con.setDoInput(true); con.setDoOutput(true); con.setUseCaches(false); final BufferedReader rd = new BufferedReader(new InputStreamReader(con.getInputStream())); rd.close(); You 'could' just.. submit.openStream().close();
  3. Sounds like you might not have your camera zoom set at the default level. Please check it
  4. Read the stickies here http://osbot.org/forum/forum/181-sdn-upload-requests/ You can apply for Scripter II from the Scripter private forum once you're Scripter I
  5. List<Item> junk = getInventory().filter(itm -> itm.getName().equals("Junk")); List<Item> trimmed = (junk.size() > 3) ? junk.subList(0, 3) : junk;
  6. It's alright, I found the problem. Client version 2.3.120 changed the default way of finding objects with the client; I've gone ahead and changed it back to the old way. It will be up and running again as soon as the SDN manager reviews the script changes
  7. I think this was an issue with 2.3.119. Have you tried 2.3.120+? Also, for future reference, please include at least some client console output with bug reports, or better yet, fill in the bug report template.
  8. That exception has nothing to do with trading. Seems to just fail when attempting to stop the script
  9. if(getInventory().contains("Peach")) { if(getInventory().contains("Bones")) { getInventory().interact("Break", "Bones to peaches"); } else { stop(true); } }
  10. Does it say that on Paypal, or in your OSBot Client Area? I haven't really heard of a case like that before. Perhaps asking @Maldesto would be the best approach. He's the one who deals with this stuff. I'll give you a trial type auth for now, so you can use that until the payment issues are cleared. I personally always use the standard client; but that's entirely up to you
  11. If there's any approval required, it's probably from Paypals side. Neither me or the Admins/SDN Managers can "approve" payments AFAIK. Did you pay by eCheck or something through paypal?
  12. Please send it to me in a PM thanks Damn, that sucks Sorry for your loss
  13. Started a trial I pray that I may be of assistance in curing said disgruntledness
  14. Well, normally I would do 6 or 12 hours for users with such recent join dates; but since I wasn't able to add it right away (Auths were down) I set it to 24 hours instead.
  15. IDK what you did to make Java fk up; but the reason for logging out is always noted in the client console.
  16. You never stop posting, do you?
  17. It can mean any of 3 things.. 1. You haven't set up the equipment configurations for all enemies (brothers and tunnel creeps) 2. One or more number values are invalid and cannot be parsed as a number (eg. food count, kc count, etc.) 3. You're using one or more weapons of unknown weapon-class; tho this should be unlikely since I believe I have all weapon classes added. It's probably the first; even tho the OP clearly states that you must set up the equipment for every enemy type Starting trial now EDIT: Auth system seems to be down atm; but will add it as soon as it's up again.
  18. Either. As long as you're calling exchangeContext on your Inventory instance
  19. That's going to give you a NullPointerException, though. You have to do an exchangeContext first (MethodProvider#exchangeContext).
  20. myPlayer() is also defined in MethodProvider. Since your Inventory class here does not extend anything, there are no methods beyond the ones you've defined in the class yourself. You have to either pass a reference to your Script instance, and call the MethodProvider methods thru that; or create a new instance of whatever API classes you need, and exchange contexts with them.
  21. getInventory is a method defined in MethodProvider. The Script class inherits from MethodProvider, and that's why you can use it from classes that extend Script. This class does not have any definition of that method, so you cannot use it here. To use it, you should have a reference to the Script instance.
×
×
  • Create New...