I really don't know what can be done, magical items aren't really...my territory. But for now, take the pain leaves. Don't try to walk, especially on your own and rest your legs.
I would recommend trying to wiggle your toes and bend your legs occasionally. Slowly, but it might be better to not let your legs get stiff like this since we're not sure how long the change will be.