Reform()
set category="Animagus"
flick("transfigure",usr)
sleep(10)
usr.icon_state="normal"
density=1
now the problem is i want it to revert to last icon used instead of a icon state because many people will have many different icons and i dont want them all turning into a single icon that they werent using.. please help me.
flick() will display the icon state or icon specified for the duration of the animation and then automatically revert back to the previous icon state or icon. So just use the flick() procedure by itself. The flick() procedure is only for looks and does not actually change any of the mob's vars.