Initial upload
Initial upload.
This commit is contained in:
29
_module/nss/pri_guestnumm.nss
Normal file
29
_module/nss/pri_guestnumm.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Subtracts one from guest count
|
||||
//:: pri_guestnumm
|
||||
//:: Copyright (c) 2002 Shepherd Software Inc.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
This is an DM only script called from the DM options
|
||||
of the Suite Butler. It subtracts one from the guest
|
||||
count. Useful if a guest logs out while still flagged
|
||||
a guest and can be used to update the count so that a
|
||||
player can still close the door after all other guests
|
||||
have left.
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Russell S. Ahlstrom
|
||||
//:: Created On: July 11, 2002
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oTrigger = GetNearestObjectByTag("SuiteAutoDoor");
|
||||
int iNGuests = GetLocalInt(oTrigger, "RSA_NGuests");
|
||||
iNGuests--;
|
||||
SetLocalInt(oTrigger, "RSA_NGuests", iNGuests);
|
||||
SendMessageToPC(oPC, "There are now "+IntToString(iNGuests)+" guest(s) in this suite.");
|
||||
}
|
||||
Reference in New Issue
Block a user