//:://///////////////////////////////////////////// //:: Custom User Defined Event //:: FileName //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* */ //::////////////////////////////////////////////// //:: Created By: //:: Created On: //::////////////////////////////////////////////// void main() { ExecuteScript("prc_npc_userdef", OBJECT_SELF); int nUser = GetUserDefinedEventNumber(); int nIdx; if(nUser == 50) //urn activated { if (GetLocalInt(OBJECT_SELF,"active")==1) { ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_BARD_SONG),OBJECT_SELF); //ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,EffectAreaOfEffect(AOE_MOB_SILENCE,"jw_fear_effect","jw_fear_effect",""),GetLocation(OBJECT_SELF),300.0); for (nIdx=1;nIdx<=3;nIdx++) { SoundObjectSetVolume(GetObjectByTag("jw_urn_snd_"+IntToString(nIdx)),127); } } } else if(nUser == 1001) //HEARTBEAT { } else if(nUser == 1002) // PERCEIVE { } else if(nUser == 1003) // END OF COMBAT { } else if(nUser == 1004) // ON DIALOGUE { } else if(nUser == 1005) // ATTACKED { } else if(nUser == 1006) // DAMAGED { } else if(nUser == 1007) // DEATH { } else if(nUser == 1008) // DISTURBED { } }