daily pastebin goal
95%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "nw_i0_generic" object oTarget; object oSpawn; object oSelf = OBJECT_SELF; effect eVFX; effect eDamage; location lTarget; void main() { // Get the creature who triggered this event. if (GetFirstItemInInventory(OBJECT_SELF) == OBJECT_INVALID) return; object oPC = GetLastOpenedBy(); if (!GetIsPC(oPC)) return; string sNM = GetName(oPC); string sPNM = GetPCPlayerName(oPC); string DoOnce = GetLocalString(OBJECT_SELF, DoOnce); if (DoOnce == sNM + sPNM) return; SetLocalString(OBJECT_SELF, DoOnce, sNM + sPNM); if ((GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL) && (GetHitDice(oPC) >= 10)) { oTarget = oPC; ActionCastSpellAtObject(SPELL_IMPLOSION, oTarget, METAMAGIC_ANY, TRUE, 12, PROJECTILE_PATH_TYPE_DEFAULT, FALSE); oTarget = GetWaypointByTag("wp_guardian"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "j_swift", lTarget); oTarget = oSpawn; int nInt; nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL), oTarget)); else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL), GetLocation(oTarget))); DelayCommand(2.0,SetIsTemporaryEnemy(oPC, oTarget)); DelayCommand(2.0,AssignCommand(oTarget, ActionAttack(oPC))); AssignCommand(oTarget, DetermineCombatRound(oPC)); oTarget = GetObjectByTag("j_swift"); nInt = GetObjectType(oTarget); effect eEffect; eEffect = EffectVisualEffect(VFX_IMP_RESTORATION_GREATER); if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(360.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget)); else DelayCommand(360.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget))); DelayCommand(360.0, DestroyObject(oTarget, 3.0)); } // PC is level 4 or less. else if (GetHitDice(oPC) <= 4) { // Cause damage. eDamage = EffectDamage(5, DAMAGE_TYPE_MAGICAL); eVFX = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC); ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX , oPC); oTarget = oPC; // Have us cast Burning Hands. ActionCastSpellAtObject(SPELL_BURNING_HANDS, oTarget, METAMAGIC_ANY, TRUE, 5, PROJECTILE_PATH_TYPE_DEFAULT, FALSE); // Spawn Guardian of Amon Ral. oTarget = GetWaypointByTag("wp_guardian"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_clantern", lTarget); oTarget = oSpawn; eVFX = EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL); SetIsTemporaryEnemy(oPC, oTarget); AssignCommand(oTarget, ActionAttack(oPC)); AssignCommand(oTarget, DetermineCombatRound(oPC)); DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn)); } // PC is level 5 to 8. else if ((GetHitDice(oPC) >= 5) && (GetHitDice(oPC) <= 8)) { // Cause damage. eDamage = EffectDamage(10, DAMAGE_TYPE_MAGICAL); eVFX = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC); ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX , oPC); // Have us cast Bigbys Grasping Hand. oTarget = oPC; ActionCastSpellAtObject(SPELL_BIGBYS_GRASPING_HAND, oTarget, METAMAGIC_ANY, TRUE, 10, PROJECTILE_PATH_TYPE_DEFAULT, FALSE); // Spawn Guardian of Amon Ral. oTarget = GetWaypointByTag("wp_guardian"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_chound01", lTarget); oTarget = oSpawn; eVFX = EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL); SetIsTemporaryEnemy(oPC, oTarget); AssignCommand(oTarget, ActionAttack(oPC)); AssignCommand(oTarget, DetermineCombatRound(oPC)); DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn)); } // PC is level 9 to 14. else if (((GetHitDice(oPC) >= 9) && (GetHitDice(oPC) <= 14) && (GetAlignmentGoodEvil(oPC) != ALIGNMENT_EVIL))) { // Cause damage. eDamage = EffectDamage(20, DAMAGE_TYPE_MAGICAL); eVFX = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC); ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX , oPC); // Have us cast Bigbys Clenched FIst. oTarget = oPC; ActionCastSpellAtObject(SPELL_BIGBYS_CLENCHED_FIST, oTarget, METAMAGIC_ANY, TRUE, 10, PROJECTILE_PATH_TYPE_DEFAULT, FALSE); // Spawn Guardian of Amon Ral. oTarget = GetWaypointByTag("wp_guardian"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_halfcel001", lTarget); oTarget = oSpawn; eVFX = EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL); SetIsTemporaryEnemy(oPC, oTarget); AssignCommand(oTarget, ActionAttack(oPC)); AssignCommand(oTarget, DetermineCombatRound(oPC)); DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn)); } // PC is level 15 or above. else if ((GetHitDice(oPC) >= 15) && (GetAlignmentGoodEvil(oPC) != ALIGNMENT_EVIL)) { // Cause damage. eDamage = EffectDamage(30, DAMAGE_TYPE_MAGICAL); eVFX = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC); ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX , oPC); // Have us cast Bigbys Crushing Hand. oTarget = oPC; ActionCastSpellAtObject(SPELL_BIGBYS_CRUSHING_HAND, oTarget, METAMAGIC_ANY, TRUE, 12, PROJECTILE_PATH_TYPE_DEFAULT, FALSE); // Spawn Guardian of Amon Ral. oTarget = GetWaypointByTag("wp_guardian"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "zep_planetarf", lTarget); oTarget = oSpawn; eVFX = EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL); SetIsTemporaryEnemy(oPC, oTarget); AssignCommand(oTarget, ActionAttack(oPC)); AssignCommand(oTarget, DetermineCombatRound(oPC)); DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn)); } }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top