PRC8/nwn/trunk/scripts/prc_shdwbn_sacsh.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

26 lines
918 B
Plaintext

#include "prc_inc_burn"
void main()
{
object oPC = OBJECT_SELF;
int nBurn = BurnSpell(oPC);
if(!nBurn)
{
//FloatingTextStringOnCreature("You do not have a spell of that level to burn", oPC, FALSE);
return;
}
int nInq = GetLevelByClass(CLASS_TYPE_SHADOWBANE_INQUISITOR);
int nStk = GetLevelByClass(CLASS_TYPE_SHADOWBANE_STALKER);
int nBonus = 4;
if(nInq >= 7 || nStk >= 7)
nBonus = 8;
int nClass = nInq + nStk;
effect eLink = EffectLinkEffects(EffectSkillIncrease(SKILL_MOVE_SILENTLY, nBonus), EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE));
eLink = EffectLinkEffects(EffectSkillIncrease(SKILL_HIDE, nBonus), eLink);
eLink = SupernaturalEffect(eLink);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, 60.0 * (nBurn + nClass));
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_AC_BONUS), oPC);
}