Jump to content

hunterl31

Members
  • Posts

    33
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

hunterl31's Achievements

Bronze Poster

Bronze Poster (2/10)

2

Reputation

  1. import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "H", info = "My Willow Cutter", name = "H", version = 0.1, logo = "") public class main extends Script { @Override public void onStart() { log("Welcome to my simple willow cutter"); } private enum State { CUT, DROP, WAIT }; private State getState() { Entity tree = objects.closest("Willow"); if (!inventory.isEmpty()) return State.DROP; if (tree != null) return State.CUT; return State.WAIT; } @Override public int onLoop() throws InterruptedException { log("Loop reached"); switch (getState()) { case CUT: Entity tree = objects.closest("Willow"); if (tree != null) { tree.interact("Chop down"); } break; case DROP: inventory.dropAll(); break; case WAIT: sleep(random(500, 700)); break; } return random(200, 300); } @Override public void onExit() { log("Thanks for running my Willow cutter!"); } @Override public void onPaint(Graphics2D g) { } } I recently started scripting again and thought I would try and make a simple woodcutter as practice. However no matter what I do my osbot does not seem to want to run scripts. This is the code I came up with for my willow cutter, nothing special at all. I am using the latest version 2.3.106. The same happens with all of the free woodcutting scripts as well. Any ideas as to what the problem could be? Edit: Before anyone asks, I am using the latest version of java, eclipse etc... and I am exporting as a jar file to the osbot scripts folder as well as adding the osbot jar to the build path in my project.
  2. Ya it seems to be an issue with all scripts, not just local ones. Ive tried all the free woodcutting bots (thats what im trying to do as my practice run) and they still get stuck at start, the onStart function doesnt even run. It seems to be a problem with my client and not something with the code but thank you for your help!
  3. Hey man thanks for the awesome tutorial! I am just now getting back in to coding with osbot and im having an issue where scripts that i run dont really start. i even copied the code in your tutorial line for line to see if it was an issue with my code and still the same error. Have you ever heard of this and do you know of a fix?
  4. The spot you are hunting at only has 2 red chinchompa spawns, if you go to the north west section of that lake, there is an area where 3 red chins spawn, it makes quite the difference in your catch rate.
  5. http://2007.runescape.wikia.com/wiki/Larupia_hunter_gear according to the wiki it does
  6. at 70 Hunter i would say that 180 an hour isn't too far off what you should be getting. If you aren't wearing full laurpia (no idea how to spell that) then I would suggest investing in a set. My favorite spot to hunt them is northwest of the teardrop shaped lake right along the edge of runescape. or at the north east corner of the U shaped lake.
  7. I have a script that is almost ready for release, however I can't get it to display an image over the chat box like almost every other script does. I have tried using a JLabel but I still couldn't get it to work. If someone who has experience with displaying images could point me towards a tutorial or briefly describe how to do this i would be very appreciative.
  8. I have been trying to find a tutorial that shows how to create the options menu that pops up once you start the script but before it starts doing anything. If anyone can give me a quick run down or point me in the right right direction i would greatly appreciate it.
×
×
  • Create New...