fix for the npc error msges

fixed the errors in lua scripts