Finished hooking NPC functions