PRC8/nwn/nwnprc/trunk/ocfixerf/m1q0bolgred_item.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
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.
2024-02-11 14:01:05 -05:00

54 lines
2.2 KiB
Plaintext

// Added compatibility for PRC base classes
#include "inc_debug"
#include "prc_class_const"
void main()
{
if(DEBUG) DoDebug("m1q0boldgred_item running");
string sItemTemplate;
object oPC = GetPCSpeaker();
if(GetLocalInt(oPC,"NW_L_M1Q0Item1") == FALSE)
{
SetLocalInt(oPC,"NW_L_M1Q0Item1",TRUE);
if(GetLevelByClass(CLASS_TYPE_BARD,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_DRUID,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_SHAMAN,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_HEALER,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_WARLOCK,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_DRAGON_SHAMAN,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_TRUENAMER,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_SCOUT,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_HEXBLADE,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_WARMAGE,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_SWASHBUCKLER,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_SOULKNIFE,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_PSYCHIC_ROGUE,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_ROGUE,oPC) > 0)
{
sItemTemplate = "nw_aarcl002"; //studded leather
}
else if(GetLevelByClass(CLASS_TYPE_SORCERER,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_PSION,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_WILDER,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_DRAGONFIRE_ADEPT,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_SHADOWCASTER,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_DREAD_NECROMANCER,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_NINJA,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_WITCH,oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_WIZARD,oPC) > 0)
{
sItemTemplate = "nw_mcloth009"; //robe of fire resistance
}
else if(GetLevelByClass(CLASS_TYPE_MONK,oPC) > 0)
{
sItemTemplate = "nw_mcloth018"; //robe of the shining hand +1
}
else
{
sItemTemplate = "nw_aarcl012"; //chainshirt
}
object oItem = CreateItemOnObject(sItemTemplate,oPC);
SetIdentified(oItem,TRUE);
}
}