What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Abyssal Cry?

Pochizzle

Member
Joined
Mar 5, 2012
Messages
204
Would like to know if there is a snippet for getting abyssal cry to work.

Have it set to AoE currently, but sometimes will get stuck trying to cast it while on cool down and would like to be able to fix it.

Noticed in old routine there is only the 3 things for enduring cry, which would or could work similar but would like to know if there is anything else to change.

Not knowing what to do here, and just left it as endurance charges, and what I could change to make it not worry about endurance charges since it is not working like I wanted it to.

Assuming trying to read endurance charges, but I could be wrong since I don't see anything that would make it cast the first time, but again I'm not an expert at this.

This is what i added along with setting the skill up to be used

Code:
		// Since AC has a cooldown, we can just cast it when mobs are in range to keep our endurance charges refreshed.
                if (_abyssalCrySlot != -1)
                {
                    // See if we can use the skill.
                    var skill = LokiPoe.InGameState.SkillBarHud.Slot(_abyssalCrySlot);
                    if (skill.CanUse())
                    {
                        if (EnduranceChargesTimeLeft.TotalSeconds < 5 && NumberOfMobsNear(LokiPoe.Me, 30) > 0)
                        {
                            var err1 = LokiPoe.InGameState.SkillBarHud.Use(_abyssalCrySlot, true);
                            if (err1 == LokiPoe.InGameState.UseResult.None) { return true; }

                            Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
                        }
                    }
                }

Sadly, something isn't working how I intended.
Will try to mess with it some, by taking out the endurance charges part but if anyone has any recommendations I would appreciate it.
Will upload routine


EDIT: Took out endurance charge part, and everything seemed to work OK
Seems very spammy though, not sure if it has to do with their being no other check other then mobs being near me, but can't recall if it was showing the same, and deleted the logs.
 

Attachments

Last edited:
Spammy because you took out the only sort of timer function on it (endurance charges). Need to decide how you want to utilize it. Cast it every x seconds? You can add a timer easily that'll do that.
 
Code:
NumberOfMobsNear(LokiPoe.Me, 30) > 0
make it more then 5 mobs
Code:
NumberOfMobsNear(LokiPoe.Me, 30) > 5
so it only procs when there's more then 5 mobs

also you can add
Code:
_bestTarget.Rarity >= Rarity.Rare

So
Code:
if (EnduranceChargesTimeLeft.TotalSeconds < 5 && (NumberOfMobsNear(LokiPoe.Me, 30) > 5 || _bestTarget.Rarity >= Rarity.Rare)

So it procs it when there are more then 5 mobs, or the current target's rarity is a rare or unique.

Idk, good luck.
 
Code:
NumberOfMobsNear(LokiPoe.Me, 30) > 0
make it more then 5 mobs
Code:
NumberOfMobsNear(LokiPoe.Me, 30) > 5
so it only procs when there's more then 5 mobs

also you can add
Code:
_bestTarget.Rarity >= Rarity.Rare

So
Code:
if (EnduranceChargesTimeLeft.TotalSeconds < 5 && (NumberOfMobsNear(LokiPoe.Me, 30) > 5 || _bestTarget.Rarity >= Rarity.Rare)

So it procs it when there are more then 5 mobs, or the current target's rarity is a rare or unique.

Idk, good luck.

The problem is it needs to cast on just one sometimes, but I will add the rarity as I'm sure that will help a bunch.

I may have just been running my bots for too long or something, because it seems to be running fine now, but i will add something to cut down on the spam.

What would I use for every 5 seconds?
 
A timer, check the totem timeout, and use that, use 5000 as a value.
if timer.ElapsedMillisecond > 5000
do logic.
 
Make sure you reset the timer though at the end of the logic for abyssal. Otherwise it'll always return true after the first 5sec the bot is running.
 
That makes sense, I just don't know where to put it.

I didn't think it would go next to the if, since it was a check but I'll try and throw that in and see if it works.

Thanks for the help

Make sure you reset the timer though at the end of the logic for abyssal. Otherwise it'll always return true after the first 5sec the bot is running.

Sadly, not quite to sure how to do that. Will look around the rest of the script for something similar, but won't be home for another hour or two before I can test it out.
 
Last edited:
there are a lot of examples in oldroutine. if you look up top you'll see the section with the stopwatch stuff, just make a new one for abyssalcry then look at one of the skills that's currently using a stopwatch.
 
Thank you widds. Sadly, looking through the private routine, it had a bunch of sets to settings from like Molten shell and stuff that you could set, so finally found one in old routine.

This is what I added
Code:
private readonly Stopwatch _abyssalCryStopwatch = Stopwatch.StartNew();

if (_abyssalCrySlot != -1 &&
				_abyssalCryStopwatch.ElapsedMilliseconds >
				10000)
                {
And then finally this inbetween the Var and If in the actual skill. Hoping it should be enough as I didn't seem to see anything else
Code:
_abyssalCryStopwatch.Restart();

Edit: Seems to be working fine, but now I ran into a problem with it not casting it because it uses my skill first, and doesn't have enough mana.
Should be fine though as soon as I get a lil more mana regen from ascendancy, at least it's not spamming it I believe
 
Last edited:
Back
Top