Hi,
is there an easy way to determine, if an object is a lootable chest? Currently, i have to hard code the object id's, but it's a lot of work und the list may be updated on newer patches.
Ty in advance.
Hi,
is there an easy way to determine, if an object is a lootable chest? Currently, i have to hard code the object id's, but it's a lot of work und the list may be updated on newer patches.
Ty in advance.
Hello, try calling 57*4 in game object's VMT (it's like GetObjectName) and do something like if(name.Contains("chest")). It may work to some kind of chests. Not the best solution though because of localization.
Another one is to call 24*4 VMT (GetModelFileName) and do same work. It won't be localization dependent then.
And the best one is in this (How do you determine if a node is an herb or mine?) thread by Tom_Rus i guess.
Last edited by Empted; 07-28-2012 at 07:45 AM.
Look up all id's at wowhead and compare it with object id :-)