Initial Commit

Initial Commit.
This commit is contained in:
Jaysyn904
2025-09-14 15:40:46 -04:00
parent 7083b33d71
commit 1eefc84201
19230 changed files with 11539227 additions and 0 deletions

View 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);
}
}
}