PRC8/nwn/nwnprc/trunk/spells/sp_grtr_teleport.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

50 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Greater Teleport spellscript
//:: sp_grtr_teleport
//:://////////////////////////////////////////////
/** @file
Teleport, Greater
Conjuration (Teleportation)
Level: Sor/Wiz 7, Travel 7
Components: V
Casting Time: 1 standard action
Range: Personal and touch
Target: You and touched objects or other touched willing creatures
Duration: Instantaneous
Saving Throw: None and Will negates (object)
Spell Resistance: No and Yes (object)
This spell instantly transports you to a designated destination. You may also
bring one additional willing Medium or smaller creature or its equivalent per
three caster levels. A Large creature counts as two Medium creatures, a Huge
creature counts as two Large creatures, and so forth. All creatures to be
transported must be in contact with you. *
Notes:
* Implemented as within 10ft of you due to the lovely quality of NWN location tracking code.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 24.06.2005
//:://////////////////////////////////////////////
#include "spinc_teleport"
void main()
{
// Set the spell school
PRCSetSchool(SPELL_SCHOOL_CONJURATION);
// Spellhook
if(!X2PreSpellCastCode()) return;
/* Main script */
object oCaster = OBJECT_SELF;
int nCasterLvl = PRCGetCasterLevel();
int nSpellID = PRCGetSpellId();
Teleport(oCaster, nCasterLvl, nSpellID == SPELL_GREATER_TELEPORT_PARTY, TRUE, "");
PRCSetSchool();
}