mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 06:07:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
13
trunk/scripts/ml_daylight.nss
Normal file
13
trunk/scripts/ml_daylight.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "prc_alterations"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
effect eAoE = EffectAreaOfEffect(VFX_MOB_DAYLIGHT);
|
||||
int nCasterLvl = GetPrCAdjustedCasterLevelByType(TYPE_DIVINE,oPC,1);
|
||||
float fDur = (600.0f * nCasterLvl);
|
||||
|
||||
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eAoE, oTarget, fDur);
|
||||
}
|
||||
Reference in New Issue
Block a user