Battledale_PRC8/_module/nss/jw_song_urn_ends.nss

35 lines
535 B
Plaintext
Raw Normal View History

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);
}
}
}