Problem with CTM menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Fabio571's Avatar Private
    Reputation
    1
    Join Date
    Nov 2010
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with CTM

    Hi,
    I have made a small bot but I have a problem with CTM interaction.
    This code handles the looting but it doesnt work; the character walks to the mob then opens the looting window but it doesnt take any items.
    Any ideas?
    Code:
     ObjectManager.Write<float>(BaseAddress + CtmX, wowUnit.X);
    ObjectManager.Write<float>(BaseAddress + CtmY, wowUnit.Y);
    ObjectManager.Write<float>(BaseAddress + CtmZ, wowUnit.Z);
    ObjectManager.Write<ulong>(BaseAddress + CtmInteractGuid, wowUnit.GUID);
    ObjectManager.Write<float>(BaseAddress + interactDist, (float)Convert.ToDouble(3.66666650772095));
    ObjectManager.Write<uint>(BaseAddress + CtmActionType, 6);
    PS: Before you ask me: I have enabled auto loot xD

    Problem with CTM
  2. #2
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool never knew a guid was a 32bits in length

  3. #3
    Fabio571's Avatar Private
    Reputation
    1
    Join Date
    Nov 2010
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ramey View Post
    cool never knew a guid was a 32bits in length
    Indeed it isnt a 32 bits because ulong type is 64 bits

  4. #4
    oldmanofmen's Avatar Member
    Reputation
    12
    Join Date
    Jan 2010
    Posts
    104
    Thanks G/R
    4/3
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ObjectManager.Write<float>(BaseAddress + interactDist, (float)Convert.ToDouble(3.66666650772095));

    WHY?!

  5. #5
    Fabio571's Avatar Private
    Reputation
    1
    Join Date
    Nov 2010
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by oldmanofmen View Post
    ObjectManager.Write<float>(BaseAddress + interactDist, (float)Convert.ToDouble(3.66666650772095));

    WHY?!
    Because I read this value from cheat engine, Wow uses this value when looting and fighting. Instead 0.5 is used when pathing.
    Explained here

  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)
    That's easy to fix mate.

    Code:
                NumberFormatInfo info = new NumberFormatInfo();
                info.NumberDecimalSeparator = ".";
    
                ObjectManager.Write<float>(BaseAddress + interactDist, (float)Convert.ToDouble(Single.Parse("3.66666650772095", info)));
    "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
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where's my crowbar when I need to punch myself in the face with it?


  8. #8
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Are you sure that you have the correct action type? I'm not sure how auto loot affects this, but I know there is a different action type for a right-click versus a shift-right-click (where the later as I recall will toggle auto-looting for this CTM action).

  9. #9
    Fabio571's Avatar Private
    Reputation
    1
    Join Date
    Nov 2010
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the answers but i still can manage to get it working.
    It seems that is missing a parameter to start the auto looting

  10. #10
    Reconsider's Avatar Member
    Reputation
    2
    Join Date
    Jun 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone have latest offsets for the loot patch?

    When I last played (before Cataclysm) it used to be: ( myObject + 0xD8 ) + 0x1020 (patched to 1 so would automatically take objects in loot window)


    Thanks

  11. #11
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Fabio571 View Post
    Thank you for the answers but i still can manage to get it working.
    It seems that is missing a parameter to start the auto looting
    I would suggest you setup your program to monitor the CTM struct, and perform a shift-right-click CTM action yourself (as well as a right-click without the shift) and watch what the action type gets set to.

Similar Threads

  1. loot with CTM problem
    By phthegreat in forum WoW Memory Editing
    Replies: 12
    Last Post: 06-18-2010, 02:38 AM
  2. problem with loot ctm
    By bolototo in forum WoW Memory Editing
    Replies: 12
    Last Post: 10-06-2009, 02:23 PM
  3. Problem with BWH 1.11.2
    By gwl15 in forum World of Warcraft General
    Replies: 3
    Last Post: 08-11-2006, 05:37 PM
  4. Problem with CE.
    By Eldretch in forum World of Warcraft General
    Replies: 1
    Last Post: 08-08-2006, 06:49 PM
  5. I have problem with BHW 3.0
    By sunrize1 in forum World of Warcraft General
    Replies: 1
    Last Post: 07-17-2006, 08:49 AM
All times are GMT -5. The time now is 01:41 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