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

48 lines
1.2 KiB
Plaintext

// Trinity Emote System, By Tab
void main()
{
object oPC = GetPCSpeaker();
object user = GetLastUsedBy();
object user1 = GetLastUsedBy();
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_CONJURE1, 1.0f, 13.0f));
object oTarget;
oTarget = oPC;
int nInt;
nInt = GetObjectType(oTarget);
effect eEffect;
eEffect = EffectVisualEffect(VFX_IMP_SUPER_HEROISM);
if (nInt != OBJECT_TYPE_WAYPOINT)
DelayCommand(4.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
else
DelayCommand(4.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_TAUNT,user));
oTarget = oPC;
nInt = GetObjectType(oTarget);
eEffect = EffectVisualEffect(VFX_DUR_GLOBE_INVULNERABILITY);
if (nInt != OBJECT_TYPE_WAYPOINT)
DelayCommand(4.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
else
DelayCommand(4.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_THREATEN,user1));
object oCaster;
oCaster = oPC;
oTarget = oPC;
AssignCommand(oCaster, ActionCastFakeSpellAtObject(SPELL_RAISE_DEAD, oTarget, PROJECTILE_PATH_TYPE_DEFAULT));
}