Hi there,
I needed some quests information (mainly quest name localized from it's ID) which is retrieved from the server and cached (like item info) and I think this can help someone else :
Code:
uint oQuestCacheBase = 0x89ADE0;
uint oFirst = 0x10;
uint oQuestId = 0xC;
uint oQuestName = 0xC4;
uint oQuestDesc = 0x2C4;
uint oLevel = 0x14;
uint oRequiresLevel = 0x18;
uint questPtr = MyWoW.Memory.ReadUInt(oQuestCacheBase + oFirst, "Wow.exe");
uint firstQuestPtr = questPtr;
while (questPtr != 0)
{
UInt32 QuestId = MyWoW.Memory.ReadUInt(questPtr + oQuestId);
UInt32 Level = MyWoW.Memory.ReadUInt(questPtr + oLevel);
UInt32 RequiresLevel = MyWoW.Memory.ReadUInt(questPtr + oRequiresLevel);
String QuestName = MyWoW.Memory.ReadUTF8String(questPtr + oQuestName, 255);
Console.WriteLine(QuestId + " " + QuestName + " " + Level + " " + RequiresLevel);
questPtr = MyWoW.Memory.ReadUInt(questPtr);
if (questPtr == firstQuestPtr)
break;
}
Here is the output :
Code:
...
13222 Defend the Siege 80 78
13195 A Rare Herb 80 78
13181 Victory in Wintergrasp 80 78
13179 No Mercy for the Merciless 80 78
13149 Dispelling Illusions 80 78
...
All offsets is for patch 4.0.6a 13623.