21 lines
710 B
Plaintext
21 lines
710 B
Plaintext
#include "NW_O2_CONINCLUDE"
|
|
#include "NW_I0_GENERIC"
|
|
void main()
|
|
{
|
|
|
|
SetSpawnInCondition(NW_FLAG_HEARTBEAT_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1001
|
|
SetListeningPatterns();
|
|
WalkWayPoints();
|
|
GenerateNPCTreasure(); //* Use this to create a small amount of treasure on the creature
|
|
SignalEvent(OBJECT_SELF, EventUserDefined(5000));//Set up listen patterns for Guards
|
|
{
|
|
string sMyTagName = GetTag(OBJECT_SELF);
|
|
string sSittableTagName = "CHAIR_" + sMyTagName;
|
|
int nChair = 1;
|
|
object oChair;
|
|
oChair = GetNearestObjectByTag(sSittableTagName, OBJECT_SELF, nChair);
|
|
ActionSit(oChair);
|
|
}
|
|
}
|
|
|