Jump to content

Joseph

Trade With Caution
  • Posts

    4692
  • Joined

  • Last visited

  • Feedback

    91.3%

Everything posted by Joseph

  1. You could apply it once your script is loaded if you want.Component c = JFrame.getWindows()[0]; c.addComponentListener(new WindowSnap(c.getBounds())); So where would I have to put that code at? Since you said "once your script is loaded" I'm guessing onStart().
  2. If only we could apply this to the actual client
  3. Oh damn, I really wanted to know his little secret method of making money Oh damn, I really wanted to know his little secret method of making money Oh damn, I really wanted to know his little secret method of making money
  4. if (random(100)==00){ client.rotateCameraPitch(65+random(0,360)); } First, pitch is when you move your screen up and Down.Second, 67 is the max pitch. If I'm not mistaken.
  5. I'm pretty sure that pitches don't get high then 67 so you sir are trolling
  6. I know I just don't want to give it out.
  7. Anti ban I don't use it. Fuck it, that's my own risk. Chop method A simple interact with a tree Nest dection Use onMessage, it you get message about nest on floor or what not. Search ground item for nest pick it up. And keep wood cutting
  8. This isn't a request sub forum. Why you trying to steal from me
  9. Joseph

    My first script!

    I learned from making a mining not. But wood cutting/mining are like
  10. i dont even know if your joking around or serious. Code: import org.osbot.script.Script; import org.osbot.script.ScriptManifest; import org.osbot.script.rs2.utility.Area; @ScriptManifest(name = "", author = "", version = 1D, info="") public class hi extends Script { //your variable //bankArea //tree area //tree ints //anything else you need enum State { CutTree, WalkToBank, Bank; } private State state; public static Area bankArea = new Area(0, 0, 0, 0);//add your area with in here public static Area treeArea = new Area(0, 0, 0, 0);// add your area here public void onStart(){ if (client.getInventory().isFull()){ state = State.WalkToBank; } else if (myPlayer().isInArea(treeArea)){ state = State.CutTree; } } public int onLoop() throws InterruptedException{ switch (state){ case CutTree: return first(); case WalkToBank: return second(); case Bank: return third(); } return random(10, 20); } int first() throws InterruptedException { if (myPlayer().isInArea(treeArea)) { //Cut trees //and any other code you want to put here } return 500; } int second() throws InterruptedException{ if (client.getInventory().isFull()){ if (!myPlayer().isInArea(bankArea)){ walk(bankArea); } else if (myPlayer().isInArea(bankArea)){ //interact with bank and so on } else if (client.getBank().isOpen()){ state = State.Bank; } } return 200 + random(100,500); } int third() throws InterruptedException{ if (client.getBank().isOpen() && client.getInventory().isFull()){ //deposit all or what ever } else if (client.getBank().isOpen() && !client.getInventory().isFull()){ // close bank and do what ever you want. } else if (!client.getBank().isOpen() && client.getInventory().isFull()){ state = State.WalkToBank; } return 100; } }
  11. Nope check your message
  12. Sure. edit: remove the oce i had here. Tooo many errors. edit 2: add new code with out error. at the post below
  13. What you put in the enum are the cases, which are states.
  14. Ande don't you have something like this on your bot. I tryed it won't it didn't work out so good.
  15. Retyping I just save this in my eclipse as a new class file and when ever I need it I just copy and paste. And there tons of Skelton script out there in the forum.
  16. I appreciate you taking the time to write up this little helpful tutorial. This will help out many people. I will be using this soon on my scripts.
  17. So how would you use this. Sleep(500+200,300);
  18. i could also help you, Skype name jose.dpay
×
×
  • Create New...