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

24 lines
586 B
Plaintext

void main()
{
if (GetTag(GetItemActivated()) == "yingyangcrystal")
{
object oPC = GetItemActivator();
object oTarget = GetWaypointByTag("WP_CW_START");
location lTarget = GetLocation(oTarget);
string sArea = GetTag(GetArea(oPC));
if (sArea != "Rift")
{
SendMessageToPC(oPC,"The item is not attuned to this area....");
return;
}
AssignCommand(oPC, ClearAllActions());
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_ELECTRIC_EXPLOSION),lTarget);
DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
}
}