Lankhmar_PRC8/_module/nss/ent_spn_lvthn.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

30 lines
629 B
Plaintext

#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);
}