Reorganized hak files & removed duplicates. Added @rafhot's PRC spell & ability level scaling expansion. Further script integration. Full compile.
47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
//Script Name: itool
|
|
//////////////////////////////////////////
|
|
//Created by: Genisys / Guile
|
|
//ON: 7/29/08
|
|
/////////////////////////////////////////
|
|
/* **Notes**
|
|
This script fires the proper script for
|
|
the tagbased item tagnamed itool, which
|
|
depends upon which event fired this
|
|
event script.
|
|
*/
|
|
////////////////////////////////////////
|
|
|
|
//Required Include
|
|
#include "x2_inc_switches"
|
|
#include "prc_inc_spells"
|
|
|
|
//Script Main
|
|
void main()
|
|
{
|
|
int nEvent =GetUserDefinedItemEventNumber();
|
|
switch (nEvent)
|
|
{
|
|
case X2_ITEM_EVENT_ACTIVATE:
|
|
ExecuteScript("ac_"+GetTag(GetItemActivated()),
|
|
OBJECT_SELF); break;
|
|
case X2_ITEM_EVENT_EQUIP:
|
|
ExecuteScript("eq_"+GetTag(GetPCItemLastEquipped()),
|
|
OBJECT_SELF); break;
|
|
case X2_ITEM_EVENT_UNEQUIP:
|
|
ExecuteScript("ue_"+GetTag(GetPCItemLastUnequipped())
|
|
, OBJECT_SELF); break;
|
|
case X2_ITEM_EVENT_ACQUIRE:
|
|
ExecuteScript("aq_"+GetTag(GetModuleItemAcquired()),
|
|
OBJECT_SELF); break;
|
|
case X2_ITEM_EVENT_UNACQUIRE:
|
|
ExecuteScript("ua_"+GetTag(GetModuleItemLost()),
|
|
OBJECT_SELF); break;
|
|
case X2_ITEM_EVENT_SPELLCAST_AT:
|
|
ExecuteScript("sp_"+GetTag(GetModuleItemLost()),
|
|
OBJECT_SELF); break;
|
|
case X2_ITEM_EVENT_ONHITCAST:
|
|
ExecuteScript("on_"+GetTag(PRCGetSpellCastItem()),
|
|
OBJECT_SELF); break;
|
|
}
|
|
}
|