Aantioch_Infernum/_module/nss/convo_script_sit.nss

21 lines
710 B
Plaintext
Raw Normal View History

2023-08-08 16:22:17 -04:00
#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);
}
}