Lankhmar_PRC8/_module/nss/cnv_dsty_yrkoon.nss

26 lines
513 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
int nInt;
object oTarget;
object oPC = GetPCSpeaker();
// Give 10 experience (to party) to the PC.
GiveXPToAll(oPC, 10);
oTarget = GetObjectByTag("Yrkoon");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), GetLocation(oTarget));
DestroyObject(oTarget, 4.0);
}