Fixed various unit* script commands to work with NPCs (issue #7548)

http://hercules.ws/board/tracker/issue-7548-unitwalk-do-not-work/
Follow-up to 20bdc01.
Thanks to Ind for his support and suggestions.

Signed-off-by: Haru <haru@dotalux.com>