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.
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
|
|
#include "prc_inc_spells"
|
|
#include "inv_inc_invfunc"
|
|
#include "inv_invokehook"
|
|
|
|
void main()
|
|
{
|
|
|
|
if (!PreInvocationCastCode())
|
|
{
|
|
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
|
return;
|
|
}
|
|
|
|
|
|
//Declare major variables
|
|
int CasterLvl = GetInvokerLevel(OBJECT_SELF, GetInvokingClass());
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
effect eVis = EffectVisualEffect(VFX_IMP_IMPROVE_ABILITY_SCORE);
|
|
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
|
|
effect eSkill = EffectSkillIncrease(SKILL_BALANCE, 6);
|
|
effect eSkill1 = EffectSkillIncrease(SKILL_JUMP, 6);
|
|
effect eSkill2 = EffectSkillIncrease(SKILL_TUMBLE, 6);
|
|
effect eLink = EffectLinkEffects(eSkill, eSkill1);
|
|
eLink = EffectLinkEffects(eLink, eSkill2);
|
|
eLink = EffectLinkEffects(eLink, eDur);
|
|
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, INVOKE_LEAPS_AND_BOUNDS, FALSE));
|
|
|
|
//Apply the VFX impact and effect
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, HoursToSeconds(24),TRUE,-1,CasterLvl);
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
|
|
|
}
|