Jump to content

Eagle Scripts

Lifetime Sponsor
  • Posts

    7259
  • Joined

  • Last visited

  • Days Won

    12
  • Feedback

    100%

Everything posted by Eagle Scripts

  1. Trial granted so you can actually tell me
  2. Sure thing. Granted
  3. Sure thing. Granted
  4. Due a combination of your join date and post count I won't be able to grant you a trial.
  5. Unfortunately, I can't check whether you actually used it so I won't be able to grant you another trial -- sorry
  6. Thanks
  7. Please make sure that you have used the mini-game teleport at least once manually yourself. I think this is the error
  8. 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)
  9. 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 ?
  10. Please do indeed try to catch the error . Mind also trying if this occurs if you're not using mirror mode?
  11. @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 .
  12. The OT states how to start it
  13. 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
  14. Granted
  15. 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 .
  16. You've been granted access to the beta.
  17. @SocialGFX Somehow my Discord won't send you a friend's request. Could you send me one instead? Eagle Scripts#5266
  18. It's not necessarily bad but the old one was 10x better
  19. Nice one! On a more serious note: where is that good-looking old khal paint?
  20. Sure thing! Granted
  21. Both granted .
  22. Granted!
  23. Of course. Granted
×
×
  • Create New...