Lankhmar_PRC8/_module/nss/cnv_opn_natchst.nss

28 lines
444 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oTarget;
effect eVFX;
object oPC = GetPCSpeaker();
// Apply a visual effect.
eVFX = EffectVisualEffect(VFX_IMP_KNOCK);
oTarget = GetObjectByTag("natchest");
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget);
SetLocalString(oPC, "natchst1", "1");
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetObjectByTag("natchest");
SetLocked(oTarget, FALSE);
}