RoT2_PRC8/_module/nss/emote_meditate.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

34 lines
797 B
Plaintext

//Trinity Emote System, by Tab
void main()
{
object oPC = GetPCSpeaker();
object user = GetLastUsedBy();
object user1 = GetLastUsedBy();
object user2 = GetLastUsedBy();
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_MEDITATE, 1.0f, 27.0f));
object oTarget;
oTarget = oPC;
int nInt;
nInt = GetObjectType(oTarget);
effect eEffect;
eEffect = EffectVisualEffect(VFX_IMP_KNOCK);
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_HEALME,user));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_NEARDEATH,user1));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_HEALME,user2));
if (nInt != OBJECT_TYPE_WAYPOINT)
DelayCommand(25.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
else
DelayCommand(25.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
}