void main() { object oEntering = GetEnteringObject(); object oPC = oEntering; object oWay = GetObjectByTag("crownboot"); string sMsg = GetName(oEntering) + " " + GetPCPlayerName(oEntering) + " Has entered the palace vault!"; //If the PC has the immortal crown boot them immediately! if(GetItemPossessedBy(oPC, "ImmortalCrown2")!=OBJECT_INVALID || GetItemPossessedBy(oPC, "immotoken")!=OBJECT_INVALID) { // DelayCommand(2.0, FloatingTextStringOnCreature(sMsg, oPC, TRUE)); // DelayCommand(4.0, AssignCommand(oPC, ClearAllActions())); // DelayCommand(4.1, AssignCommand(oPC, JumpToObject(oWay))); WriteTimestampedLogEntry(sMsg); } if(GetIsObjectValid(oEntering)){ if(GetIsPC(oEntering)){ int nNumEntered = GetLocalInt(OBJECT_SELF,"nNumEntered"); SetLocalInt(OBJECT_SELF,"nNumEntered",nNumEntered+1); } } }