24 lines
586 B
Plaintext
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)));
|
||
|
|
||
|
}
|
||
|
}
|