[Help]How to know if an object is a mining node. menu

User Tag List

Results 1 to 12 of 12
  1. #1
    =manzarek='s Avatar Member
    Reputation
    3
    Join Date
    Feb 2010
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help]How to know if an object is a mining node.

    Hello,
    I am trying to write a simple gathering bot,
    here is what i done so far:
    [Help]How to know if an object is a mining node.-aff8cad775a03067a0a2a3208cf428d3-png

    But i cant find the way to determine if the object is a mining node or not.
    How can i do that + are the GUIDs i display correct?

    Thank you

    [Help]How to know if an object is a mining node.
  2. #2
    kosacid's Avatar Active Member
    Reputation
    19
    Join Date
    May 2009
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there 2 ways go into the object field discriptor and compare the DisplayId there usaly that matches wow head
    but i usaly go by name eg Titanium Vein
    it in c++ but its not hard to convert

    this is how i get the objects name
    char obname[256]="";
    ReadProcMem((LPVOID)(BaseObject + ObjectName1),&ob, 4); // ObjectName1 = 0x1B8
    ReadProcMem((LPVOID)(ob + ObjectName2),&ob, 4); // ObjectName2 = 0xB4
    ReadProcMem((LPVOID)(ob),&obname[0], 100*sizeof(char));

    this displays the wow head id
    uint dsfp;
    ReadProcMem((LPVOID)(BaseObject + 0x0,&dsfp,4);
    uint DisplayId;
    ReadProcMem((LPVOID)(dsfp + GAMEOBJECT_DISPLAYID),&DisplayId,4); // GAMEOBJECT_DISPLAYID = 0x24
    Last edited by kosacid; 09-11-2012 at 04:04 AM.

  3. #3
    fortiZ's Avatar Contributor
    Reputation
    144
    Join Date
    Dec 2011
    Posts
    144
    Thanks G/R
    18/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But if you want to publish it, it would be better to compare the DisplayID, isn't it? Because the ID os the same for every language ;>

  4. #4
    kosacid's Avatar Active Member
    Reputation
    19
    Join Date
    May 2009
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ye i agree with that but some find it hard with just numbers so your sort of stuck on what to use lol

  5. #5
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why? The user doesnt have to mess around with the ids, they just have to be the list.
    I dont get the problem...

    The approach with the diplay Id is correct

  6. #6
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I were you I'd look in to the function(s) which changes the mouse cursor in to a mining pick on mouseover..
    Sorry I can't be more specific but I lost my IDB database in a hdd crash

  7. #7
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Get the lock record for the game object.

    Code:
        public enum WoWLockType    {
            None = 0,
            Lockpicking = 1,
            Herbalism = 2,
            Mining = 3,
            DisarmTrap = 4,
            Open = 5,
            Treasure = 6,
            CalcifiedElvenGems = 7,
            Close = 8,
            ArmTrap = 9,
            QuickOpen = 10,
            QuickClose = 11,
            OpenTinkering = 12,
            OpenKneeling = 13,
            OpenAttacking = 14,
            Gahzridian = 15,
            Blasting = 16,
            PvPOpen = 17,
            PvPClose = 18,
            Fishing = 19,
            Inscription = 20,
            OpenFromVehicle = 21,
        }
    I'll leave getting the lock record ID as an exercise for you

  8. #8
    =manzarek='s Avatar Member
    Reputation
    3
    Join Date
    Feb 2010
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much, i 'll use the displayID method but the offset is not 0x24 but 0x14.
    Thank you

    edit: Ty Apoc i'll take a look at this

  9. #9
    =manzarek='s Avatar Member
    Reputation
    3
    Join Date
    Feb 2010
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If i understand Apoc i have to read DBC and find the lock type for my display ID?

  10. #10
    kosacid's Avatar Active Member
    Reputation
    19
    Join Date
    May 2009
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0x0 + 0x7 + 0x2 * 4 = 0x24 thats the formula
    Last edited by kosacid; 09-11-2012 at 12:40 PM.

  11. #11
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kosacid View Post
    0x0 + 0x7 + 0x2 * 4 = 24 thats the formula
    0x0 = 0
    0x7 = 7
    0x2 = 2

    0 + 7 + (2 * 4) = 7 + 8 = 15

    15 = 0xF
    24 = 0x18

    Strange math skills...

  12. #12
    kosacid's Avatar Active Member
    Reputation
    19
    Join Date
    May 2009
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0x0 in c++ usaly mean hex well the last time i looked try using hex to calc it

Similar Threads

  1. [HELP] Need to know how to disable dueling in an special area.
    By Lynna in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 07-05-2010, 03:21 PM
  2. [Help}Need to know how to Share Stuff
    By Juicyz in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 03-24-2008, 08:20 PM
  3. need help (don't know how to get the edits to work in wow)
    By Daluur in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 01-07-2008, 10:16 AM
  4. How do I keep game objects forever. PLZ HELP!
    By chocodog in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 10-01-2007, 09:20 PM
All times are GMT -5. The time now is 04:01 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