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.
22 lines
643 B
Plaintext
22 lines
643 B
Plaintext
///////////////////////////////////////////////////
|
|
// Daylight On Enter
|
|
// sp_daylightA.nss
|
|
////////////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
object oTarget = GetEnteringObject();
|
|
int nLight = GetLocalInt(oTarget, "PRCInLight");
|
|
nLight++;
|
|
SetLocalInt(oTarget, "PRCInLight", nLight);
|
|
|
|
effect eTest = GetFirstEffect(oTarget);
|
|
|
|
while(GetIsEffectValid(eTest))
|
|
{
|
|
if(GetEffectSpellId(eTest) == SPELL_DARKNESS) RemoveEffect(oTarget, eTest);
|
|
eTest = GetNextEffect(oTarget);
|
|
}
|
|
}
|
|
|