Merge pull request #321 from dalkon/master

Npc bug fix
Move old party Lua functions to compat