19 lines
450 B
Plaintext
19 lines
450 B
Plaintext
#include "nw_i0_spells"
|
|
#include "x2_inc_switches"
|
|
void main()
|
|
{
|
|
int nEvent =GetUserDefinedItemEventNumber();
|
|
effect eVis = EffectVisualEffect(VFX_DUR_FLAG_BLUE);
|
|
object oPC = GetPCItemLastEquippedBy();
|
|
|
|
if (nEvent ==X2_ITEM_EVENT_EQUIP)
|
|
{
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eVis,oPC);
|
|
}
|
|
|
|
if (nEvent ==X2_ITEM_EVENT_UNEQUIP)
|
|
{
|
|
RemoveSpecificEffect(EFFECT_TYPE_VISUALEFFECT, oPC);
|
|
}
|
|
}
|