Added ACP v4.1
Added ACP v4.1. Full compile. Updated module name. Updated release archive.
This commit is contained in:
16
_module/nss/startresting.nss
Normal file
16
_module/nss/startresting.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
int iHD = GetHitDice(oPC);
|
||||
|
||||
float fDelay = 10.5 + (IntToFloat(iHD)/2);
|
||||
|
||||
//Tell the OnPlayerRest Event Script we can rest...
|
||||
SetLocalInt(oPC, "REST_STARTED", 1);
|
||||
|
||||
//Make the PC start the XP2 Rest system..
|
||||
AssignCommand(oPC, ActionRest(TRUE));
|
||||
|
||||
DelayCommand(fDelay, SetLocalInt(oPC, "REST_STARTED", 0));
|
||||
}
|
||||
Reference in New Issue
Block a user