31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
|
#include "afx_sfunc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC=GetEnteringObject();
|
||
|
object oWay = GetObjectByTag("crownboot");
|
||
|
string sMsg = GetName(oPC) + " " + GetPCPlayerName(oPC) + " 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);
|
||
|
}
|
||
|
|
||
|
object oArea = GetArea(OBJECT_SELF);
|
||
|
// place here the % chance of rest being interruped excample here 33% chance of rest being interuped
|
||
|
SetLocalInt(oArea, "nMonChance",85);
|
||
|
// place here the blueprint refrenfrence tag of the creature you wish to attack them
|
||
|
// or place the word CUSTOM which will send a 201 event to the area starting your won script
|
||
|
// here it is a goblin
|
||
|
SetLocalString(oArea, "sMonster","arcanegolem");
|
||
|
|
||
|
if(GetIsPC(oPC) == TRUE) {
|
||
|
afx_apply_effects(oPC,OBJECT_SELF);
|
||
|
}
|
||
|
}
|