Updated AMS marker feats. Removed arcane & divine marker feats. Updated Dread Necromancer for epic progression. Updated weapon baseitem models. Updated new weapons for crafting & npc equip. Updated prefix. Updated release archive.
82 lines
3.1 KiB
Plaintext
82 lines
3.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name Luhix
|
|
//:: FileName sp_luhix.nss
|
|
//:://////////////////////////////////////////////
|
|
/** Script for the drug Luhix
|
|
|
|
Author: Tenjac
|
|
Created: 5/23/06
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_inc_spells"
|
|
#include "prc_inc_drugfunc"
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
|
|
//Handle resetting addiction DC
|
|
SetPersistantLocalInt(oPC, "PRC_Addiction_Luhix_DC", 36);
|
|
|
|
//Handle satiation
|
|
SetPersistantLocalInt(oPC, "PRC_LuhixSatiation", 1);
|
|
|
|
//Make addiction check
|
|
if(!GetHasSpellEffect(SPELL_DRUG_RESISTANCE, oPC))
|
|
{
|
|
if(!PRCMySavingThrow(SAVING_THROW_FORT, oPC, 36, SAVING_THROW_TYPE_DISEASE))
|
|
{
|
|
effect eAddict = EffectDisease(DISEASE_LUHIX_ADDICTION);
|
|
SPApplyEffectToObject(DURATION_TYPE_PERMANENT, eAddict, oPC);
|
|
FloatingTextStringOnCreature("You have become addicted to Luhix.", oPC, FALSE);
|
|
}
|
|
}
|
|
|
|
// Initial effects
|
|
PlayVoiceChat(VOICE_CHAT_PAIN1);
|
|
|
|
ApplyAbilityDamage(oPC, ABILITY_STRENGTH, 1, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
|
|
ApplyAbilityDamage(oPC, ABILITY_DEXTERITY, 1, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
|
|
ApplyAbilityDamage(oPC, ABILITY_CONSTITUTION, 1, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
|
|
ApplyAbilityDamage(oPC, ABILITY_INTELLIGENCE, 1, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
|
|
ApplyAbilityDamage(oPC, ABILITY_WISDOM, 1, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
|
|
ApplyAbilityDamage(oPC, ABILITY_CHARISMA, 1, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
|
|
|
|
//Secondary
|
|
|
|
float fDur = HoursToSeconds(d3());
|
|
|
|
effect eCha = EffectAbilityIncrease(ABILITY_CHARISMA, 2);
|
|
DelayCommand(60.0f, SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eCha, oPC, fDur));
|
|
|
|
effect eCon = EffectAbilityIncrease(ABILITY_CONSTITUTION,2);
|
|
DelayCommand(60.1f, SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eCon, oPC, fDur));
|
|
|
|
effect eDex = EffectAbilityIncrease(ABILITY_DEXTERITY,2);
|
|
DelayCommand(60.2f, SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eDex, oPC, fDur));
|
|
|
|
effect eInt = EffectAbilityIncrease(ABILITY_INTELLIGENCE,2);
|
|
DelayCommand(60.3f, SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eInt, oPC, fDur));
|
|
|
|
effect eStr = EffectAbilityIncrease(ABILITY_STRENGTH,2);
|
|
DelayCommand(60.4f, SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStr, oPC, fDur));
|
|
|
|
effect eWis = EffectAbilityIncrease(ABILITY_WISDOM,2);
|
|
DelayCommand(60.5f, SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eWis, oPC, fDur));
|
|
|
|
|
|
// Luhix overdose
|
|
if(GetOverdoseCounter(oPC, "PRC_LuhixOD"))
|
|
{
|
|
if(!FortitudeSave(oPC, 25, SAVING_THROW_TYPE_POISON))
|
|
{
|
|
PlayVoiceChat(VOICE_CHAT_PAIN3);
|
|
DeathlessFrenzyCheck(oPC);
|
|
DelayCommand(3.0,SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oPC));
|
|
}
|
|
}
|
|
//OD increment
|
|
IncrementOverdoseTracker(oPC, "PRC_LuhixOD", HoursToSeconds(24));
|
|
} |