generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
13
_module/nss/mod_spiderkill.nss
Normal file
13
_module/nss/mod_spiderkill.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
//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)));
|
||||
}
|
||||
Reference in New Issue
Block a user