[Question] Interaction! menu

User Tag List

Results 1 to 10 of 10
  1. #1
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Interaction!

    Hello

    I'm having problems interacting with nodes.

    I don't really want to use CTM global struct, but that's all I know =/

    The addresses that im using:

    Code:
    public static uint GUID1 = 0x30;
                public static uint Action = 0x00B92530;			    // 3.3.3
                public static uint Target = 0x00B92530;			    // 3.3.3
                public static uint Distance = 0x005EC1E0 + 0xC;                // possibly wrong?
    To interact I am using:

    Code:
                WoW.Memory.WriteUInt64(Offsets.CTM.Target, guid);
                WoW.Memory.WriteInt(Offsets.CTM.Action, 4);
    It does nothing, my character just stands there. So I did some digging and found that I would need to write to Distance also, so know I use:

    Code:
                WoW.Memory.WriteFloat(Offsets.CTM.Distance, 2.75f);
                WoW.Memory.WriteUInt64(Offsets.CTM.Target, guid);
                WoW.Memory.WriteInt(Offsets.CTM.Action, 4);
    Again my character is still stood in the same place.

    To obtain the GUID, I am using:

    Code:
                WoW.Memory.ReadUInt(BaseAddress + Offsets.WowObject.GUID1);
    The GUID reading must be ok, because I can get name and ID's perfectly!

    Thus meaning that its my interaction code that's wrong.

    Any ideas guys? +Rep to helpers
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

    [Question] Interaction!
  2. #2
    Chinchy's Avatar Active Member
    Reputation
    21
    Join Date
    Mar 2009
    Posts
    71
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm assuming you actually have CTM enabled. From looking at the above snippets of code it doesn't look like you're writing the object's coordinations to CTM. Pretty simple fix.

    If that's not the case, see if you're already within your interact distance. You won't interact with the object if you are. You'll need to move a small amount forward for it to trigger interact. You can use PostMessage to send a movement key to accomplish this.

    Working offsets 3.3.3
    Code:
    const uint CTM_BASE = 0xB92510;  //3.3.3
    const uint CTM_Interact = 0x20;
    const uint CTM_iDistance = 0xC;
    const uint CTM_X = 0x8C;
    const uint CTM_Y = 0x90;
    const uint CTM_Z = 0x94;
    const uint CTM_STATUS = 0x1c;
    Guess I'll just post all the CTM offsets.
    Last edited by Chinchy; 04-16-2010 at 04:06 AM.

  3. #3
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Chinchy View Post
    I'm assuming you actually have CTM enabled. From looking at the above snippets of code it doesn't look like you're writing the object's coordinations to CTM. Pretty simple fix.

    If that's not the case, see if you're already within your interact distance. You won't interact with the object if you are. You'll need to move a small amount forward for it to trigger interact. You can use PostMessage to send a movement key to accomplish this.

    Working offsets 3.3.3
    Code:
    const uint CTM_BASE = 0xB92510;  //3.3.3
    const uint CTM_Interact = 0x20;
    const uint CTM_iDistance = 0xC;
    const uint CTM_X = 0x8C;
    const uint CTM_Y = 0x90;
    const uint CTM_Z = 0x94;
    const uint CTM_STATUS = 0x1c;
    Guess I'll just post all the CTM offsets.

    Thanks, but as far as I know, I dont need to use XYZ if I have the interaction GUID. Anyway I gave it a try... My character did nothing! CTM is enabled, and I did right click once.


    an example of a GUID it gave me:

    Code:
    [11:56] Node Found: Adder's Tongue(Herb)(722284618)
    My new interaction code:
    Code:
                WoW.Memory.WriteFloat(Offsets.CTM.X, x);
                WoW.Memory.WriteFloat(Offsets.CTM.Y, y);
                WoW.Memory.WriteFloat(Offsets.CTM.Z, z);
                WoW.Memory.WriteFloat(Offsets.CTM.Distance, 3.5f);
                WoW.Memory.WriteUInt64(Offsets.CTM.Target, guid);
                WoW.Memory.WriteInt(Offsets.CTM.Action, 7);
    Using the offsets Chinchy provided!

    This must mean that my GUID stuff is incorrect?
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  4. #4
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    [11:56] Node Found: Adder's Tongue(Herb)(722284618)
    [/code]
    Doesn't really look Uint64-ish too me
    "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

  5. #5
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    Doesn't really look Uint64-ish too me
    Urm... Im using

    Code:
            public virtual ulong GUID
            {
                get { return WoW.Memory.ReadUInt(BaseAddress + Offsets.WowObject.GUID1); }
            }
    Does it matter that im using ulong? ulong = UInt64 doesn't it?
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  6. #6
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    Urm... Im using

    Code:
            public virtual ulong GUID
            {
                get { return WoW.Memory.ReadUInt(BaseAddress + Offsets.WowObject.GUID1); }
            }
    Does it matter that im using ulong? ulong = UInt64 doesn't it?
    Originally Posted by -Ryuk- View Post
    get { return WoW.Memory.ReadUInt(BaseAddress + Offsets.WowObject.GUID1); }
    Originally Posted by -Ryuk- View Post
    WoW.Memory.ReadUInt
    Originally Posted by -Ryuk- View Post
    ReadUInt
    Originally Posted by -Ryuk- View Post
    UInt
    (fillerlol)
    "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

  7. #7
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    (fillerlol)
    OMG! I really need to check stuff more!

    Now I get:

    Code:
    [12:39] Node Found: Adder's Tongue(Herb)(17658617343687602250)(4951.19)(4357.53)(4951.19)
    Still no interaction! However isnt the 7 value a little high :L
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  8. #8
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    OMG! I really need to check stuff more!

    Now I get:

    Code:
    [12:39] Node Found: Adder's Tongue(Herb)(17658617343687602250)(4951.19)(4357.53)(4951.19)
    Still no interaction! However isnt the 7 value a little high :L


    Scratch that! I had my Zpos offset same as the X. It works perfectly

    Thank you!+Rep
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  9. #9
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    Code:
    [12:39] Node Found: Adder's Tongue(Herb)(17658617343687602250)(4951.19)(4357.53)(4951.19)
    Still no interaction! However isnt the 7 value a little high :L
    Size doesn't matter - It's how you use it.

    Guid's are constructed in a special way and can serve for more than just a 'Globally Unique Identifier". I think there's documentation on wowapi and this forum (EmilyStrange vs Apoc discussion)

    Here's a dump to make it clear, you should see several consistancies in the GUID's: NoMorePasting.com

    As for your interaction issue - I don't use the CTM struct so no clue as to the correctness of your code.
    "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

  10. #10
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    Size doesn't matter - It's how you use it.

    Guid's are constructed in a special way and can serve for more than just a 'Globally Unique Identifier". I think there's documentation on wowapi and this forum (EmilyStrange vs Apoc discussion)

    Here's a dump to make it clear, you should see several consistancies in the GUID's: NoMorePasting.com

    As for your interaction issue - I don't use the CTM struct so no clue as to the correctness of your code.
    Yo mamma is fat.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

Similar Threads

  1. [Question] Problem with Fishbot - Interact with Target
    By VexeRR in forum WoW Memory Editing
    Replies: 15
    Last Post: 01-11-2011, 07:22 AM
  2. [Question][C#][ASM] Object -> Interact (VMT 38)
    By -Ryuk- in forum WoW Memory Editing
    Replies: 5
    Last Post: 05-10-2010, 06:05 PM
  3. Replies: 2
    Last Post: 04-15-2010, 06:31 AM
  4. 2 Questions Interact/Select Target C++
    By jockel in forum WoW Memory Editing
    Replies: 4
    Last Post: 06-04-2009, 08:31 AM
  5. [Question] Interacting with WoW
    By CrazyCactuaR in forum Programming
    Replies: 3
    Last Post: 05-17-2009, 01:03 PM
All times are GMT -5. The time now is 01:06 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search