Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/yingyangcrystal.nss
Normal file
23
_module/nss/yingyangcrystal.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
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)));
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user