Jump to content

Viston

Trade With Caution
  • Posts

    620
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Viston

  1. I appreciate your responds. Your piece of code works Also, just noticed that my code above checks useless stuff in the If statements lel
  2. But will that fix the issue with people splashing on NPCs? Because, isUnderAttack() seems to fix the issue with people normally attacking the NPC. But when people splash on NPCs, you can't see their HitBar, so it doesn't work
  3. So I'm trying to make the bot not attack the NPC that is under attack. I tried using !closestMonster.isInteracting() but no luck. NPC closestMonster = s.getNpcs().closest(Vars.radius, Vars.combatMonster); if (closestMonster != null && !closestMonster.isAttackable() && s.getInventory().contains(Vars.combatFood)) { s.getWalking().walk(closestMonster); } else if (closestMonster != null && !s.myPlayer().isUnderAttack() && s.getInventory().contains(Vars.combatFood)) { if (s.myPlayer().isAnimating()) { Vars.lastAnimation = System.currentTimeMillis(); } else if (closestMonster.interact("Attack") && System.currentTimeMillis() > (Vars.lastAnimation + 1000)) { Paint.status = "Attacking..."; Sleep.sleepUntil(() -> s.myPlayer().isUnderAttack(), 5000); } }
  4. They don't take from your bank a penny, since they are not authorised without your consent. Your paypal balance will just be -. So to be able to use paypal again, you have to clear out your balance.
  5. Welcome, we are in the chatbox if you need anything
  6. I'm thinking it's because of your states. They all have the same if statements. I can't really identify the problem without logging each statement, and see where the issue is. If you want, I can help you via teamviewer.
  7. Are you sure that your inventory is not full before walking to the tree? Also, are you sure that the area you have selected for the yew trees isn't including the bank as well?
  8. Show me the code you have written
  9. Yes, in your WalkToTree method, say something like v if (!WC.contains(myPlayer.getPosition()) { getWalking.walk(yew); } In this, you are saying if the player isn't in the WC area, let's walk to it.
  10. Also, to make your player only cut the yew trees within the area you have selected, you have to do this v RS2Object yew = getObjects().closest(WC, "Yew"); As you can see, you are telling the bot to check the closest tree in the WC area, against the tree "Yew"
  11. You are just calling myPlayer. I think you need to do myPlayer.getPosition() Like this v if(!getInventory().isFull() && WC.contains(myPlayer.getPosition())){ return State.CUT; } Reason is, you want to check the yew area against your players current position.
  12. Viston

    need help

    http://2007rshelp.com/calcs.php?calc=Combat
  13. Viston

    Alias

    Yo, that's sick. Thanks for sharing lad
  14. Viston

    Array of Banks

    Yeah, but these are also not all the banks in RS. I've included custom banks which covers most banks in RS everywhere. Just have to add the banks that are underground.
  15. Viston

    Array of Banks

    I've created this area array of 95 % of the banks in RS. I've been using it, and it works flawlessly. I've ordered the custom banks in an alphabetical order starting from A to Z. This is useful when you are using an AIO script and want to use the closest bank to you. I usually use getWalking.webWalk(banking); webWalk will then calculate the real distance to the closest bank to you. Real distance = Actual walkable tiles to reach your destination. I haven't included some of the banks that are underground, such as Burthorpe. I might update this thread with them later. Feel free to use it
  16. Bruh, I can expect up to 30m if not more for Melee lel
×
×
  • Create New...