//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))); }