Quantcast
WoWInterface - View Single Post - PlayerModel:SetDisplayInfo
View Single Post
07-03-16, 04:14 AM   #69
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,059
Originally Posted by telkostrasz View Post
Yes, using NPC Ids is a solution we though about, but that means we have to map all npcID from the game to a race? How much IDs does that represents? How could this be easily maintenable?
It looks like you can actually just call model:GetModelFileID() as a drop-in replacement for GetModel. You'll just have to map out the IDs for the different races.

Some quick numbers..
Lua Code:
  1. ModelFileIDs = {
  2.     female = {
  3.         human = 1000764,
  4.         orc = 949470,
  5.         dwarf = 950080,
  6.         nightelf = 921844,
  7.         undead = 997378,
  8.         tauren = 986648,
  9.         gnome = 940356,
  10.         troll = 1018060,
  11.         goblin = 119369,
  12.         bloodelf = 110258,
  13.         draenei = 1022598,
  14.     },
  15.    
  16.     male = {
  17.         human = 1011653,
  18.         orc = 917116,
  19.         dwarf = 878772,
  20.         nightelf = 974343,
  21.         undead = 959310,
  22.         tauren = 968705,
  23.         gnome = 900914,
  24.         troll = 1022938,
  25.         goblin = 119376,
  26.         bloodelf = 1100087,
  27.         draenei = 1005887,
  28.     }
  29. }

Last edited by semlar : 07-03-16 at 04:25 AM.