Quote:
Originally Posted by xoraxax
>>youll need player/npc struct - i can already get all data to display. I don't know the way to display this data. Is GUI in PW rendered with d3d8? I mean there should be some structures to contain gui elements and there should be the way to get offsets to this structures. For example. There's a "hpmpxp" window and there's a label in that window with players name. So i need to find hpmpxpWindowsStructure address and playerName offset there. I really hope it makes any sense.
|
Generally to find NPC / mob info (they're classed as the same thing in PW) you would look at the NPC list.
So you'd do something like this (pseudocode)
Code:
npcCount = [[[[[baseCall]+0x1C]+0x1C]+0x24]+0x14]
npcListBase = [[[[[baseCall]+0x1C]+0x1C]+0x24]+0x50]
for i = 0 to npcCount
{
npcObject = [[npcCount]+i*4]
npcID = [[npcObject]+0x11C]
npcHP = [[npcObject]+0x12C]
npcMaxHP = [[npcObject]+0x16C]
}
You can find which NPC / player you have targeted by their targetID in your player structure which is at
Code:
[[[[baseCall]+0x1C]+0x34]+0xB68]
So you'd see what NPC / mob you have targetted, then look for the NPC/mob in the list that has the same ID.
There's a whole bunch of info about this all over these forums, so I won't elaborate any further on this.
The hpmpxp window object is for your own HP / MP / EXP so that won't be any use for target related stuff.
If you still want info for all the GUI windows, give me a little while longer and I'll post the project I'm working on which basically gives you information on all the gui windows and their child controls. It even allows you to show / hide any of those windows hehe (even hidden ones we're not supposed to know about, e.g., GM console xD).
The project is in C#, so if you want to play with it, I suggest you install

(it's free!) or Visual Studio 2010.
As for the D3D8 stuff... One of our friends here is working on

:P.
I've seen a sneak preview and it's looking incredibly promising! Clever ol' stick, That Interest07 chap ^^
Edit:
Quote:
Originally Posted by xoraxax
i can already get all data to display. I don't know the way to display this data.
|
Facepalm... I just re-read your question properly so my answer was kinda redundant lol.
Take a look at Interest's thread (he has attached some preliminary source there - not sure how up-to-date it is though).
I'm also working on trying to generate in game GUI windows / objects using the actual in game functions... Not sure how well this is gonna go, but it might be an alternative if I ever get it off the ground.
I've managed to display my own windows and stuff - Just need to build the supporting handler functions in the client memory lol.