Update rope.lua
Update rope and magic rope

The previous pull request never addressed the issues with the script
updates. This commit addresses them.