Initial Upload
Initial Upload
This commit is contained in:
31
_module/nss/mod_rest.nss
Normal file
31
_module/nss/mod_rest.nss
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user