//:://///////////////////////////////////////////// //:: 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)); } } }