LoD_PRC8/_module/nss/baf_convfm.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

74 lines
2.5 KiB
Plaintext

void main()
{
int iListen = GetListenPatternNumber();
{
if(GetLocalInt(OBJECT_SELF, "KIUAS") != 1)
{
if(iListen == 4)
{
object oWbasin = GetWaypointByTag("baf_wbwpal");
object oWkiuas = GetWaypointByTag("baf_wbosuk");
object oSmoke1 = GetWaypointByTag("baf_wefofki1");
object oSmoke2 = GetWaypointByTag("baf_wefofki2");
object oSmoke3 = GetWaypointByTag("baf_wefofki3");
object oSmoke4 = GetWaypointByTag("baf_wefofki4");
object oSmoke5 = GetWaypointByTag("baf_wefofki5");
location lWbasin = GetLocation(oWbasin);
location lWkiuas = GetLocation(oWkiuas);
location lSmoke1 = GetLocation(oSmoke1);
location lSmoke2 = GetLocation(oSmoke2);
location lSmoke3 = GetLocation(oSmoke3);
location lSmoke4 = GetLocation(oSmoke4);
location lSmoke5 = GetLocation(oSmoke5);
effect eSmoke = EffectAreaOfEffect(AOE_PER_FOG_OF_BEWILDERMENT);
effect eSmoke2 = EffectVisualEffect(VFX_FNF_SMOKE_PUFF);
ClearAllActions(TRUE);
SetLocalInt(OBJECT_SELF, "KIUAS", 1);
PlayVoiceChat(VOICE_CHAT_YES, OBJECT_SELF);
ActionMoveToLocation(lWbasin, TRUE);
DelayCommand(3.0, AssignCommand(OBJECT_SELF, ActionDoCommand(SetFacingPoint(GetPositionFromLocation(GetLocation(GetObjectByTag("baf_wabasal")))))));
DelayCommand(3.5, PlayAnimation(ANIMATION_LOOPING_GET_MID, 1.0, 1.0));
DelayCommand(5.0, ActionMoveToLocation(lWkiuas));
DelayCommand(7.0, AssignCommand(OBJECT_SELF, ActionDoCommand(SetFacingPoint(GetPositionFromLocation(GetLocation(GetObjectByTag("baf_kiuas")))))));
DelayCommand(7.5, PlayAnimation(ANIMATION_FIREFORGET_STEAL, 1.0, 1.5));
DelayCommand(8.5, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSmoke, lSmoke5, 4.0f));
DelayCommand(8.5, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSmoke2, lSmoke5, 4.0f));
DelayCommand(10.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSmoke, lSmoke1, 4.0f));
DelayCommand(10.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSmoke, lSmoke2, 4.0f));
DelayCommand(10.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSmoke, lSmoke3, 4.0f));
DelayCommand(10.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSmoke, lSmoke4, 4.0f));
DelayCommand(15.0, SetLocalInt(OBJECT_SELF, "KIUAS", 0));
}
}
}
}