Hi
Is it possible to place an aoe circle the same way you do click to move, by just writing to memory? or do I have to hook and call a function?
Hi
Is it possible to place an aoe circle the same way you do click to move, by just writing to memory? or do I have to hook and call a function?
You can call this function.
Code:[UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate bool Spell_C_HandleTerrainClick(IntPtr a1, IntPtr a2, Vector3 location); Spell_C__HandleTerrainClick = 0x78F6B8 //17956, not rebased
Thx but is there no other way than calling a function? dont feel like hooking and stuff
No (filler)
How can I assign the delegate the address? Does anyone have an example for me?Code:[UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate bool Spell_C_HandleTerrainClick(IntPtr a1, IntPtr a2, Vector3 location);
Thanks in advance!![]()
I just added this to my bot (which is based on WoWX - thanks Bobby!!)
Note that previous info did not have as much padding floats at the beginning. I am assuming that the padding increase when Blizz switched to bigger GUID data format. So basically the padding is for a GUID, which is not needed to place the spell.
bool CGWorld::HandleTerrainClick(CVec3 loc) const
{
struct HTCData
{
float a; //0x0
float b; //0x4
float c; //0x8
float d; //x0c
float x; //0x10
float y; //0x14
float z; //0x18
} data;
data.a = 0;
data.b = 0;
data.c = 0;
data.d = 0;
data.x = loc.fX;
data.y = loc.fY;
data.z = loc.fZ;
typedef bool(__cdecl * tHandleTerrainClick)(HTCData * pHTCdata, CVec3 * pXYZ);
tHandleTerrainClick htc = reinterpret_cast<tHandleTerrainClick>(gpWoWX->ReBase(Spell_C_HandleTerrainClick));
bool result = htc(&data, (CVec3 *) & data.x);
return result;
}
Last edited by counted; 12-19-2014 at 12:33 PM.
You're going to have to inject either compiled assembly code or a library and run it internally. The former being the easier option. I can't recommend any particular guides which might be relevant to you, but if you search this forum for "assembly injection" you'd probably find something useful.
Noticed that my comment on float z was wrong. It was 0x16, i fixed my post to 0x18, but i can not fix the other post referencing it