generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
29
_module/nss/bshapewererat.nss
Normal file
29
_module/nss/bshapewererat.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "x2_inc_switches"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
oPC = GetItemActivator();
|
||||
int nDuration = GetLevelByClass(CLASS_TYPE_DRUID, oPC);
|
||||
effect ePoly;
|
||||
|
||||
int nEvent = GetUserDefinedItemEventNumber();
|
||||
if (nEvent == X2_ITEM_EVENT_ACTIVATE)
|
||||
{
|
||||
if (nDuration >= 5)
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oPC);
|
||||
ePoly = EffectPolymorph(POLYMORPH_TYPE_WERERAT);
|
||||
ePoly = ExtraordinaryEffect(ePoly);
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ePoly, oPC, HoursToSeconds(nDuration));
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("You feel a slight tickle inside of your body but nothing else happens.", oPC);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user