19 lines
579 B
Plaintext
19 lines
579 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
object oTarget = GetWaypointByTag("irdaport");
|
|
location lTarget = GetLocation(oTarget);
|
|
|
|
if (GetItemPossessedBy(oPC, "IrdaStone")!= OBJECT_INVALID && GetHitDice(oPC)>=18)
|
|
{
|
|
AssignCommand(oPC, ClearAllActions());
|
|
DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH_WARD),lTarget);
|
|
}
|
|
else
|
|
{
|
|
string sDeny="You must posses an Irda Stone and be 18th level to use this portal";
|
|
SendMessageToPC(oPC, sDeny);
|
|
}
|
|
}
|