generated from Jaysyn/ModuleTemplate
20 lines
566 B
Plaintext
20 lines
566 B
Plaintext
//Author: slave_of_emotions
|
|
//Description: The script changes the user into the creature under ePoly for 1 hour per druid level.
|
|
#include "prc_misc_const"
|
|
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
object oTarget;
|
|
effect ePoly;
|
|
int nDuration = GetLevelByClass(CLASS_TYPE_DRUID);
|
|
oTarget = oPC;
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget);
|
|
ePoly = EffectPolymorph(POLYMORPH_TYPE_PENGUIN);
|
|
ePoly = ExtraordinaryEffect(ePoly);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ePoly, oTarget, HoursToSeconds(nDuration));
|
|
}
|
|
|