16 lines
319 B
Plaintext
16 lines
319 B
Plaintext
//Created by Genisys / Guile 5/22/08
|
|
|
|
//Basically this prevents any PCs from sitting in the chair.
|
|
void main()
|
|
{
|
|
object oPC = GetLastUsedBy();
|
|
if(!GetIsDM(oPC)) return;
|
|
|
|
object oChair = OBJECT_SELF;
|
|
if(!GetIsObjectValid(GetSittingCreature(oChair)))
|
|
{
|
|
AssignCommand(GetLastUsedBy(), ActionSit(oChair));
|
|
}
|
|
|
|
}
|