What?
I was just pointing out that your logic was flawed. This is a faction thing. Not a race thing.
It's not my fault if you don't understand what's going on. No need to take it on people who DO understand it and want to make sure that the people asking questions get the RIGHT information.
function TargetIs(faction_template){
Switch faction_template
Case '1' ; Human
Return 1
Case '2' ; Orc
Return 2
Case '3' ; Dwarf
Return 1
Case '4' ;Night Elf
Return 1
Case '5' ;Undead
Return 2
Case '6' ;Tauren
Return 2
Case '115' ;Gnome
Return 1
Case '116' ;Troll
Return 2
Case '1610' ;Blood Elf
Return 2
Case '1629' ; Draenei
Return 1
Case '730' ;Balinda
Return 2
Case Else ; npc
Return 3;Any other creature
}
so 1=alliance,2=horde,3=any other npc
just check out SHynd's article, use the method I decribed to update offsets and that's all you need to know if target is friendly or hostile ..ehh it's copy&paste
as i said, i copied shynd's stuff and updated offsets (+ regarding the basemodule etc.) but i'm getting strange return values :/ (sometimes showing friendly players as hostile etc. but hadn't tested this with npcs much)
natt_'s function would help, but it doesn't give me the ability to see if a NPCis friendly or hostile :/ (but would help in pvp situations)
maybe there is some other way to determinate, if the target is hostile (without the faction comparsion stuff) didn't had enough time the last 3 days to check this. (nameplate color? ^^)