Lankhmar_PRC8/_module/nss/cnv_dstry_sh2b.nss

32 lines
694 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oTarget;
int nInt;
object oSpawn;
location lTarget;
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetObjectByTag("Sheelba2b");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1), GetLocation(oTarget));
DestroyObject(oTarget, 2.3);
oTarget = GetWaypointByTag("WP_Spire");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "sas20", lTarget);
}