mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 05:57:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
26
trunk/scripts/prc_alien_summon.nss
Normal file
26
trunk/scripts/prc_alien_summon.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @file
|
||||
* Extra Summons for Alienist
|
||||
*
|
||||
*/
|
||||
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oCaster = OBJECT_SELF;
|
||||
int nMaxSlot = GetSpellslotLevel(GetPrimaryArcaneClass(oCaster), oCaster);
|
||||
int nSpell;
|
||||
if (nMaxSlot == 9) nSpell = SPELL_SUMMON_CREATURE_IX;
|
||||
else if (nMaxSlot == 8) nSpell = SPELL_SUMMON_CREATURE_VIII;
|
||||
else if (nMaxSlot == 7) nSpell = SPELL_SUMMON_CREATURE_VII;
|
||||
else if (nMaxSlot == 6) nSpell = SPELL_SUMMON_CREATURE_VI;
|
||||
else if (nMaxSlot == 5) nSpell = SPELL_SUMMON_CREATURE_V;
|
||||
else if (nMaxSlot == 4) nSpell = SPELL_SUMMON_CREATURE_IV;
|
||||
else if (nMaxSlot == 3) nSpell = SPELL_SUMMON_CREATURE_III;
|
||||
else if (nMaxSlot == 2) nSpell = SPELL_SUMMON_CREATURE_II;
|
||||
else if (nMaxSlot == 1) nSpell = SPELL_SUMMON_CREATURE_I;
|
||||
|
||||
DoRacialSLA(nSpell);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user