fixed npc options being messed on 317 revision and also fixed the npc index being +1 when interacting with npcs.