Jump to content

Zee Best

Members
  • Posts

    76
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

744 profile views

Zee Best's Achievements

Iron Poster

Iron Poster (3/10)

15

Reputation

  1. Yes, but you could click to smelt, then level up and you'd still have ores in your inventory but you wouldn't be smelting. The solution you posted is idiotic. The only way that would work would be to store the amount of ores you have and keep checking for a change within a certain time else smelt again, which isn't what you said. That's horrible, why would you sleep in a method that's trying to work out if you're busy?
  2. I don't know what game you're playing but I've written a few scripts in the last month and none of them have broken using object ID's.
  3. Because what if the script doesn't start smelting at all? Or events that interrupt actions such as levelling up.
  4. As others have said wrap your onStart method in a try catch statement. You could print the track stace like; try { /* YOUR CODE HERE */ } catch(final Exception e) { final StackTraceElement[] stack = e.getStackTrace(); for (final StackTraceElement ste : stack) log(ste.getMessage()); } The only area I can see any error potentially being thrown there is your Integer.parseInt, make sure that the text doesn't have trailing or leading whitespace, you can use .trim() to ensure that. Also, print it out to see what it's actually trying to parse to ensure it's not going to throw a NumberFormatException.
  5. Why are you using the 'this' keyword on every reference to a method within the class? The only time you should use 'this' is when you write a method and the parameter names are the same as variables in your class, or when you've got multiple constructors and you want to return a different one.
  6. Since when? Object ID's do not change. If you're talking about objects specific to the player such as hunter spots then you can determine what the object is based on specific Varbits.
  7. Eww, bit of a horrible way to use it, sleep is a boolean that blocks until the timer is reached, therefore; final ConditionalSleep smelting = new ConditionalSleep(random(1500, 1800)) { @Override public boolean condition() { return myPlayer().isAnimating(); } }; if(smelting.sleep()) log("We are smelting"); else log("We are idle.");
  8. Were you being literal in that you are using a binary file and they're allowing it or you're using plain text? It's going to restrict a lot of stuff I can do. I don't understand why'd they block the download of raw data, I know you're saying about transferring of viruses and such as I'm pretty sure they already restrict the download location of files as well as runtime executing. All that along with the fact they have to verify each upload surely it's not feasible to do that? EDIT: The script I'm wanting to release would be premium, do they have exceptions for that? Since it's more professional and I'd have more to gain from selling it than from trying to manipulate it lol?
  9. Yeah, I knew about using resources stored in a Jar file but are there any limits to size? I may have to rethink my design and grab every single image and store those in an archive on the first run of the script. I don't understand why they would block binary downloads, how do people who make webwalking systems store their data? Hardcoded? Perhaps I can write a different storage format than PNG, such as how the RS client stores images with a palette however I'm not sure how I'll be getting the file size down that much! Already pruned tonnes of images by creating a lookup table and storing duplicate item images as a single.
  10. So you're allowed to use a BufferedReader? I'm pretty sure any file could be downloaded using a BufferedReader since UTF-8 uses 1 byte per character anyway? My file is an archive I made that contains all inventory sprites of every item, along with a lookup table for IDs etc. So it's 5.5mb if I compress it. Yeah I meant caching the file, hence why I said I didn't want to put it into the resources in the Jar file. For the single auth I'll just use the system I already have in place for dynamic signatures, so each time it pings I can check against the last ping for that OSBot user. -_ Also, are the same security settings in place for running local scripts? As I want to test the whole downloading thing but don't want to assume that if it works on a local script it will work on remote ones.
  11. I'm close to having my first decent script ready for release, however, there are a couple questions I'd like to ask before finishing it up. 1. Are we allowed to create connections to websites and download files? I'm assuming this is allowed as the scripts have to be checked before being accepted anyway. This is due to my script having a large amount of data/images stored in an archive. The file is too large to be added to resources as the user would have to keep downloading 5mb+ each time they run the script. 2. Is there a way to set single use on a script? So, if the user buys the script they can only use it on 1 account at a time. If this is not an option is it allowed for me to implement my own system?
  12. Yeah, I've seen the events but are they executed on a different thread? Yeah, although that's a very hacky way. EDIT: I created a simple method that firsts hovers the entity, then checks the menu's tooltip to see if it's left click. If not it will right click and open the menu then try and select the action.
  13. Basically, the API has become so noob-friendly that methods such as entity#interact will attempt to rotate the camera/walk to the entity. I've tried using hover() followed by menu.selectAction however that seems to fail unless the menu is actually open. Anyone else got any ideas?
  14. The guy at g.e. decants noted potions he meant.
  15. The camera class seems to be broken at the moment, manually setting the Yaw or using toEntity/toPosition doesn't work 99% of the time.
×
×
  • Create New...