Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#include "nw_i0_plot"
void main()
{
SetLocalInt(OBJECT_SELF, "ClientSpawned", FALSE);
SetLocalInt(GetExitingObject(), "ClientSpawned", FALSE);
int nTavern = GetLocalInt(OBJECT_SELF, "TavernNumber");
string sTag;
//Get the area's exit waypoint's tag
if (nTavern == 1) sTag = "alverton_tav_exit";
//Make the client NPC walk away (out of the tavern)
object oNPC = GetFirstObjectInArea();
effect eEffect;
while (GetIsObjectValid(oNPC))
{
if (GetLocalInt(oNPC, "Client") == TRUE)
{
AssignCommand(oNPC, EscapeArea(FALSE, sTag));
//Remove all effects on the NPC (to make quest exclamation and question marks disappear)
eEffect = GetFirstEffect(oNPC);
while (GetIsEffectValid(eEffect))
{
RemoveEffect(oNPC, eEffect);
eEffect = GetNextEffect(oNPC);
}
return;
}
oNPC = GetNextObjectInArea();
}
}