//:://///////////////////////////////////////////// //:: Rogues Cunning AKA Potion of Extra Theiving //:: NW_S0_ExtraThf.nss //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* Grants the user +10 Search, Disable Traps and Move Silently, Open Lock (+5), Pick Pockets Set Trap for 5 Turns */ //::////////////////////////////////////////////// //:: Created By: Preston Watamaniuk //:: Created On: November 9, 2001 //::////////////////////////////////////////////// //:: modified by mr_bumpkin Dec 4, 2003 for PRC stuff #include "prc_inc_spells" void main() { DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR"); SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_CONJURATION); /* Spellcast Hook Code Added 2003-06-23 by GeorgZ If you want to make changes to all spells, check x2_inc_spellhook.nss to find out more */ if (!X2PreSpellCastCode()) { // If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell return; } // End of Spell Cast Hook object oTarget = PRCGetSpellTargetObject(); //Declare major variables effect eSearch = EffectSkillIncrease(SKILL_SEARCH, 10); effect eDisable = EffectSkillIncrease(SKILL_DISABLE_TRAP, 10); effect eMove = EffectSkillIncrease(SKILL_MOVE_SILENTLY, 10); effect eOpen = EffectSkillIncrease(SKILL_OPEN_LOCK, 5); effect ePick = EffectSkillIncrease(SKILL_PICK_POCKET, 10); effect eTrap = EffectSkillIncrease(SKILL_SET_TRAP, 10); effect eHide = EffectSkillIncrease(SKILL_HIDE, 10); effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE); //Link Effects effect eLink = EffectLinkEffects(eSearch, eDisable); eLink = EffectLinkEffects(eLink, eMove); eLink = EffectLinkEffects(eLink, eOpen); eLink = EffectLinkEffects(eLink, ePick); eLink = EffectLinkEffects(eLink, eTrap); eLink = EffectLinkEffects(eLink, eHide); eLink = EffectLinkEffects(eLink, eDur); int CasterLvl = PRCGetCasterLevel(OBJECT_SELF); effect eVis = EffectVisualEffect(VFX_IMP_MAGICAL_VISION); //Apply the VFX impact and effects SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, TurnsToSeconds(5),TRUE,-1,CasterLvl); SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget); DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR"); // Getting rid of the local integer storing the spellschool name }