// Name : Persistent container used // Purpose : Called when a player "uses" a persistent container // Author : Josh Dalton (Lanthar D'Alton) // Modified : February 25, 2003 // This file is licensed under the terms of the // GNU GENERAL PUBLIC LICENSE (GPL) Version 2 //handles extra people trying to edge in on chest. void main() { object oLastUsedBy=GetLocalObject(OBJECT_SELF, "LastUsedBy"); if(oLastUsedBy!=OBJECT_INVALID && oLastUsedBy!=GetLastUsedBy()) { //chest already in use. push this person back, and tell them to wait. AssignCommand(GetLastUsedBy(), ClearAllActions()); AssignCommand(GetLastUsedBy(), ActionMoveAwayFromObject(OBJECT_SELF, FALSE, 5.0)); SendMessageToPC(GetLastUsedBy(), "Chest in use. Wait your turn"); } }