Fixes and scripting additions

In this update I again fixed bugs (lol, in every update I am only fixing
bugs...)
- Fixed ducked NPC movement
- Fixed random erasing of player data on player save
- Added base for script hooks to NPC editor