generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
17
_module/nss/bshapewolf.nss
Normal file
17
_module/nss/bshapewolf.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
//Author: slave_of_emotions
|
||||
//Description: The script changes the user into the creature under ePoly for 1 hour per druid level.
|
||||
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_WOLF);
|
||||
ePoly = ExtraordinaryEffect(ePoly);
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ePoly, oTarget, HoursToSeconds(nDuration));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user