CTM and Herb/Mining looting menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    yellow82's Avatar Site Donator
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    22
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CTM and Herb/Mining looting

    Hello people!

    I'm not good at English, so I use google translation. I hope you can understand it!

    I wrote a bot that is farming herbs and ores. The fly and fly to the herb works great.

    But unfortunately I can not break down easily with CTM of the herb / ore.

    ACTION = 7
    GUID = GUID of the object
    X = X coordinate of the object
    Y = Y coordinate of the object
    Z = Z coordinate of the object

    It happens but unfortunately nothing. Please tell me how I can most easily reduce an herb / ore?

    Thank you for your help!

    Have a nice day!

    CTM and Herb/Mining looting
  2. #2
    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)
    The easy way to loot herb or ore node is to call [GameObjectRightClick = 0x486780 rebased] function while autoloot is enabled. It takes object base address in ecx as param:
    PHP Code:
                wow.Asm.AddLine("mov ecx, {0}"objBase);
                
    wow.Asm.AddLine("call {0}", (uint)wow.MainModule.BaseAddress+(uint)Offsets.eWowFunctions.GameObjectRightClick);
                
    wow.Asm.AddLine("retn"); 

  3. #3
    yellow82's Avatar Site Donator
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    22
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply!

    But I've never used a syntax in my programs. What should I integrate using "using"?

    And is the current address

    "886780 CGGameObject_C::OnRightClick"

    right?

    What alternative way I would except Image Search?

    LG

  4. #4
    yellow82's Avatar Site Donator
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    22
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how i can use Asm.AddLine?

    EDIT:

    i copy the curObjectAddress in ecx
    and call windowbase + ObjectRigthClickAddress.

    Ok.. but how do I use asm.addline?

    I use not Blackmagic!

    ok you use BlackMagic!
    Last edited by yellow82; 03-08-2013 at 08:53 AM.

  5. #5
    yellow82's Avatar Site Donator
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    22
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have this code written.

    I stand in front of the object. nothing happens


    PHP Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Magic;

    struct ADDRESSES
    {
        
    // Current Player Life
        
    static public uint MainPlayerCurHealthBase 0x00CF2EE8;
        static public 
    uint[] MainPlayerCurHealthOffsets = new uint[] { 0x00xBC0x740x40x58 };

        
    // Maximum Player Life
        
    static public uint MainPlayerMaxHealthBase 0x00CF2EE8;
        static public 
    uint[] MainPlayerMaxHealthOffsets = new uint[] { 0x00xBC0x740x40x58 };

        
    // Current Player Mana
        
    static public uint MainPlayerCurManaBase 0x00CF2EE8;
        static public 
    uint[] MainPlayerCurManaOffsets = new uint[] { 0x00xBC0x740x40x5C };

        
    // Maximum Player Mana
        
    static public uint MainPlayerMaxManaBase 0x00CF2EE8;
        static public 
    uint[] MainPlayerMaxManaOffsets = new uint[] { 0x00xBC0x740x40x74 };

        
    // Current Player Position
        
    static public uint MainPlayerPositionX 0xC88FF0;
        static public 
    uint MainPlayerPositionY 0xC88FF4;
        static public 
    uint MainPlayerPositionZ 0xC88FF8;

        
    // Current Target
        
    static public uint MainPlayerTargetGuid 0xD4FF50;
        static public 
    uint MainPlayerTargetEntryID 0xD4FF54;

        
    // CTM
        
    static public uint CTM_Action 0xD01C1C;
        static public 
    uint CTM_GUID 0xD01C20;
        static public 
    uint CTM_ENTRYID 0xD01C24;
        static public 
    uint CTM_TARGET_X 0xD01C8C;
        static public 
    uint CTM_TARGET_Y 0xD01C90;
        static public 
    uint CTM_TARGET_Z 0xD01C94;

        
    // OBJECTS
        
    static public uint clientConnection 0xEADA68;
        static public 
    uint objectManager 0x462C;
        static public 
    uint firstObject 0xCC;
        static public 
    uint nextObject 0x3C;
        static public 
    uint objectGUID 0x30;
        static public 
    uint objectType 0x10;
        static public 
    uint objectX 0xF0;
        static public 
    uint objectY 0xF4;
        static public 
    uint objectZ 0xF8;
        static public 
    uint objectDescriptor 0x8;
        static public 
    uint objectDisplayID 0x24;
        static public 
    uint objectRightClick 0x486780;
    }



    namespace 
    WindowsFormsApplication5
    {
        public 
    partial class Form1 Form
        
    {
            public 
    Form1()
            {
                
    InitializeComponent();
            }

            private 
    void btnRead_Click(object senderEventArgs e)
            {
                
    BlackMagic wow = new BlackMagic();
                
    wow.OpenProcessAndThread(SProcess.GetProcessFromProcessName("wow"));

                
    // Leeren der Box
                
    lBoxResult.Items.Clear();

                
    IntPtr wowBase wow.MainModule.BaseAddress;

                
    uint clientConnection wow.ReadUInt((uint)wowBase ADDRESSES.clientConnection);
                
    uint objMgr wow.ReadUInt(clientConnection ADDRESSES.objectManager);

                
    uint curObject wow.ReadUInt(objMgr ADDRESSES.firstObject);

                while (
    curObject != && (curObject 2) == 0)
                {
                    
    uint curType wow.ReadUInt(curObject ADDRESSES.objectType);

                    if (
    curType == 5)
                    {
                        
    uint curGUID wow.ReadUInt(curObject ADDRESSES.objectGUID);

                        if (
    Convert.ToInt32(txtGUID.Text) == curGUID && Convert.ToInt32(txtGUID.Text) != 0)
                        {
                            
    RightClickObject(wowcurObject);
                        }


                        
    lBoxResult.Items.Add(curGUID.ToString());
                    }


                    
    curObject wow.ReadUInt(curObject ADDRESSES.nextObject);
                }
            }


            
    // RIGHT CLICK TO OBJECT
            
    private void RightClickObjectBlackMagic wow uint _curObject)
            {
                
    wow.Asm.AddLine("mov ecx, {0}"_curObject);
                
    wow.Asm.AddLine("call {0}", (uint)wow.MainModule.BaseAddress ADDRESSES.objectRightClick);
                
    wow.Asm.AddLine("retn"); 
            }



            private 
    void lBoxResult_SelectedIndexChanged(object senderEventArgs e)
            {
                
            }
        }

    Help please!

    thx

    EDIT

    OK my bad!

    PHP Code:
    // RIGHT CLICK TO OBJECT
            
    private void RightClickObjectBlackMagic wow uint _curObject)
            {
                
    uint codecave wow.AllocateMemory();
                
    wow.Asm.Clear();
                
    wow.Asm.AddLine("mov ecx, {0}"_curObject);
                
    wow.Asm.AddLine("call {0}", (uint)wow.MainModule.BaseAddress ADDRESSES.objectRightClick);
                
    wow.Asm.AddLine("retn");
                
    wow.Asm.InjectAndExecute(codecave);
            } 
    Last edited by yellow82; 03-08-2013 at 10:54 AM.

  6. #6
    yellow82's Avatar Site Donator
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    22
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi people!

    The ASM korrekt? The WoW crashed occasionally!

    PHP Code:
    static public int objectRightClick 0x486980// 5.2.0 (16669) 
    PHP Code:
    private void RightClickObjectBlackMagic wow uint _curObject)
            {
                
    uint codecave wow.AllocateMemory();
                
    wow.Asm.Clear();
                
    wow.Asm.AddLine("mov ecx, {0}"_curObject);
                
    wow.Asm.AddLine("call {0}", (uint)wow.MainModule.BaseAddress ADDRESSES.objectRightClick);
                
    wow.Asm.AddLine("retn");
                
    wow.Asm.InjectAndExecute(codecave);
            } 
    thanks for help
    Last edited by yellow82; 03-09-2013 at 07:14 AM.

  7. #7
    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)
    As long as you are running this code in the new thread, you should not use RETN at the end.
    P.S. just remove the line with retn..
    Last edited by Empted; 03-10-2013 at 08:08 AM.

  8. #8
    yellow82's Avatar Site Donator
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    22
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please tell me a little more detail!

    Thank you

Similar Threads

  1. How to determine mine and herb?
    By starfish99 in forum WoW Memory Editing
    Replies: 19
    Last Post: 12-20-2018, 11:07 PM
  2. Vash'jir - Best Mining and Herbing Profile!
    By moonk1n in forum WoW Bot Maps And Profiles
    Replies: 5
    Last Post: 08-20-2012, 11:41 PM
  3. [SGatherer+Whack Underground Profiles - Mining and Herb!] *Under Progress*
    By darkpingu in forum WoW Bot Maps And Profiles
    Replies: 26
    Last Post: 05-05-2011, 11:53 AM
  4. [Selling] WTS 70 Paladin, epic flying and 450 Mining/Herb
    By Dale93 in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 02-24-2011, 10:35 PM
  5. [Gold] [Mining And Herbing In Tanaris]
    By doodlydude in forum World of Warcraft Guides
    Replies: 3
    Last Post: 07-06-2010, 04:59 PM
All times are GMT -5. The time now is 07:27 AM. 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