Files
Anphillia_PRC8/_module/nss/chd_on_spawn.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

28 lines
1.1 KiB
Plaintext

/*
** CHD 0.0.1
** Author: Krisztian PIFKO <monsta@monsta.hu>
** License: GPL
** Last modified: 2004-12-04
**
** chd_on_spawn.nss: listening initialization for an NPC
**
** use it in the on spawn event of an NPC
*/
#include "NW_O2_CONINCLUDE"
#include "NW_I0_GENERIC"
void main()
{
SetListenPattern(OBJECT_SELF, "**", 50);
// 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
}