Auto-sit
From NWNWiki
I realise it is easy to sit, but this is a very simple, general-purpose thing that can be put on any NPC without too much hassle. Simply name the chair "CHAIR_" + the NPC tag. Then put this script on the NPC OnSpawn.
[edit] Script
// This script makes the NPC walk to the nearest chair with the
// tag "CHAIR_" + NPC tag, then sit in it.
// Script created 8/14/02 by Bokombur
void main()
{
object oSeat = GetNearestObjectByTag("CHAIR_" + GetTag(OBJECT_SELF),
OBJECT_SELF, 1);
ActionMoveToObject(oSeat, FALSE, 1.0);
ActionSit(oSeat);
}
