there 2 ways go into the object field discriptor and compare the DisplayId there usaly that matches wow head
but i usaly go by name eg Titanium Vein
it in c++ but its not hard to convert
this is how i get the objects name
char obname[256]="";
ReadProcMem((LPVOID)(BaseObject + ObjectName1),&ob, 4); // ObjectName1 = 0x1B8
ReadProcMem((LPVOID)(ob + ObjectName2),&ob, 4); // ObjectName2 = 0xB4
ReadProcMem((LPVOID)(ob),&obname[0], 100*sizeof(char));
this displays the wow head id
uint dsfp;
ReadProcMem((LPVOID)(BaseObject + 0x0,&dsfp,4);
uint DisplayId;
ReadProcMem((LPVOID)(dsfp + GAMEOBJECT_DISPLAYID),&DisplayId,4); // GAMEOBJECT_DISPLAYID = 0x24
Last edited by kosacid; 09-11-2012 at 04:04 AM.
But if you want to publish it, it would be better to compare the DisplayID, isn't it? Because the ID os the same for every language ;>
ye i agree with that but some find it hard with just numbers so your sort of stuck on what to use lol
Why? The user doesnt have to mess around with the ids, they just have to be the list.
I dont get the problem...
The approach with the diplay Id is correct
If I were you I'd look in to the function(s) which changes the mouse cursor in to a mining pick on mouseover..
Sorry I can't be more specific but I lost my IDB database in a hdd crash![]()
Get the lock record for the game object.
I'll leave getting the lock record ID as an exercise for youCode:public enum WoWLockType { None = 0, Lockpicking = 1, Herbalism = 2, Mining = 3, DisarmTrap = 4, Open = 5, Treasure = 6, CalcifiedElvenGems = 7, Close = 8, ArmTrap = 9, QuickOpen = 10, QuickClose = 11, OpenTinkering = 12, OpenKneeling = 13, OpenAttacking = 14, Gahzridian = 15, Blasting = 16, PvPOpen = 17, PvPClose = 18, Fishing = 19, Inscription = 20, OpenFromVehicle = 21, }![]()
Thank you very much, i 'll use the displayID method but the offset is not 0x24 but 0x14.
Thank you
edit: Ty Apoc i'll take a look at this
If i understand Apoc i have to read DBC and find the lock type for my display ID?
0x0 + 0x7 + 0x2 * 4 = 0x24 thats the formula
Last edited by kosacid; 09-11-2012 at 12:40 PM.
0x0 in c++ usaly mean hex well the last time i looked try using hex to calc it![]()