Hi Guys,
I am hoping to get some help with coding a basic use of desecrate / detonate dead. I believe it should be simple, just not familiar with how to code C#.
Essentially, what I would like EB to do is cast Detonate dead at a target if there are corpses nearby. If there are no corpses nearby, cast desecrate at target mob. Restart back at Detonate dead logic.
Looking over the zombie logic, it seems there is already a way for EB to check for valid corpses. If I had a shred of C# knowledge it would probably be a case of trial and error putting those together in a elseif statement?
- create a skill like _raiseZombieSlot for both desecrate and Detonate Dead
- set it up so that these skills can be auto detected / auto used (akin to totemizer).
- setting up variables needed etc
I'm hoping this would be a 10 minute thing that someone can help with and not require a completely overhauled routine like I'm lead to believe Flameblast needs.
Anyway, if any help can be provided I would greatly appreciate it!
Thanks all.
I am hoping to get some help with coding a basic use of desecrate / detonate dead. I believe it should be simple, just not familiar with how to code C#.
Essentially, what I would like EB to do is cast Detonate dead at a target if there are corpses nearby. If there are no corpses nearby, cast desecrate at target mob. Restart back at Detonate dead logic.
Looking over the zombie logic, it seems there is already a way for EB to check for valid corpses. If I had a shred of C# knowledge it would probably be a case of trial and error putting those together in a elseif statement?
Things I have no idea what to do:// If we have Raise Zombie, we can look for dead bodies to use for our army as we move around.
if (_raiseZombieSlot != -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_raiseZombieSlot);
if (skill.CanUse())
{
var max = skill.GetStat(StatType.NumberOfZombiesAllowed);
if (skill.NumberDeployed < max)
{
// Check for a target near us.
var target = BestDeadTarget;
if (target != null)
{
await DisableAlwaysHiglight();
Log.InfoFormat("[Logic] Using {0} on {1}.", skill.Name, target.Name);
var uaerr = LokiPoe.InGameState.SkillBarPanel.UseAt(_raiseZombieSlot, false,
target.Position);
if (uaerr == LokiPoe.InGameState.UseError.None)
{
await Coroutines.FinishCurrentAction(false);
await Coroutine.Sleep(Utility.LatencySafeValue(100));
return true;
}
Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", uaerr, skill.Name);
}
}
}
}
- create a skill like _raiseZombieSlot for both desecrate and Detonate Dead
- set it up so that these skills can be auto detected / auto used (akin to totemizer).
- setting up variables needed etc
I'm hoping this would be a 10 minute thing that someone can help with and not require a completely overhauled routine like I'm lead to believe Flameblast needs.
Anyway, if any help can be provided I would greatly appreciate it!
Thanks all.