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.
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
//::///////////////////////////////////////////////
 | 
						|
//:: Name      Devil Weed
 | 
						|
//:: FileName  sp_devilweed.nss 
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
/** Script for the drug Devil Weed
 | 
						|
 | 
						|
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_Devilweed_DC", 6);
 | 
						|
			
 | 
						|
	//Handle satiation
 | 
						|
	SetPersistantLocalInt(oPC, "PRC_DevilweedSatiation", 10);
 | 
						|
	
 | 
						|
	//Make addiction check
 | 
						|
	if(!GetHasSpellEffect(SPELL_DRUG_RESISTANCE, oPC))
 | 
						|
	{
 | 
						|
		if(!PRCMySavingThrow(SAVING_THROW_FORT, oPC, 6, SAVING_THROW_TYPE_DISEASE))
 | 
						|
		{
 | 
						|
			effect eAddict = EffectDisease(DISEASE_DEVILWEED_ADDICTION);
 | 
						|
			SPApplyEffectToObject(DURATION_TYPE_PERMANENT, eAddict, oPC);
 | 
						|
			FloatingTextStringOnCreature("You have become addicted to Devilweed.", oPC, FALSE);
 | 
						|
		}
 | 
						|
	}
 | 
						|
	
 | 
						|
	//Primary
 | 
						|
	ApplyAbilityDamage(oPC, ABILITY_WISDOM, 1, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
 | 
						|
	
 | 
						|
	effect eMind = EffectSavingThrowDecrease(SAVING_THROW_WILL, 2, SAVING_THROW_TYPE_MIND_SPELLS);
 | 
						|
	SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eMind, oPC, HoursToSeconds(d3()));
 | 
						|
	
 | 
						|
	effect eVis = EffectVisualEffect(VFX_IMP_MAGIC_RESISTANCE_USE);
 | 
						|
	SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC);
 | 
						|
	
 | 
						|
	//Secondary
 | 
						|
	effect eStr = EffectAbilityIncrease(ABILITY_STRENGTH,4);
 | 
						|
	
 | 
						|
	DelayCommand(60.0f, SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStr, oPC, HoursToSeconds(d3(1))));
 | 
						|
 | 
						|
}
 | 
						|
	 |