Initial upload
Initial upload
This commit is contained in:
31
_module/nss/deathbringerspwn.nss
Normal file
31
_module/nss/deathbringerspwn.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
//Put this script OnEnter
|
||||
#include "nw_i0_generic"
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
oTarget = GetWaypointByTag("WP_deathbringer_01");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "deathbringer", lTarget);
|
||||
|
||||
oTarget = oSpawn;
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
oTarget = GetObjectByTag("deathbringer");
|
||||
|
||||
DelayCommand(12.0, DestroyObject(oTarget, 0.0));
|
||||
|
||||
}
|
Reference in New Issue
Block a user