Author Sticky: Post Working Scripts Here
Juvie Nile Posted: Saturday, 29 June 07:50AM
1. Script Name- Polymorph object
2. What it does - Makes a usable object (I prefer a door) polymorph the PC who used it.
3. Notes - You can use any Polymorph spell you want. I prefer the penguin one. I used the OnUsed script for this one.

NWScript:
void main()

{

  

 object oPC = GetLastOpenedBy();

  if ( GetIsPC( oPC ) )

  {

  effect epolymorph = EffectPolymorph(POLYMORPH_TYPE_PENGUIN );

  ActionWait(0.5); 

  ActionCastSpellAtObject( SPELL_POLYMORPH_SELF , oPC);

  

  ApplyEffectToObject(DURATION_TYPE_TEMPORARY, epolymorph, oPC, 20.0);

  SendMessageToPC(oPC, "You feel funky!");

  }

  }



You can also make the duration longer and change the message.

~Juvie Nile