PrinzValium
New Member
- Joined
- Sep 6, 2014
- Messages
- 19
- Reaction score
- 0
I tried to make the bot cast tempest shield but for some reason it doesn't work.
I added a variable where all other slots are declared as variables:
added a stopwatch:
added this single line ( _tempestShieldSlot = -1; ) under public void Tick () where all the other slots are reset
added this where the other skills in the skill bar get recognized:
and finally the logic for casting:
When I try using it like this "OldRoutine" doesn't even show up in Exilebuddy.
Any ideas how to solve this?
I added a variable where all other slots are declared as variables:
Code:
private int _tempestShieldSlot = -1;
added a stopwatch:
Code:
private readonly Stopwatch _tempestShieldStopwatch = Stopwatch.StartNew();
added this single line ( _tempestShieldSlot = -1; ) under public void Tick () where all the other slots are reset
Code:
public void Tick()
{
if (!LokiPoe.IsInGame)
return;
if (_needsUpdate)
{
_tempestShieldSlot = -1;
added this where the other skills in the skill bar get recognized:
Code:
var tempestShield = LokiPoe.InGameState.SkillBarHud.Skills.FirstOrDefault(s => s.Name == "Tempest Shield");
if (IsCastableHelper(tempestShield))
{
_tempestShieldSlot = tempestShield.Slot;
}
and finally the logic for casting:
Code:
// Tempest Shield
if (_tempestShieldSlot != -1 && _tempestShieldStopwatch.ElapsedMilliseconds > 15000)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarHud.Slot(_tempestShieldSlot);
if (skill.CanUse() && skill.NumberDeployed < 1)
{
await DisableAlwaysHiglight();
await Coroutines.FinishCurrentAction();
var err1 = LokiPoe.InGameState.SkillBarHud.UseAt(_tempestShieldSlot, true, myPos);
if (err1 == LokiPoe.InGameState.UseResult.None)
{
_tempestShieldStopwatch.Restart();
await Coroutines.FinishCurrentAction(false);
return true;
}
Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", err1, skill.Name);
}
}
When I try using it like this "OldRoutine" doesn't even show up in Exilebuddy.
Any ideas how to solve this?
Last edited:






