Script fixes, additions, and area changes

This commit is contained in:
EpicValor
2023-09-03 21:12:26 -05:00
parent b3a5e77663
commit 430f3102d9
100 changed files with 40112 additions and 1032 deletions

View File

@@ -2,7 +2,7 @@
//:: npc_sit_stay
//:://////////////////////////////////////////////
/*Goes on the OnSpawn and OnConversation script of the NPC that you want to stay <span class="highlight">seated</span>*/
#include "nw_i0_spells"
#include "NW_I0_GENERIC"
void main()
{
@@ -53,8 +53,10 @@ void main()
int nChair = 1;
string sMyTagName = GetTag(OBJECT_SELF);
string sSittableTagName = "CHAIR_" + sMyTagName;
object oChair = GetNearestObjectByTag(sSittableTagName, OBJECT_SELF, nChair);
object oChair = GetRandomObjectByTag(sSittableTagName, 99.0);
ActionMoveToObject (oChair, FALSE);
ActionSit(oChair);
}
DelayCommand(GetRandomDelay(30.0, 60.0), ExecuteScript("npc_sit_stay", OBJECT_SELF));
}