TL;DR: My animation ids are different to what is traditional for a 317, so how do I fix the emotes for individual npcs?

I am having an issue on my 317 project, it is dragonage base. Most npcs have incorrect attack and death animations. Checking the getattackemote code I can see that some monsters have been manually added, such as jad and zulrah, but no standard monsters are present on the list. That being said, some monsters have perfectly normal attack animations, like hellhounds and hillgiants, but others like zombies and spiritual mages have broken animation. I managed to find out that the animations that the broken npcs are defaulting to is animation id 0.

I did some digging and found this code in my NPCHandler:
Code:
				if (token.equals("npc")) {
					newNPCList(Integer.parseInt(token3[0]), Integer.parseInt(token3[3]), 0, 0, 0, 0, 0, 0, 0);
				}
The newNpcList method is as follows:
Code:
	public void newNPCList(int npcType, int health, int attack, int defence, int maxHit, int attackEmote,
			int defenceEmote, int deathEmote, int respawnTime) {
		NPCDefinition definition = definitions[npcType];

		definition.setHealth(health);
		definition.setAttackStat(attack);
		definition.setDefenceStat(defence);
		definition.setMaxHit(maxHit);
		definition.setAttackEmote(attackEmote);
		definition.setDefenceEmote(defenceEmote);
		definition.setDeathEmote(deathEmote);
		definition.setRespawnTime(respawnTime);

		definition.defined = true;
	}
As far as I understand, all npcs that are undefined are defaulting to 0 attackemote and deathemote, which explains why they are doing animation number 0.

How do I go about defining these npcs, or giving them attack animations. I have previously tried looking for 317 animation lists but my npc ids are different from what is there, and my animations are numbered differently as well. So what works in that animation list, is just a bugged animation for me.

How do I go about dealing with this issue? Do I have to change something in the cache? Can anyone link me a helpful thread or point me in the right direction.

Thanks in advance for any and all help.