Animate Rope Spell
Animate Rope Description: You can animate a nonliving ropelike object. The maximum length assumes a rope with a 1-inch diameter.
Reduce the maximum length by 50% for every additional inch of thickness, and increase it by 50% for each reduction of the rope's diameter by half.
The possible commands are 'coil' (form a neat, coiled stack), 'coil and knot,' 'loop,' 'loop and knot,' 'tie and knot,' and the opposites of all of the above ('uncoil,' and so forth). You can give one command each round as a move action, as if directing an active spell.
More: D&D Spells for Animate Rope