37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
//::///////////////////////////////////////////////
 | 
						|
//:: On Conversation
 | 
						|
//:: speaksitting
 | 
						|
//:: Created By: Hillary Skeryanc-Mann
 | 
						|
//:: Created On: March 22, 2003
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
void main()
 | 
						|
{
 | 
						|
    ExecuteScript("prc_npc_conv", OBJECT_SELF);
 | 
						|
    ExecuteScript("nw_c2_default4", OBJECT_SELF);
 | 
						|
 | 
						|
    if(GetCommandable(OBJECT_SELF)){
 | 
						|
      {
 | 
						|
          BeginConversation();
 | 
						|
      }
 | 
						|
    ClearAllActions();
 | 
						|
    string sMyTagName = GetTag(OBJECT_SELF);
 | 
						|
    string sChairTag = "CHAIR_" + sMyTagName;
 | 
						|
    string sFloorTag = "FLOOR_" + sMyTagName;
 | 
						|
    object oSitplace = GetNearestObject();
 | 
						|
    if (GetTag (oSitplace) == sChairTag)
 | 
						|
        {
 | 
						|
            int nChair = 1;
 | 
						|
            object oChair;
 | 
						|
            oChair = GetNearestObjectByTag(sChairTag, OBJECT_SELF, nChair);
 | 
						|
            ActionSit(oChair);
 | 
						|
        }
 | 
						|
    else if (GetTag (oSitplace) == sFloorTag)
 | 
						|
        {
 | 
						|
            int nChair = 1;
 | 
						|
            object oChair;
 | 
						|
            oChair = GetNearestObjectByTag(sFloorTag, OBJECT_SELF, nChair);
 | 
						|
            ActionDoCommand( ActionPlayAnimation( ANIMATION_LOOPING_SIT_CROSS,0.0,4000.0) ) ;
 | 
						|
        }
 | 
						|
     }
 | 
						|
}
 |