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.
This commit is contained in:
34
_module/nss/jw_song_urn_ends.nss
Normal file
34
_module/nss/jw_song_urn_ends.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user