Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
//::///////////////////////////////////////////////
//:: Summons a bed for the sleepover
//:: pri_slpover_inc
//:: Copyright (c) 2002 Shepherd Software Inc.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Russell S. Ahlstrom
//:: Created On: August 7, 2002
//:://////////////////////////////////////////////
void SummonBed(int iNumberOfBeds, object oPC)
{
object oBedArea = GetNearestObjectByTag("priguestbed1", oPC);
object oTrigger = GetNearestObjectByTag("SuiteAutoDoor", oPC);
int iNGuests = GetLocalInt(oTrigger, "RSA_NGuests");
int iBedsToMake = iNumberOfBeds;
int iBedOn = 1;
while (iBedsToMake > 0)
{
CreateObject(OBJECT_TYPE_PLACEABLE, "suitebed", GetLocation(oBedArea), TRUE);
iBedsToMake--;
iBedOn++;
oBedArea = GetNearestObjectByTag("priguestbed"+IntToString(iBedOn),oPC);
}
iNGuests = iNGuests - iNumberOfBeds;
SetLocalInt(oTrigger, "RSA_NGuests", iNGuests);
}