WoW Memory Editing WoW Memory Editing for learning purposes only.
This section is more advanced than others on MMOwned Read the section specific rules, infractions will be given out if u break them! That is including the expectations! - If you don't meet them then don't post
07-21-2009
Banned
Join Date: Apr 2009
Posts: 139
Nominated 2 Times in 1 Post
Reputation: 6
Level up: 39%, 307 Points needed
Looking for nodes
Hello
I'm on the final steps on my bot. (Which i will be releasing)
I'm stuck though.
For Example, My bot has walked from Spot A to spot B. Spot B has been marked as a possible node respawn point. If the node is not there it walks to Spot C... ect. If a node is found, I need to interact with it.
So my question is, How do I check to see if a node is at a certain point? and If it is how do i interact with it?
Currently i'm using CTM to walk from Spot A to B. I know i can use CTM to interact with Gameobjects, i'm just not sure how.
I have searched, but i cant find a decient post that can explain it.
Thanks
(
if you help)
Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.
07-21-2009
Master Sergeant
Join Date: May 2007
Location: NY
Posts: 119
Reputation: 39
Level up: 15%, 428 Points needed
Here is the function I use to move and interact by GUID. It writes the target GUID, XYZ floats, and interact type based upon the target object's type.
Code:
public void moveAndInteract(ulong GUID)
{
WowReader.Write<ulong>((uint)WoWData.OffCTM.Base + (uint)WoWData.OffCTM.InteractGuid, GUID);
WowReader.Write<float>((uint)WoWData.OffCTM.Base + (uint)WoWData.OffCTM.MoveX, CObject.XPosition);
WowReader.Write<float>((uint)WoWData.OffCTM.Base + (uint)WoWData.OffCTM.MoveY, CObject.YPosition);
WowReader.Write<float>((uint)WoWData.OffCTM.Base + (uint)WoWData.OffCTM.MoveZ, CObject.ZPosition);
WowReader.Write<int>((uint)WoWData.OffCTM.Base + (uint)WoWData.OffCTM.ActionType,
CObject.Type == 3 ? (CObject.HealthPercent <= 0 ? (int)WoWData.ActionType.Loot : (int)WoWData.ActionType.InteractNpc)
: (int)WoWData.ActionType.InteractObject);
}
and the CTM enums
Code:
public enum OffCTM : uint
{
Base = 0x011180A0,
Unknown1 = 0x0,
TurnScale = 0x4,
Unknown2 = 0x8,
InteractDistance = 0xC,
ActionType = 0x1C,
InteractGuid = 0x20,
MoveX = 0x8C,
MoveY = 0x90,
MoveZ = 0x94
}
public enum ActionType : uint
{
FaceTarget = 0x1,
Stop = 0x3,
WalkTo = 0x4,
InteractNpc = 0x5,
Loot = 0x6,
InteractObject = 0x7,
Unknown1 = 0x8,
Unknown2 = 0x9,
AttackPos = 0xA,
AttackGuid = 0xB,
WalkAndRotate = 0xC
}
Last edited by _duracell; 07-21-2009 at 10:46 PM .
07-21-2009
Banned
Join Date: Apr 2009
Posts: 139
Nominated 2 Times in 1 Post
Reputation: 6
Level up: 39%, 307 Points needed
Right... Thanks
I use Autoit ATM:
here is my code to walk to a XYZ coord
Code:
$CLicktomove = 0x11180A0
$Movex = 0x8C
$MoveY = 0x90
$MoveZ = 0x94
_MemoryWrite($CLicktomove + 0x8C, $wowprocess, $xpoint, 'float')
_MemoryWrite($CLicktomove + 0x90, $wowprocess, $ypoint, 'float')
_MemoryWrite($CLicktomove + 0x94, $wowprocess, $zpoint, 'float')
_MemoryWrite($CLicktomove + 0x1C, $wowprocess, 4, 'int') ;Start walking
Now i know the above code works, because ive been using it today!
So how would i interact using this, instead of C#
07-21-2009
Master Sergeant
Join Date: May 2008
Location: Under your bed
Posts: 97
Reputation: 17
Level up: 31%, 345 Points needed
Quote:
Originally Posted by
ashleyww Right... Thanks
I use Autoit ATM:
here is my code to walk to a XYZ coord
Code:
$CLicktomove = 0x11180A0
$Movex = 0x8C
$MoveY = 0x90
$MoveZ = 0x94
_MemoryWrite($CLicktomove + 0x8C, $wowprocess, $xpoint, 'float')
_MemoryWrite($CLicktomove + 0x90, $wowprocess, $ypoint, 'float')
_MemoryWrite($CLicktomove + 0x94, $wowprocess, $zpoint, 'float')
_MemoryWrite($CLicktomove + 0x1C, $wowprocess, 4, 'int') ;Start walking
Now i know the above code works, because ive been using it today!
So how would i interact using this, instead of C#
Dude.. he gave you a copy/paste version right in front of your face.. just read his post ffs
07-21-2009
Master Sergeant
Join Date: May 2007
Location: NY
Posts: 119
Reputation: 39
Level up: 15%, 428 Points needed
Quote:
Originally Posted by
ashleyww Right... Thanks
I use Autoit ATM:
here is my code to walk to a XYZ coord
Code:
$CLicktomove = 0x11180A0
$Movex = 0x8C
$MoveY = 0x90
$MoveZ = 0x94
_MemoryWrite($CLicktomove + 0x8C, $wowprocess, $xpoint, 'float')
_MemoryWrite($CLicktomove + 0x90, $wowprocess, $ypoint, 'float')
_MemoryWrite($CLicktomove + 0x94, $wowprocess, $zpoint, 'float')
_MemoryWrite($CLicktomove + 0x1C, $wowprocess, 4, 'int') ;Start walking
Now i know the above code works, because ive been using it today!
So how would i interact using this, instead of C#
Code:
$CLicktomove = 0x11180A0
$Movex = 0x8C
$MoveY = 0x90
$MoveZ = 0x94
$obectType = 0x5 for NPC or 0x7 for gameobject
_MemoryWrite($CLicktomove + 0x20, $wowprocess, $targetGUID, 'ulong')
_MemoryWrite($CLicktomove + 0x8C, $wowprocess, $xpoint, 'float')
_MemoryWrite($CLicktomove + 0x90, $wowprocess, $ypoint, 'float')
_MemoryWrite($CLicktomove + 0x94, $wowprocess, $zpoint, 'float')
_MemoryWrite($CLicktomove + 0x1C, $wowprocess, $objectType, 'int')
07-21-2009
Banned
Join Date: Apr 2009
Posts: 139
Nominated 2 Times in 1 Post
Reputation: 6
Level up: 39%, 307 Points needed
Quote:
Originally Posted by
_duracell Code:
$CLicktomove = 0x11180A0
$Movex = 0x8C
$MoveY = 0x90
$MoveZ = 0x94
$obectType = 0x5 for NPC or 0x7 for gameobject
_MemoryWrite($CLicktomove + 0x20, $wowprocess, $targetGUID, 'ulong')
_MemoryWrite($CLicktomove + 0x8C, $wowprocess, $xpoint, 'float')
_MemoryWrite($CLicktomove + 0x90, $wowprocess, $ypoint, 'float')
_MemoryWrite($CLicktomove + 0x94, $wowprocess, $zpoint, 'float')
_MemoryWrite($CLicktomove + 0x1C, $wowprocess, $objectType, 'int')
Thanks.
Now is the $targetGUID the number that WoWhead give us?
For example Copper vien:
[Only registered and activated users can see links. ]
So the targetGUID would be 1731 correct?
07-21-2009
Site Donator
Join Date: Mar 2007
Posts: 767
Reputation: 20
Level up: 31%, 624 Points needed
No. How can you be this 'far' in your bot if you don't know what the object's GUID is??? It's at [obj + 0x30]. You COULD parse through each object and check it's display id to see if it's a saronite node, copper node, etc. Would be nice to do that, but it's a little...over your head for what you're doing.
BTW: The numbers in wowhead.com/item?XXXX are in decimal. have to convert to hex before comparing.
07-21-2009
Master Sergeant
Join Date: May 2007
Location: NY
Posts: 119
Reputation: 39
Level up: 15%, 428 Points needed
Quote:
Originally Posted by
ashleyww Thanks.
Now is the $targetGUID the number that WoWhead give us?
For example Copper vien:
[Only registered and activated users can see links. ]
So the targetGUID would be 1731 correct?
No. GUID is the object's unique identifier.
[Only registered and activated users can see links. ]
07-21-2009
Banned
Join Date: Apr 2009
Posts: 139
Nominated 2 Times in 1 Post
Reputation: 6
Level up: 39%, 307 Points needed
EDIT: Was no need for my reaction.
Sorry
Last edited by ashleyww; 07-21-2009 at 11:50 PM .
07-21-2009
Site Donator
Join Date: Mar 2007
Posts: 767
Reputation: 20
Level up: 31%, 624 Points needed
Wtf? I just told you the damn offset for object guid. Jesus ****in christ...
07-21-2009
Banned
Join Date: Apr 2009
Posts: 139
Nominated 2 Times in 1 Post
Reputation: 6
Level up: 39%, 307 Points needed
Quote:
Originally Posted by
lanman92 Wtf? I just told you the damn offset for object guid. Jesus ****in christ...
Sorry im a little stressed atm :P
Would you mind explaining wow i would retrive the GUID.
Im off to bed now, hopefully ill wake up 2morrow understanding GUID a little more and less stressed.
Once again, sorry for my last post.
07-22-2009
MMOwned WebDev
Legendary User Join Date: Jan 2008
Posts: 1,917
Nominated 5 Times in 1 Post
Reputation: 1029
Points: 22,725, Level: 21
Level up: 21%, 1,275 Points needed
You've obviously gotten nowhere with your bot if you can't even understand what a GUID is. Closing this thread as you keep asking to be spoonfed.
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -4. The time now is 02:27 PM .