Alangara_PRC8/_module/nss/kjm_tp_1_orcg.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

25 lines
838 B
Plaintext

void main()
{
// DEFINE WHO's using the object
object oUser=GetLastUsedBy();
// DEFINE effects to use.
effect e1 = EffectVisualEffect(VFX_IMP_DEATH_WARD);
effect e2 = EffectVisualEffect(VFX_IMP_UNSUMMON);
effect eLinked = EffectLinkEffects(e1,e2);
string sItemTag = GetTag(OBJECT_SELF);
location lTeleport;
{
//DEFINE TELEPORT LOCATION
lTeleport = GetLocation(GetObjectByTag("WP_TP_ORCGATE"));
}
//Play conjure animation
DelayCommand(3.0f, AssignCommand(oUser, PlayAnimation(ANIMATION_LOOPING_CONJURE1, 3.0f, 5.0f)));
//apply the visual effect
DelayCommand(3.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eLinked, oUser, 4.0f));
// jump player to location
DelayCommand(5.0f, AssignCommand(oUser, ActionJumpToLocation(lTeleport)));
}