Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,55 @@
//::///////////////////////////////////////////////
//:: Name Drug Resistance
//:: FileName sp_drug_resist.nss
//:://////////////////////////////////////////////
/**@file Drug Resistance
Enchantment
Level: Clr 1, Sor/Wiz 1
Components: V, M
Casting Time: 1 action
Range: Touch
Target: One living creature
Duration: 1 hour/level
Saving Throw: Fortitude negates (harmless)
Spell Resistance: Yes (harmless)
The creature touched is immune to the possibility
of addiction to drugs. He still experiences the
negative and positive effects of drugs during the
spell's duration. This spell does not free the
target from the effects of an addiction already
incurred. If the spell ends before the effects of
a drug wear off, the normal chance for addiction
applies.
Material Component: Three drops of pure water.
Author: Tenjac
Created: 04/28/06
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
int nCasterLvl = PRCGetCasterLevel(oPC);
float fDur = HoursToSeconds(nCasterLvl);
effect eMarker = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
//Spellhook
if(!X2PreSpellCastCode()) return;
PRCSetSchool(SPELL_SCHOOL_ENCHANTMENT);
if (PRCGetIsAliveCreature(oTarget)) SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eMarker, oTarget, fDur);
PRCSetSchool();
}