The main problem with your version of the quest is that GetHateTop() isn't a member of the entity list. If you call $npc->GetHateTop(), you'll get a result, which I believe is mob type. You should then be able to either call functions from that or cast it to whatever you need.
You also have a typo in the last line ("trator" instead of "traitor").
|