Battledale_PRC8/_module/nss/jw_song_urn_ends.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

35 lines
535 B
Plaintext

void main()
{
SetLocalInt(OBJECT_SELF,"active",2);
int nIdx;
object oObject;
effect eEffect;
oObject=OBJECT_SELF;
for (nIdx=1;nIdx<=3;nIdx++)
{
SoundObjectSetVolume(GetObjectByTag("jw_urn_snd_"+IntToString(nIdx)),0);
}
if (GetIsObjectValid(oObject))
{
eEffect=GetFirstEffect(oObject);
while (GetIsEffectValid(eEffect))
{
if (GetEffectCreator(eEffect)==oObject)
{
RemoveEffect(oObject,eEffect);
}
eEffect=GetNextEffect(oObject);
}
}
}