Jump to content

Ateria

Lifetime Sponsor
  • Posts

    18
  • Joined

  • Last visited

  • Feedback

    0%

About Ateria

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ateria's Achievements

Newbie

Newbie (1/10)

3

Reputation

  1. That seems to work for the tasks so far, thanks
  2. I was going to do that, but it's for a slayer script and with the amount of tasks there are, i'd have to go through enum and add attack animations one by one after getting them in-game which'd take a long time. Is it not possible to do it another way?
  3. Here's the current code I have for prayer flicking: private void handlePrayerFlicking() { if (getSkills().getStatic(Skill.PRAYER) >= 37 && !canFlickMage) canFlickMage = true; if (getSkills().getStatic(Skill.PRAYER) >= 40 && !canFlickRange) canFlickRange = true; if (getSkills().getStatic(Skill.PRAYER) >= 43 && !canFlickMelee) canFlickMelee = true; if (myPlayer().getInteracting() != null && myPlayer().getInteracting() instanceof NPC) { NPC npc = ((NPC) myPlayer().getInteracting()); if (npc.getHealthPercent() > 0 && npc.exists()) { if (!npc.isAnimating() && !getPrayer() .isActivated(currentNPCAttackStyle.equalsIgnoreCase("mage") ? PrayerButton.PROTECT_FROM_MAGIC : currentNPCAttackStyle.equalsIgnoreCase("range") ? PrayerButton.PROTECT_FROM_MISSILES : PrayerButton.PROTECT_FROM_MELEE)) { if ((canFlickMage && currentNPCAttackStyle.equalsIgnoreCase("mage")) || (canFlickRange && currentNPCAttackStyle.equalsIgnoreCase("range")) || (canFlickMelee && currentNPCAttackStyle.equalsIgnoreCase("melee"))) { if (getPrayer() .set(currentNPCAttackStyle.equalsIgnoreCase("mage") ? PrayerButton.PROTECT_FROM_MAGIC : currentNPCAttackStyle.equalsIgnoreCase("range") ? PrayerButton.PROTECT_FROM_MISSILES : PrayerButton.PROTECT_FROM_MELEE, true)) { } else { } } } else { if (getPrayer().isActivated( currentNPCAttackStyle.equalsIgnoreCase("mage") ? PrayerButton.PROTECT_FROM_MAGIC : currentNPCAttackStyle.equalsIgnoreCase("range") ? PrayerButton.PROTECT_FROM_MISSILES : PrayerButton.PROTECT_FROM_MELEE)) { Sleep.waitCondition(() -> npc.isAnimating() || npc.getHealthPercent() == 0, 300, 1500); if (getPrayer() .set(currentNPCAttackStyle.equalsIgnoreCase("mage") ? PrayerButton.PROTECT_FROM_MAGIC : currentNPCAttackStyle.equalsIgnoreCase("range") ? PrayerButton.PROTECT_FROM_MISSILES : PrayerButton.PROTECT_FROM_MELEE, false)) { } else { } } } } } } This works fine with most npcs, other than those that have longer attack delays, like hill giants. Whenever the npc performs their defense animation, prayer will still flick as they're 'animating'. I only want the prayer to flick off if it's their attack animation. Is it possible to determine if the current animation an npc is performing is their defense animation or is there a better way to add prayer flicking?
  4. Ateria

    Stealth Quester

    Yep, realised after I posted, sorry.
  5. Ateria

    Stealth Quester

    Animal magnetism: [INFO][Bot #1][10/07 12:52:58 PM]: Loaded 4 built-in random solvers! [INFO][Bot #1][10/07 12:53:28 PM]: started in normal mode [INFO][Bot #1][10/07 12:53:31 PM]: [ERROR] Current quest: Animal Magnetism [INFO][Bot #1][10/07 12:53:31 PM]: [ERROR] You do not meet the requirements for the current quest [INFO][Bot #1][10/07 12:53:32 PM]: [PROGRESS] Task complete [INFO][Bot #1][10/07 12:53:32 PM]: [PROGRESS] Task complete [INFO][Bot #1][10/07 12:53:32 PM]: Terminating script Stealth Quester... [INFO][Bot #1][10/07 12:53:32 PM]: Script Stealth Quester has exited! I do have the requirements https://i.imgur.com/ZJq2ZxW.png
  6. The profit is way off with that, this is the code now: double profitPerHour = (long) ((looted * (3600000.0 / elapsedTime))*3600000)/(hours <= 0 ? 1 : hours); and here's the estimated profit after running for 16 mins: Edit: Nevermind, this code works as intended, thanks @battleguard double profitPerHour = (long) (looted * (3600000.0 / elapsedTime))/(hours <= 0 ? 1 : hours);
  7. I have two integers, looted (the total price of all items looted) and the current running time in hours/minutes/seconds. To get the profit per hour initially, I did looted / (hours <= 0 ? 1 : hours) The problem with this is, it will only update hourly, and it'll almost always be incorrect as it only goes by the hours. So the script would need to be run for a minimum of 1 hour, then it would only update every hour. Is it possible to get the current estimated profit per hour from these two integers? (so it'll update every second with an estimated hourly profit)
  8. Sorry, should've gone into more detail. I've already got the enchanted gem in the inventory, how would I parse the text from the chatbox after checking the kills left? if (getInventory().interact("Check", "Enchanted gem")) { log("Checked kills-left."); if (getChatbox().contains(MessageType.GAME, "You're assigned to kill")) { //parse the text return "Parsed text from chatbox?"; } } else { log("Couldn't interact with enchanted gem."); }
  9. How could I get the players current slayer task?
  10. Flawless so far, however at Canifis, it sometimes clicks the first obstacle (Tall tree) too quickly after clicking the final one so the click doesn't register. Then takes around 20 seconds or so to click it again, looks really bot-like. Waiting a second or so longer would be great or retrying the obstacle sooner.
  11. Doesn't register stun time correctly (doesn't change timer on paint + keeps trying to thieve men while stunned).
  12. Ateria

    Stealth Quester

    Nope, stealth injection with all normal settings. It did buy a spade from grand exchange i believe, just didn't withdraw it for the quest.
  13. Ateria

    Stealth Quester

    Didn't bring a spade or try to obtain one from the other side of the mansion during ernest the chicken. (Need a spade to find the key in the compost - can't search it with your hands)
×
×
  • Create New...