Jump to content

Eagle Scripts

Lifetime Sponsor
  • Posts

    7267
  • Joined

  • Last visited

  • Days Won

    12
  • Feedback

    100%

Everything posted by Eagle Scripts

  1. Nice one buddy!
  2. Are you using mirror mode?
  3. It’s important to start it as the thread states
  4. Sure thing. Trial granted .
  5. This script is not progressive .
  6. Please tell me you've started it as the thread states. I'm unfortunately, due to the combination of your join date and post count, not able to grant you a trial.
  7. Sure thing. Trial granted
  8. Trial granted . All you need is farming equipment, the script supports allotments that are lvl 1's .
  9. Trial granted so you can actually tell me
  10. Sure thing. Granted
  11. Sure thing. Granted
  12. Due a combination of your join date and post count I won't be able to grant you a trial.
  13. Unfortunately, I can't check whether you actually used it so I won't be able to grant you another trial -- sorry
  14. Thanks
  15. Please make sure that you have used the mini-game teleport at least once manually yourself. I think this is the error
  16. What traversing methods are you using? The following is for me, you can ignore this: [ERROR][Bot #1][12/08 07:24:57 PM]: Error in script executor! java.lang.NullPointerException at a.c.AUx.l(a:56) at b.b.AUx.l(fb:181) at b.b.AUx.l(fb:106) at b.AUx.l(kb:96) at core.MainDriver.onLoop(rb:42) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(pe:37) at java.lang.Thread.run(Unknown Source)
  17. It freezing can be caused by an error in the script that keeps being thrown so fast the client can't keep up. Make sure to open the logger before your script is being started and voila ?
  18. Please do indeed try to catch the error . Mind also trying if this occurs if you're not using mirror mode?
  19. @Override public final void onStart() { } No need to include this if you're simply overriding a method with an empty body. You can remove the entire onStart . ^^ Same applies for onPaint. private void walkToChickenPen(){ Area chickenPen = new Area(3225, 3301, 3235, 3288); log("Walking back to pen"); getWalking().webWalk(chickenPen); //Web as gate may be closed log("Back at pen"); } you can move the chickenPen up one level: private static final Area CHICKEN_PEN = new Area(3225, 3301, 3235, 3288); fightChicken(); new ConditionalSleep(5000, 500) { @Override public boolean condition() throws InterruptedException { log("Waiting to see if we fight a chicken"); return (getCombat().isFighting() || !myPlayer().isMoving()) ; } }.sleep(); Since you're already making a separate method for attacking the chicken; why not sleep inside that method as well? Remove the sleep here. private boolean fightChicken(){ NPC chicken = npcs.closest(new Filter<NPC>() { @Override public boolean match (NPC npc) { return npc.exists() && npc.getName().equals("Chicken") && npc.isAttackable() && npc.getHealthPercent() >0; } }); if (chicken == null){ log("Found no chickens :("); return false; } else { if(chicken.isOnScreen()) { chicken.interact("Attack"); log("Fight that chicken"); return true; } else { //how? return false; } } } The above method can be refactored to: private void fightChicken(){ final NPC chicken = getNpcs().closest(npc -> npc.exists() && npc.getName().equals("Chicken") && npc.isAttackable() && npc.getHealthPercent() > 0); if (chicken != null) { if (chicken.isOnScreen()) { log("Fight that chicken"); if (chicken.interact("Attack")) { new ConditionalSleep(5000, 500) { @Override public boolean condition() throws InterruptedException { log("Waiting to see if we fight a chicken"); return (getCombat().isFighting() || !myPlayer().isMoving()) ; } }.sleep(); } } } else { log("Found no chickens :("); } } Also; notice how I changed the method's type from boolean to void? There's no point in making it a boolean method if you're not doing anything with its return value .
  20. The OT states how to start it
  21. Please visit my Discord and ask for the beta status. Make sure to give your OSBot Profile in there to verify it's you. https://discord.gg/tvXQfwa
  22. Granted
  23. Went ahead and granted you a trial. If the script does not turn up in your script selector it means you've already had your trial once .
  24. You've been granted access to the beta.
×
×
  • Create New...