Jump to content

Prolax

Members
  • Posts

    1731
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Prolax

  1. Great scripter, should be rank II already.
  2. Too late for that, Android and iOS control the market.
  3. Indeed, I noticed the same. Just a random delay or conditional sleep?
  4. Does anyone have a method to hover over next npc for a combat script? Or some advice on how to write my own method for this? Thanks!
  5. For example in your onLoop, you just call the method attackNpc(), no need for states. But that's just how I prefer it. if (gull != null && !gull.isUnderAttack() && !gull.isHitBarVisible()) attackNpc(); } I tried the script, the attacking of the next seagull could be a bit faster. Very nice for your first script though.
  6. Tutorial Island accounts 1 week old at lumbridge are 100k each. Walking to GE can be done in 1 line of code.
  7. Instead of states you could just use methods. I'll test it today.
  8. Nice achievement, you going to continue till 99?
  9. public final class ProlaxAutoFighter extends Script { private NPC seagull; @Override public final int onLoop() throws InterruptedException { seagull = getNpcs().closest(npc -> npc.getName().equals("Seagull")); if (!myPlayer().isInteracting(seagull) && seagull != null && !seagull.isUnderAttack() && seagull.getHealthPercent() > 0 && !getCombat().isFighting()) { attackNpc(); } return random(100,300); } public void attackNpc(){ NPC seagull = getNpcs().closest(npc -> npc.getName().equals("Seagull")); seagull.interact("Attack"); new ConditionalSleep(3000,500) { @Override public boolean condition() { return seagull.getHealthPercent() == 0 || getCombat().isFighting() || seagull == null; } }.sleep(); } } Runs pretty good now. Is there any better way to store the seagull variable once?
  10. Thanks for your amazing advice!
  11. Currently have this stats on an account: 70 att 71 str 70 def I'd like to try and bot it to 99 str. I guess Dharok @ NMZ would be the best option?
  12. "I done this hole my life bro" Haha. Ha. retard.
  13. Nice achievement, let us know when you reach it.
  14. States make it messy. But that's my opinion.
  15. You mostly use dharok afking I guess?
  16. Hmm, still attacks the npc twice. Anything I can add? public final class ProlaxAutoFighter extends Script { @Override public final int onLoop() throws InterruptedException { if (!"Seagull".equals(myPlayer().getInteracting()) && !getCombat().isFighting()) { attackNpc(); } return random(100,300); } public void attackNpc(){ NPC seagull = getNpcs().closest(npc -> npc.getName().equals("Seagull") && npc.isAttackable()); if (seagull != null && !seagull.isUnderAttack() && !seagull.isAnimating() && seagull.interact("Attack")) { new ConditionalSleep(5000) { @Override public boolean condition() { return myPlayer().isInteracting(seagull) || !seagull.isAttackable(); } }.sleep(); } } }
  17. Thanks a lot, good to learn. Is this if statement in the onLoop enough? The script clicks twice on the npc though, when attacking. Not sure why atm. public final class ProlaxAutoFighter extends Script { @Override public final int onLoop() throws InterruptedException { if(!myPlayer().isUnderAttack() && !getCombat().isFighting()) { attackNpc(); } return random(100,300); } public void attackNpc(){ NPC seagull = getNpcs().closest(npc -> npc.getName().equals("Seagull") && npc.isAttackable()); if (seagull != null && !seagull.isUnderAttack() && seagull.interact("Attack")) { new ConditionalSleep(5000) { @Override public boolean condition() { return myPlayer().isInteracting(seagull) || !seagull.isAttackable(); } }.sleep(); } } }
  18. Thanks for the info!
×
×
  • Create New...