Changed folder name.
Changed folder name.
This commit is contained in:
24
_module/nss/vaulttimer1.nss
Normal file
24
_module/nss/vaulttimer1.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user