Amon_PRC8/_module/nss/em_unsummon.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

15 lines
630 B
Plaintext

// em_unsummon
// Unsummon's the bindling, stores their information and prepares the way for the next summon
void main()
{
object oPlayer = GetMaster(OBJECT_SELF);
location lSelf = GetLocation(OBJECT_SELF);
int iDamageLeft = GetMaxHitPoints(OBJECT_SELF) - GetCurrentHitPoints(OBJECT_SELF);
object oMyStone = GetLocalObject(OBJECT_SELF, "loMyStone");
SendMessageToPC(oPlayer, "Unsummoning creature...");
SetLocalInt(oMyStone, "liDamage", iDamageLeft);
DestroyObject(OBJECT_SELF);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_IMP_UNSUMMON), lSelf, 3.0);
}