Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

30
_module/nss/sitchair.nss Normal file
View File

@@ -0,0 +1,30 @@
/* Breakable Chairs Script #3, created by Chimera (naoki_7@sluggy.net)*/
void main()
{
object oChair = OBJECT_SELF;
object oPC = GetLastUsedBy();
int iWeight = GetWeight(oPC); // Reads the weight carried by the sitter.
if (GetIsPC(oPC))
{
if (GetIsObjectValid(oChair) && !GetIsObjectValid (GetSittingCreature(oChair)))
{
AssignCommand(oPC, ActionSit(oChair));
if (iWeight >= 1500) //The 2000 reads as 200 o.O
{
DelayCommand(10.0, ExecuteScript("sitchairbreak", oChair));
//This activates the second script after 15 seconds of sitting.
//If the sitter gets up before then, nothing happens.
}
}
}
}