PRC8/nwn/nwnprc/trunk/epicspellscripts/_ev_onitemactiv.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

31 lines
1018 B
Plaintext

//:://////////////////////////////////////////////
//:: FileName: "_ev_onitemactiv"
/* Purpose: Event handler script for module's OnItemActivated event.
*/
//:://////////////////////////////////////////////
//:: Created By: Boneshank
//:: Last Updated On: March 12, 2004
//:://////////////////////////////////////////////
void main()
{
object oItem = GetItemActivated();
object oPC = GetItemActivator();
// One of the Epic Seed books.
if (GetStringLeft(GetTag(oItem), 8) == "EPIC_SD_")
ExecuteScript("activate_seeds", oPC);
// One of the Epic Spell books.
if (GetStringLeft(GetResRef(oItem), 8) == "epic_sp_")
ExecuteScript("activate_epspell", oPC);
// "A Gem Caged Creature" item received from the epic spell Gem Cage.
if (GetTag(oItem) == "IT_GEMCAGE_GEM")
ExecuteScript("run_gemcage_gem", oPC);
// "Whip of Shar" item received from the epic spell Whip of Shar.
if (GetTag(oItem) == "WhipofShar")
ExecuteScript("run_whipofshar", oPC);
}