Initial Upload
Initial Upload
This commit is contained in:
18
_module/nss/blueteamuniform.nss
Normal file
18
_module/nss/blueteamuniform.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
#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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user