Initial commit
Initial commit [v9.7]
This commit is contained in:
29
_module/nss/ent_spn_lvthn.nss
Normal file
29
_module/nss/ent_spn_lvthn.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
|
||||
// Get the creature who triggered this event.
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
// Only fire for (real) PCs.
|
||||
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
|
||||
return;
|
||||
|
||||
// Abort if the PC's total level is not at least 10.
|
||||
if ( GetHitDice(oPC) < 12 )
|
||||
return;
|
||||
|
||||
// Spawn "leviathan".
|
||||
oTarget = GetWaypointByTag("WP_LEvthn_SPn");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "leviathan", GetLocation(oTarget));
|
||||
AssignCommand(oSpawn, DetermineCombatRound(oPC));
|
||||
|
||||
DestroyObject(OBJECT_SELF);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user