Sub Main
/declare Sacee string outer
:whoami
/varset Sacee ${Target.CleanName}
/if (${Me.CleanName.Equal[NecroName]}) /goto :Sacer
/if (${Me.Level}>85) /goto :Sacee
/end
:Sacer
/autoinventory
/if (${Me.PctMana} < 10) /goto :ManaCheck
/target ${Sacee}
/if (${Target.Level}<86) /end
/if (!${Me.Casting.ID}) /cast Sacrifice
/delay 45
/goto :Sacer
/end
:Sacee
:WaitForSac
/delay 1s
/if (!${Window[ConfirmationDialogBox].Open}) /goto :WaitForSac
/delay 5
/notify ConfirmationDialogBox Yes_Button leftmouseup
/delay 10
/squelch /notify RespawnWnd RW_SelectButton leftmouseup
/goto :WaitForSac
/end
:ManaCheck
/sit
:WaitForMana
/delay 5s
/if (${Me.PctMana} < 98) /goto :WaitForMana
/stand
/goto :Sacer
/end