Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-08-08 16:22:17 -04:00
parent 51a2a1286e
commit 22947ad4b6
6511 changed files with 6765205 additions and 0 deletions

31
_module/nss/mod_rest.nss Normal file
View File

@@ -0,0 +1,31 @@
//::///////////////////////////////////////////////
//:: mod_rest
//:: mod_rest.nss
//:: Copyright (c) 2003 Darren Summerwind.
//:://////////////////////////////////////////////
/*
Module onRest Script
*/
//:://////////////////////////////////////////////
//:: Created By: Darren Summerwind
//:: Created On: 28/9/03
//:://////////////////////////////////////////////
void main()
{
// Get Last Rested
object oPC= GetLastPCRested();
// Check if oPC wants to rest, not use convesation
if( GetLocalInt(oPC, "PlayerWantsToRest") == FALSE )
{
// Get rest type and check if started
if(GetLastRestEventType() == REST_EVENTTYPE_REST_STARTED)
{
// Clear all actions (oPC)
AssignCommand(oPC, ClearAllActions(TRUE));
// Start rest conversation (oPC)
AssignCommand(oPC, ActionStartConversation(OBJECT_SELF, "mod_rest", TRUE,FALSE));
}
}
}