public static void CheckHealthGlobe()
{
//Look for health globe within 20 yards
try
{
int globes = ZetaDia.Actors.GetActorsOfType<DiaItem>().Count(IsValidHealthGlobe);
if (globes > 0)
Helpers.SetTrue("Health Globe");
}
catch (Exception e)
{
Plugin.WriteToLog("Error looking for Health Globe!", e);
}
}
private static bool IsValidHealthGlobe(DiaItem unit)
{
try
{
if (unit != null && unit.IsValid && unit.ActorSNO == 4287 && unit.Distance <= 20f)
{
return true;
}
}
catch
{
return false;
}
return false;
}
I'm attempting to add Thing of the Deep on a health globe check, does this look right? I think i'm missing something here, just can't pinpoint it.
PHP:public static void CheckHealthGlobe() { //Look for health globe within 20 yards try { int globes = ZetaDia.Actors.GetActorsOfType<DiaItem>().Count(IsValidHealthGlobe); if (globes > 0) Helpers.SetTrue("Health Globe"); } catch (Exception e) { Plugin.WriteToLog("Error looking for Health Globe!", e); } } private static bool IsValidHealthGlobe(DiaItem unit) { try { if (unit != null && unit.IsValid && unit.ActorSNO == 4287 && unit.Distance <= 20f) { return true; } } catch { return false; } return false; }
Player.GoldPickupRadius + 20f
yea the wierd thing is its not always firing on health globe drops, so i'm trying to understand why. I semi have it working atm but not fully yet.
There is no such thing as RadiusDistance to my knowledge.
what does the feature "open backpack before equip" actually do?
if <ToggleTargeting combat="False">;
Helpers.SetTrue("Swarmed");
I wanna make it so that if combat is set off, that it would use the warm boots and if it's not off, it'll use back my regular boots.
Can anyone tell me if I add this, it would work?
yesHey I'm new to DB and still reading all about, but I'm not at home right now.
Got 1 Question about the Stone of Jordan/Unity ring-swap..
I'm playing a pet doctor with the tall mans finger and for solo-farming unity as default. That means, that any1 of these rings will sometimes unequip my tall mans finger? This would mean, that my Zombiedog will disappear..