32 lines
940 B
Plaintext
Raw Normal View History

2023-08-08 16:22:17 -04:00
//::///////////////////////////////////////////////
//:: 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));
}
}
}