Little help with CTM InteractObject menu

User Tag List

Results 1 to 3 of 3
  1. #1
    fvicaria's Avatar Active Member
    Reputation
    29
    Join Date
    Jan 2009
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Little help with CTM InteractObject

    Hi guys,

    This used to work fine before but now it just seems to stand there and complain ("Can't do this while moving!") even though I am not moving (I think).

    Here is my code (it should be self explanatory):

    Code:
            public static void InteractWithObject(ulong guid)
            {
                if (World == null)
                    return;
    
                var obj = World.ObjectManager.GetObjectByGUID(guid);
    
                if (obj == null)
                    return;
    
    
                ClickToMove(obj.X, obj.Y, obj.Z, 4.5f, 0, ClickToMoveActionType.WalkTo);
    
                Thread.Sleep(100);
                ClickToMove(0, 0, 0, 0, guid, ClickToMoveActionType.InteractObject);
            }
    What am I doing wrong? Is there a better way of doing it?

    Thanks for the help.

    Little help with CTM InteractObject
  2. #2
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I personally use the virtual Interact function directly... I think I tried CTM, but could not get it to work properly.

  3. #3
    Empted's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2011
    Posts
    117
    Thanks G/R
    0/5
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'd better follow the way pointed above.
    If you want to do it with interact, then get rid of that 100ms sleep, better check for movement flag instead. I bet you'll be like 100% moving when calling second CTM with this code, because of too small interval.
    Last edited by Empted; 01-28-2013 at 03:22 AM.

Similar Threads

  1. [SotA] Little help with achievements
    By zimieri in forum World of Warcraft Guides
    Replies: 0
    Last Post: 04-30-2009, 09:23 AM
  2. [PHP-SITE] Little Help With A Code...
    By viKKmaN in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 03-16-2008, 07:12 AM
  3. need a little help with autoit
    By Demonshade in forum Community Chat
    Replies: 2
    Last Post: 07-27-2007, 05:20 AM
All times are GMT -5. The time now is 02:42 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