Files
HeroesStone_PRC8/_module/nss/mod_spiderkill.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

14 lines
418 B
Plaintext

//this is the OnDeath script for spiders. It summons a cleric to attack the spider's killer.
void main()
{
object oCleric;
object oPC = GetLastKiller();
location lSpawn = GetLocation(OBJECT_SELF);
if(!GetIsPC(oPC)) return;
CreateObject(OBJECT_TYPE_CREATURE,"spiderguard",lSpawn,TRUE);
oCleric = GetObjectByTag("SPIDERGUARD");
ActionDoCommand(AssignCommand(oCleric,ActionAttack(oPC,FALSE)));
}