Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

30
_module/nss/sc_crier.nss Normal file
View File

@@ -0,0 +1,30 @@
// Script: sc_oldmanudef
// Function: Set the behaviour of the oldman NPC on heartbeat
// Author: Nathan Laing
// E-Mail: nazz@bigpond.com
void main()
{
int nCalledBy = (GetUserDefinedEventNumber());
int iIsAlreadyRunning = GetLocalInt(OBJECT_SELF, "onUserDef_ALREADY_RUNNING");
switch(nCalledBy)
{
case 1001: // Called by OnHeartbeat
if (!IsInConversation(OBJECT_SELF) && !iIsAlreadyRunning)
{
SetLocalInt(OBJECT_SELF, "onUserDef_ALREADY_RUNNING", TRUE);
ActionSpeakString("Here ye', Here ye', our lord requests brave adventurers to find his majesty the king's missing father.");
ActionWait(25.0);
ActionSpeakString("Here ye', Partake the king's quest on a journey of great peril.");
ActionWait(20.0);
ActionDoCommand(
SetLocalInt(OBJECT_SELF, "onUserDef_ALREADY_RUNNING", FALSE)
);
}
break;
}
}