Sit on spawn and sit on conversation

SitOnSpawn & SitOnConvers
This script will have an NPC sit OnSpawn and keep him sitting during a conversation *without* having him rotate around and follow you with his or her body after the conversation is over.

SitOnSpawn Script
void main {    SetListeningPatterns; WalkWayPoints; GenerateNPCTreasure; {          string sMyTagName = GetTag(OBJECT_SELF); string sSittableTagName = "CHAIR_" + sMyTagName; int nChair = 1; object oChair; oChair = GetNearestObjectByTag(sSittableTagName, OBJECT_SELF, nChair); ActionSit(oChair); } }

SitOnConvers Notes
This script goes in the OnConversation area of the NPC's scripts. I named it sitonconvers cause it's easy to remember.

SitOnConvers Scripts
void main {    if(GetCommandable(OBJECT_SELF)) {              {               BeginConversation; }         ClearAllActions; int nChair = 1; string sMyTagName = GetTag(OBJECT_SELF); string sSittableTagName = "CHAIR_" + sMyTagName; object oChair = GetNearestObjectByTag(sSittableTagName, OBJECT_SELF, nChair); ActionSit(oChair); } }