I've noticed npc scripts and npc combat scripts don't have an npc id in them. I'm curious as to how i could link an npc script to an npc.

Spoiler for Example of Npc Script:
Code:
package org.dementhium.model.npc.impl;

import org.dementhium.model.Mob;
import org.dementhium.model.combat.CombatAction;
import org.dementhium.model.combat.CombatType;
import org.dementhium.model.combat.Damage;
import org.dementhium.model.combat.impl.npc.ChromaticDragonAction;
import org.dementhium.model.npc.NPC;

/**
 * Represents a chromatic dragon (green, blue, red, black dragons).
 *
 * @author Emperor
 */
public class ChromaticDragon extends NPC {

	/**
	 * The combat action to use.
	 */
	private static CombatAction combatAction = new ChromaticDragonAction();
	
    /**
     * Constructs a new {@code ChromaticDragon} {@code Object}.
     *
     * @param id The npc id.
     */
    public ChromaticDragon(int id) {
        super(id);
        setAttribute("dragonfireName", "fiery breath");
    }
    
    @Override
    public int getAttackDelay() {
    	return 4;
    }
    
	@Override
	public Damage updateHit(Mob source, int hit, CombatType type) {
		if (type == CombatType.DRAGONFIRE) {
			return new Damage(0);
		}
		return new Damage(hit);
	}
	
	@Override
	public CombatAction getCombatAction() {
		return combatAction;
	}
}


I also continue to get errors when using this method for finding a familiars owner:

Code:
player.getBob().getFamiliar().getOwner();