Initial commit
Initial commit [v9.7]
This commit is contained in:
32
_module/nss/des_my_spn_myr.nss
Normal file
32
_module/nss/des_my_spn_myr.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
oTarget = GetWaypointByTag("WP_SPn_Myr2b");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "myrria2", lTarget);
|
||||
|
||||
oTarget = oSpawn;
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
oTarget = GetObjectByTag("Myrria");
|
||||
DestroyObject(oTarget, 0.1);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user