Added PnP Dire Rat.
Added PnP Dire Rat.
This commit is contained in:
36
nwn_dark_sun/ka_npcsitconvo.nss
Normal file
36
nwn_dark_sun/ka_npcsitconvo.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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) ) ;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user