Fixed NPC animation script.

Could someone please fix the NPC animation script for use with TacoScript and CakeScript.

If someone could that would be great, If not oh well.