Hello, I wanted to improve my move npc program so I looked into the green circle that hunters get when moving a pet. This is what i found, I hope it helps someone
The offsets are from Wow.exe 4.3.3 [15354]
Click Function (I hook this function so every time you click the green circle is enabled)
Code:
CGWorldFrame::PerformDefaultAction 0x4DF870+wow.exe

Enable circle (int 1)
Code:
0x4DE584+wow.exe -> (0xB41D7D+wow.exe)
Mouse Location (When the circle is enabled you can get the mouse x y z locations)
Code:
x 0x4E1F86+wow.exe -> (float)0xAD5C40+wow.exe
y 0x4E1FA2+wow.exe -> (float)0xAD5C44+wow.exe
z 0x4E1FB9+wow.exe -> (float)0xAD5C48+wow.exe
Disable off click (This will stop the circle from going away, but if you have a pet out it will move every time you click. I do not use this, I hook the click function.)
Code:
NOP 0x550653+wow.exe
NOP 0x54E421+wow.exe

Change size of circle (This will change the size but you need to nop some other addresses so it will stay)
Code:
0x4DE692+wow.exe -> (Float) 0xAD5C34+wow.exe
Keep circle size when green
Code:
NOP 0x4DE692+wow.exe

keep circle Size when red
Code:
NOP 0x4DE673+wow.exe

Remove Red circle, Only Green (After you go out of range the circle becomes red, this keeps it green)
Code:
0x4DE664+wow.exe
mov [0137E7E8],00000001 to -> mov [0137E7E8],00000000

Remove Green circle, Only Red
Code:
0x4DE68C+wow.exe
mov [0137E7E8],ebx -> mov [0137E7E8],1
Circle does not go away after placing it on the ground.. I think XD
Code:
0x4E313D+wow.exe
mov [0137E7E8],00000003 -> mov [0137E7E8],00000001