Jump to content

Eagle Scripts

Lifetime Sponsor
  • Posts

    7149
  • Joined

  • Last visited

  • Days Won

    10
  • Feedback

    100%

Everything posted by Eagle Scripts

  1. How much will it aprox cost for 40 - 99 with this method in cash?
  2. Thinking about doing the first option, randomizing the x & y from 1 - 3 . How would I implement this in my script? I'll past the walking method and path connected to it in pastebin. http://pastebin.com/j7nupvms Could you tell me what to change/add to make this randomizing method?
  3. Hello all, I'd like to know if anybody could help me to make something like a random pathwalking system. I was thinking about my script to go from point A to B with random paths, so it won't walk the same path for hours straight. How would I do this? Also, I was thinking about making a failsafe in the walking, if the player isn't at point A or B, the walking should continue and it should NOT go into another state like WAIT. Every help is appreciated! -Ragfr00b
  4. Using that doesn't work for me. But the other series of dialogues runs fine for me, same method : case WALK_BACK_D1: if(dialogues.isPendingContinuation()) { dialogues.clickContinue(); sleep(random(200, 700)); } else if(dialogues.isPendingOption()) { dialogues.selectOption("Yes please."); sleep(random(200, 700)); } else { Entity sailor = npcs.closest("Seaman Thresnor", "Seaman Lorris", "Captain Tobias"); if (sailor!= null) { sailor.interact("Pay-fare"); } else { log("Sailor is null"); } } sleep(random(200, 600)); break;
  5. Yes, you are right i'm still looking into all of it. Could you rewrite this code for me with the method you just did? http://pastebin.com/SEMnP0FX
  6. Your work looks awesome! I'm working on a Karamja F2P / P2P Fisher with bank & powermine option. Any chance you could make such a sexy paint for it? ;)
  7. Hello fellas it's me again, I'm trying to get my script past a series of dialogues, where there is a continue option or 2 options to choose the script manages to click my chosen option. When the script is at the dialogue which contains 3 options, it somehow fails to choose the option i want it to choose. Does anybody know why this is / how to fix this? My code : case WALK_BANK_D1: if(dialogues.isPendingContinuation()) { dialogues.clickContinue(); sleep(random(200, 600)); } else if(dialogues.isPendingOption()) { dialogues.selectOption("Can I journey on this ship?"); sleep(random(200, 600)); } else if(dialogues.isPendingOption()) { dialogues.selectOption("Search away, I have nothing to hide."); sleep(random(200, 600)); } else if(dialogues.isPendingOption()) { dialogues.selectOption("Ok."); sleep(random(200, 600)); This is where the problem occurs : } else if(dialogues.isPendingOption()) { dialogues.selectOption("Search away, I have nothing to hide."); sleep(random(200, 600));
  8. So what would the new full case bank be?
  9. So I'm trying to let my script deposit all except *something*, if in the deposit box's area. It opens the deposit box, so that's good. It doesn't deposit all except *something*, it deposits everything Even though i'm telling it to deposit except certain items, so this is why I'm asking for help what I should do so it deposits all but certain items. My code so far : case BANK: if (inventory.isFull() && BANK_AREA.contains(myPlayer())); Entity BANK = objects.closest("Bank deposit box"); log("Bank deposit box null?: " + (BANK == null)); log("Bank deposit box has Deposit action: " + BANK.hasAction("Deposit")); if (!depositBox.isOpen()) { if (depositBox != null) { if (depositBox.open()) sleep(random(1000, 3000)); } } else if (!inventory.isEmpty()) { if (depositBox.depositAllExcept("Lobster pot, Coins, coins, Harpoon")) sleep(1000); } Thanks in advance,
  10. So thanks to some help from Precise I mentioned to make a little progress : The script now knows not to drop the net and starts fishing. I'm still running into a problem --> It keeps spam clicking to fish (since I haven't given it a 'confirmation' on whether it is fishing or not). Could you help me to make the script detect wether I am fishing or not, which prevents it from spam clicking the fishing option? My Code so far : import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Labyrinth", info = "PowerFisher", name = "Simple Fisher", version = 0.1, logo = "http://imgur.com/bXr0Is1") public class main extends Script { @Override public void onStart() { log("Let's catch some fish!"); log("If you encounter any bugs or errors please report them on the forums"); log("Goodluck gaining!"); } private enum State { FISH, DROP, WAIT }; private State getState() { Entity FS = npcs.closest("Fishing spot"); if (!inventory.isEmptyExcept("Small fishing net")) return State.DROP; if (FS != null) return State.FISH; return State.WAIT; } @Override public int onLoop() throws InterruptedException { log(getState()); switch(getState()) { case FISH: Entity FS = npcs.closest("Fishing spot"); log("Fishing spot null?: " + (FS == null)); if (FS!= null) { log("Fishing spot has Net action: " + FS.hasAction("Net")); FS.interact("Net"); } break; case DROP: inventory.dropAllExcept("Small Fishing net"); break; case WAIT: sleep(random(500, 1300)); break; } return random(300, 900); } @Override public void onExit() { log("Thanks for running my SimpleFisher!"); } @Override public void onPaint(Graphics2D g) { } }
  11. Heya Apaec, Thanks for your guide, because of this i'm actually looking into making my own scripts. I'm actually trying to make a simple Shrimp powerfisher (catch the shrimp and drop all once inv is full, EXCEPT the fishing net) I'm struggling trying to drop everything BUT the fishing net. Could you help me out? Code i have right now: import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Labyrinth", info = "PowerFisher", name = "Simple Fisher", version = 0.1, logo = "https://bloggermymaze.files.wordpress.com/2010/12/mymaze_2010_tudor_labyrinth.jpg") public class main extends Script { @Override public void onStart() { log("Let's catch some fish!"); log("If you encounter any bugs or errors please report them on the forums"); log("Goodluck gaining!"); } private enum State { FISH, DROP, WAIT }; private State getState() { Entity FS = objects.closest("Fishing spot"); if (!inventory.isEmpty()) return State.DROP; if (FS != null) return State.FISH; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case FISH: Entity FS = objects.closest("Fishing spot"); if (FS!= null) { FS.interact("Net-from"); } break; case DROP: inventory.dropAll(); break; case WAIT: sleep(random(500, 1300)); break; } return random(300, 900); } @Override public void onExit() { log("Thanks for running my SimpleFisher!"); } @Override public void onPaint(Graphics2D g) { } }
×
×
  • Create New...