Since new included routine does not have Golem Support here's what you have to add to do to make it summon your Golem. At the beginning of the cs, where all the other slots are declared add : Code: private int _golemSlot = -1; After that add a Golem Stopwatch near all the stop watches Code: private readonly Stopwatch _golemStopwatch = Stopwatch.StartNew(); On public void Tick() when the game needs update and it resets all the other slots add Code: _golemSlot = -1; After that when it reads the slot contents for action bar add : Code: var golem = LokiPoe.InGameState.SkillBarPanel.Skills.FirstOrDefault(s => s.Name == "Summon Flame Golem"); if (IsCastableHelper(golem)) { _golemSlot = golem.Slot; } golem = LokiPoe.InGameState.SkillBarPanel.Skills.FirstOrDefault(s => s.Name == "Summon Ice Golem"); if (IsCastableHelper(golem)) { _golemSlot = golem.Slot; } golem = LokiPoe.InGameState.SkillBarPanel.Skills.FirstOrDefault(s => s.Name == "Summon Chaos Golem"); if (IsCastableHelper(golem)) { _golemSlot = golem.Slot; } On the task logic where the auras are cast etc add Code: if (_golemSlot != -1 && _golemStopwatch.ElapsedMilliseconds > 10000) { // See if we can use the skill. var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_golemSlot); if (skill.CanUse() && skill.NumberDeployed < 1) { var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_golemSlot, true); _golemStopwatch.Restart(); if (err1 == LokiPoe.InGameState.UseError.None) { await Coroutine.Sleep(Utility.LatencySafeValue(500)); await Coroutines.FinishCurrentAction(false); await Coroutine.Sleep(Utility.LatencySafeValue(100)); return true; } Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name); } }
Damn dude thanks a ton for this! Working strong! Anyone that is too lazy to do this, here is the slightly modified old routine file. Go to your bot location -> Routines -> Replace OldRoutine.cs DONT FORGET TO MAKE A BACKUP IF I SCREWED SOMETHING UP! View attachment OldRoutine.cs Edit: Also for any newbs, where he says "golemSlot = -1;" he really means "_golemSlot = -1;" Edit2: The beautiful bastard fixed it!
great thanks, will try this! @devs: please include in the next update. i hope these manually changes don't screw up the bot.
ok for some reason the code he made causes an issue were the bot may randomly hang. You'll see nothing but "Highest latency", "lowest latency" ect on the log. removing the golem from my cast bar fixed it, i'll look through the code and find out what happened
I'm using a similar version of this snippet without the stopwatch (who care of the time it stays alive) the latencytracker is here for info, not when the bot is hanging. (For example I use it to dynamically change my sleep times in AIF) so I would say it's based on server lags due to lockstep.
@Synchro No. That option is for something else related to build. Place skill in skill bar and it will auto summon. Heres the updated one for the lazy xD
Many thanks tozededao! Had some error messages with the attached file so I edited my own one - in case anyone has any probs with the previously posted one View attachment OldRoutine.cs
maybe one more suggestion: If there are no enemies in the combat range and the golem doesn't have full life, resummon it. Otherwise you could enter a fight with the golem at 1% life.