Aantioch_Infernum/_module/nss/port_nasgarth.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

23 lines
596 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
object oTarget = GetWaypointByTag("nasgarthport");
location lTarget = GetLocation(oTarget);
if (GetItemPossessedBy(oPC, "NasGarthStone")!= 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 possess an NasGarth Stone and be 18th level to use this portal";
SendMessageToPC(oPC, sDeny);
}
}