PWE_PRC8/_module/nss/medtreas_explode.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

32 lines
872 B
Plaintext

//::///////////////////////////////////////////////
//:: General Treasure Spawn Script MEDIUM
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Spawns in general purpose treasure, usable
by all classes.
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: February 26 2001
//:://////////////////////////////////////////////
#include "NW_O2_CONINCLUDE"
void main()
{
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
{
return;
}
object oLastOpener = GetLastOpener();
GenerateMediumTreasure(oLastOpener, OBJECT_SELF);
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
ShoutDisturbed();
SetPlotFlag(OBJECT_SELF, FALSE);
effect eDam = EffectDamage(500);
DelayCommand(100.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, OBJECT_SELF));
}