generated from Jaysyn/ModuleTemplate
14 lines
418 B
Plaintext
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)));
|
|
}
|