tozededao
Community Developer
- Joined
 - Jan 15, 2010
 
- Messages
 - 1,225
 
- Reaction score
 - 5
 
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 :
	
	
	
		
After that add a Golem Stopwatch near all the stop watches
	
	
	
		
On public void Tick() when the game needs update and it resets all the other slots add
	
	
	
		
After that when it reads the slot contents for action bar add :
	
	
	
		
On the task logic where the auras are cast etc add
	
	
	
		
				
			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);
                    }
                }
	





