I think you can use the LUA-function GetCVar for realmName
I think you can use the LUA-function GetCVar for realmName
or :
Code:s_CurrentRealm = 0x00C932CE, // 3.3.2
I hijack this thread for a short question.
I don't really have much knowledge in C#, so...
How do I make this Engine-Function available to C#?Code:DWORD __thiscall MyFunction(DWORD thisPtr, const char* name, DWORD objPtr)
I don't know what to do with the string parameter.
Thanks.
Hey, it compiles! Ship it!
hi all again, with your help my bot is coming useful...
but i got another question...
i wanna read target health. I can find the guid by reading 64 bit value from static address 0x00B695C8... but can't find anything else.
I saw in other post that could be like finding player x y z, with 2 offset and pointer to pointer, correct??? if yes, how can i find target base pointer???
well, i'm not using lua, but i looked it. i'm writeing a simple c++ program without "addons".
my problem is: how can i find CurrentNPCObject baseaddres?
edit: i found this offset... who can i use it?
public enum ObjectManager
{
CurMgrPointer = 0x00C93410, // 3.3.2
CurMgrOffset = 0x2E04, // 3.3.2
localGuidOffset = 0xC0, // 3.3.2
firstObjectOffset = 0xAC, // 3.3.2
nextObjectOffset = 0x3C, // 3.3.2
}
Last edited by ruzzichella; 03-12-2010 at 10:59 AM.
try searching for "ObjectManager" on the forum...
By mentioning you should use the luafunction this means you should call lua_dostring in the wow-thread.
Else use the static playerbase and then use the descriptors with UNIT_FIELD_HEALTH.
If you want to get the health of the target read the current target GUID from the static adress and then call GetObjectByGUID to obtain the adress of the object. Then descriptors and health, ...
you got the code of GetObjectByGUID function???
that's what i wanna do... without using lua....![]()
Kinda a waste of resources to loop through all objects to find the right one when you can call GetObjectByGUID
@ruzzichella:
Diff the Offset, 3.3.0a was 0x0047B8B0
May CGCamera_Unk2 be something like CGCamera__UpdateFollowerGUID?
There are a lot of references and tests to CGCamera + 0x88 and 0x8C which are high and lowpart of the followerguid.
sorry again, but two 2 dat no stop for take the name of my target drive me crazy...
well... looking in some thread i found someone that use g_client_connection (static pointer) + an offset for the object manager, and some other that use a directly static pointer to the object manager. well wich one i need to use?? an then is this analysis correct? can't understand very well the structure of object in object manager... why if the "next object" have the offset 3C, the coordinates of the same object is at 798 and more? it's an overlap of object or is more table object with different object???
if someone could explain to me i would be very glad.
tks in advance.
Ruzzichella.