Hello everyone, over the past few days I have created a gathering bot and the only thing left to do is stop if from gathering underground nodes. Through reading this forum and others I have decided that the best way to do this is via TraceLine.
From my research I found out that CGWorldFrame__Intersect is actually the wrapper for TraceLine. Here is that function in IDA: (Thanks to TOM_RUS).
[SPOILER]
[/SPOILER]
ImageShack® - Online Photo and Video Hosting <--- If it doesn't work.
I have tried to run the function on the bottom right in the picture (which I believe to be TraceLine) through my EndScene hook (I'm using iHook, thanks to Ryuk).
See my code here: #1513204 - Pastie
I am using the following Offset for TraceLine = 0x2851E0 (Thanks to RivalLfr).
And the flags from MaiN's post here:
http://www.mmowned.com/forums/world-...ml#post1687087
When I run this code WoW crashes and I get the error:
Could not write the specified bytes! 60D1CE09 [5]
(It points to Hook.Restore()
There is no errors with iHook as far as I can tell, I have used both the inbuilt and my own DoString() and GetLocalizedText() perfectly.
I have just a few questions about TraceLine (I have searched, this has kept me stuck for days).
Do I need to write the Point(0, 0, 0) for the return? Is this what is causing me the error?
Or is there something wrong with the string that I'm Injecting?
Thanks alot,
Kaziko.