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.
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/*:://////////////////////////////////////////////
 | 
						|
//:: Spell Name Obscure Object
 | 
						|
//:: Spell FileName PHS_S_ObscureObj
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
//:: In Game Spell desctiption
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
    Abjuration
 | 
						|
    Level: Brd 1, Clr 3, Sor/Wiz 2
 | 
						|
    Components: V, S, M/DF
 | 
						|
    Casting Time: 1 standard action
 | 
						|
    Range: Touch
 | 
						|
    Target: One item touched of up to 100 lb./level
 | 
						|
    Duration: 8 hours (D)
 | 
						|
    Saving Throw: Will negates (object)
 | 
						|
    Spell Resistance: Yes (object)
 | 
						|
 | 
						|
    This spell hides an item from location by divination (scrying) effects,
 | 
						|
    such as the scrying spell or a crystal ball. Such an attempt automatically
 | 
						|
    fails (if the divination is targeted on the object).
 | 
						|
 | 
						|
    Arcane Material Component: A piece of chameleon skin.
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
//:: Spell Effects Applied / Notes
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
    Uses a local variable, as this could be targeted onto an item or placeable.
 | 
						|
 | 
						|
    Ok, made it item-only.
 | 
						|
 | 
						|
    Not complete.
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
//:: Created By: Jasperre
 | 
						|
//::////////////////////////////////////////////*/
 | 
						|
 | 
						|
#include "PHS_INC_SPELLS"
 | 
						|
 | 
						|
void main()
 | 
						|
{
 | 
						|
    // Spell hook check.
 | 
						|
    if(!PHS_SpellHookCheck(PHS_SPELL_OBSCURE_OBJECT)) return;
 | 
						|
 | 
						|
    // Declare major variables
 | 
						|
    object oCaster = OBJECT_SELF;
 | 
						|
    object oTarget = GetSpellTargetObject();
 | 
						|
    int nObjectType = GetObjectType(oTarget);
 | 
						|
    int nCasterLevel = PHS_GetCasterLevel();
 | 
						|
 | 
						|
    // Declare effects
 | 
						|
    effect eVis = EffectVisualEffect(VFX_FNF_SMOKE_PUFF);
 | 
						|
 | 
						|
    // Checks
 | 
						|
    if(nObjectType == OBJECT_TYPE_ITEM)
 | 
						|
    {
 | 
						|
        // Check item weight
 | 
						|
        if(GetWeight(oTarget) <= nCasterLevel * 10)
 | 
						|
        {
 | 
						|
            // Apply visual
 | 
						|
            PHS_IP_ApplyImactVisualAtItemLocation(eVis, oTarget);
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |