Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
void main()
{
object o = OBJECT_SELF;
object oPC = GetLastOpenedBy();
int n = GetLocalInt(o, "IN_USE");
//If the device is in use, then prevent anyone from using it other than
//the original person with the item in there!
if(n==1)
{
if(GetLocalInt(oPC, "ITEM_USER")!=1)
{
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionMoveAwayFromObject(o, TRUE, 10.0f));
FloatingTextStringOnCreature("You may not use this device at this time!", oPC, TRUE);
}
}
}