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

31 lines
1.3 KiB
Plaintext

//::///////////////////////////////////////////////
//:: PRC Custom onSpawn Handler
//:: prc_pwonspawn
//::
//:://////////////////////////////////////////////
/*
Put all the module's onSpawn stuff here.
*/
//:://////////////////////////////////////////////
#include "NW_O2_CONINCLUDE"
#include "NW_I0_GENERIC"
void main()
{
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
// DEFAULT GENERIC BEHAVIOR (DO NOT TOUCH) *****************************************************************************************
SetListeningPatterns(); // Goes through and sets up which shouts the NPC will listen to.
WalkWayPoints(); // Optional Parameter: void WalkWayPoints(int nRun = FALSE, float fPause = 1.0)
// 1. Looks to see if any Way Points in the module have the tag "WP_" + NPC TAG + "_0X", if so walk them
// 2. If the tag of the Way Point is "POST_" + NPC TAG the creature will return this way point after
// combat.
GenerateNPCTreasure(); //* Use this to create a small amount of treasure on the creature
float fFacing = GetFacing(OBJECT_SELF);
ActionSit (GetNearestObjectByTag ("DealerChair", OBJECT_SELF));
AssignCommand(OBJECT_SELF, SetFacing(fFacing));
}