How to open Bound Adamantite Chest with program in wow.exe Minimize.
How to open Bound Adamantite Chest with program in wow.exe Minimize.
Get the base address of the "Bound Adamntite Chest", then call the Interact function from it's VMT.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
"I cried a little earlier when I had to poop" - Sku
you really lieks those chests and yes just find the base and then call interact it's 36
Rofl. Wasn't there a thread from same guy asking how to find the chests just a few days ago?
But yea. VMT. Interact/OnRightClick/whatever-you-wanna-call-it is function 36.
Who can post some examlp code with C++,to get function 36 address
Why do you need to get the address? Just call it.
Code:class CGObject { public: virtual void vtableFunction1() = 0; virtual void vtableFunction2() = 0; .... virtual void vtableFunction35() = 0; virtual char *interact(); ];
Cast the object pointer to the class and call interact. Provided you have the order right (and you're using Visual C++), the vtable should match with the vtable produced with the class definition inside of WoW.
Does that really work that way? If it does then I'm surprised, I would have never expected the dev's of WoW to make it that simple.
What the **** are you talking about "make it that simple?"
The code that argh posted above. I didn't think it would work like that... I've always seen people just call it by finding it's actual address.
EDIT: Okay, I realize how stupid that thought of mine was, my C++ is pretty terrible and I don't really know much how C languages store their values. Reading up on it now...
Last edited by lanman92; 11-14-2008 at 05:14 PM.
It's not how C languages store values; it's how C++ (not C) specifically implements polymorphism (if you want something to read up on, read up on virtual tables and virtual functions).
Other object oriented languages handle polymorphism in often similar ways (but in some cases, very different).
It makes sense that there would be a virtual base class such as a Object class, as many parts of the WoW code base don't really care what type of Object a specific object instance is, but would still want to do something with it. This generalizes a lot of code without having some "god" class implement it all (which would be very poor design).
Thanks man, I didn't know that. This will definitely help my coding...
Last edited by lanman92; 11-14-2008 at 06:50 PM.