everything that sets the class specific info for the current npc happens here (outside of any subroutine):
Code:
# get class-specific stuff for this npc
my $npcClass = (CLASS_L)[ $npc->GetClass() ];
my $greeting = $data->{$npcClass}->{greet};
my $buffList = $data->{$npcClass}->{buffs};
paste your full script (unless you're only using exactly what i posted).
nevermind. just saw your update.
