[Example][C#] WoW Process Loader menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    wowhackz0r's Avatar Member
    Reputation
    3
    Join Date
    Jun 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Example][C#] WoW Process Loader

    I created this for the bot I'm working on and thought it could be useful to others. It's tested and works, source and application are included. I would love critique on it, but if your just going to say it sucks don't post.



    What does it do?
    It provides a method you can implement into your bot to allow you to easily select which process of wow you would like to run a specific instance of your bot application with for easier setup of a botting environment with multiple instances of WoW running.
    Please post feedback!!!
    Attached Files Attached Files
    Last edited by wowhackz0r; 01-01-2010 at 04:37 AM.

    [Example][C#] WoW Process Loader
  2. #2
    Mirror's Avatar Contributor
    Reputation
    259
    Join Date
    Nov 2006
    Posts
    2,602
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, this actually will be helpful, thank you. I'll be reading the source code if you don't mind, (no copying and pasting just looking too see how and why you did things.)

    +6 rep.
    THIS SIGNATURE IS IN VIALOATION OF SITE RULES, PLEASE FIX ME!
    -Fault

  3. #3
    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)
    Don't get me wrong; I have nothing against people trying to learn. But this doesn't do anything your post says it does...

    Code:
                int click = comboBox1.SelectedIndex;
    
                        WoW.OpenProcessAndThread(processes[click]);
                        uint playerBase = WoW.ReadUInt(WoW.ReadUInt(WoW.ReadUInt(0x00CF7C00) + 0x34) + 0x24);
                        uint mana = WoW.ReadUInt(WoW.ReadUInt(playerBase + 0x8) + (0x18 * 4));
                        uint health = WoW.ReadUInt(WoW.ReadUInt(playerBase + 0x8) + (0x17 * 4));
                        float x = WoW.ReadFloat(playerBase + 0x798);
                        float y = WoW.ReadFloat(playerBase + 0x79C);
                        float z = WoW.ReadFloat(playerBase + 0x7A0);
    
                        label10.Text = WoW.ReadASCIIString(0x00C923F8, 12); // Player name
                        label12.Text = health.ToString(); // Health
                        label13.Text = mana.ToString(); // Mana
                        label14.Text = x.ToString(); // X
                        label15.Text = y.ToString(); // Y
                        label16.Text = z.ToString(); // Z
    That's the bulk of the code. (The rest is just setting debug privs and grabbing a proc handle on the WoW procs via BlackMagic)

    Besides printing some basic info to the WinForms app, what is this supposed to be doing that hasn't been documented 1000x over?

    Edit; as for a critique; you're never closing the handles to the processes you open. (IIRC: BlackMagic has a CloseHandle func somewhere. Don't take my word for it, I don't use the lib.) And you're also opening the handles twice. Once in the button1 handler, and again in the button2 handler. (I think it's button2 at least)

  4. #4
    wowhackz0r's Avatar Member
    Reputation
    3
    Join Date
    Jun 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Mirror View Post
    Wow, this actually will be helpful, thank you. I'll be reading the source code if you don't mind, (no copying and pasting just looking too see how and why you did things.)

    +6 rep.
    go right ahead, C&P if you really want to, i posted it so other people could learn, as long as you understand the code, C&P can lead to learning

  5. #5
    wowhackz0r's Avatar Member
    Reputation
    3
    Join Date
    Jun 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post

    Besides printing some basic info to the WinForms app, what is this supposed to be doing that hasn't been documented 1000x over?
    Well I have read more than one person posting topics on the process of creating a process selector, and modifying this to fit your project would be that...

    As for it not doing, it does everything I stated.

  6. #6
    Mirror's Avatar Contributor
    Reputation
    259
    Join Date
    Nov 2006
    Posts
    2,602
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Don't get me wrong; I have nothing against people trying to learn. But this doesn't do anything your post says it does...

    Code:
                int click = comboBox1.SelectedIndex;
    
                        WoW.OpenProcessAndThread(processes[click]);
                        uint playerBase = WoW.ReadUInt(WoW.ReadUInt(WoW.ReadUInt(0x00CF7C00) + 0x34) + 0x24);
                        uint mana = WoW.ReadUInt(WoW.ReadUInt(playerBase + 0x8) + (0x18 * 4));
                        uint health = WoW.ReadUInt(WoW.ReadUInt(playerBase + 0x8) + (0x17 * 4));
                        float x = WoW.ReadFloat(playerBase + 0x798);
                        float y = WoW.ReadFloat(playerBase + 0x79C);
                        float z = WoW.ReadFloat(playerBase + 0x7A0);
    
                        label10.Text = WoW.ReadASCIIString(0x00C923F8, 12); // Player name
                        label12.Text = health.ToString(); // Health
                        label13.Text = mana.ToString(); // Mana
                        label14.Text = x.ToString(); // X
                        label15.Text = y.ToString(); // Y
                        label16.Text = z.ToString(); // Z
    That's the bulk of the code. (The rest is just setting debug privs and grabbing a proc handle on the WoW procs via BlackMagic)

    Besides printing some basic info to the WinForms app, what is this supposed to be doing that hasn't been documented 1000x over?

    Edit; as for a critique; you're never closing the handles to the processes you open. (IIRC: BlackMagic has a CloseHandle func somewhere. Don't take my word for it, I don't use the lib.) And you're also opening the handles twice. Once in the button1 handler, and again in the button2 handler. (I think it's button2 at least)
    So wait... whats wrong with it? English please?
    THIS SIGNATURE IS IN VIALOATION OF SITE RULES, PLEASE FIX ME!
    -Fault

  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)
    It allows you to run more than 1 wow instance and select which character you would like the bot to run on.
    What bot? This doesn't automate anything. Thus; doesn't fulfill the definition of a bot. You're simply displaying basic information from out of process...

  8. #8
    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)
    Originally Posted by Mirror View Post
    So wait... whats wrong with it? English please?
    I didn't say there was anything majorly wrong with it (other than possibly leaking handles like crazy). It's most definitely not a bot. Just a simple information display. If that's all he was aiming for; he should state so. A bot requires some form of automation to be done. This doesn't do anything automated.

  9. #9
    wowhackz0r's Avatar Member
    Reputation
    3
    Join Date
    Jun 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    What bot? This doesn't automate anything. Thus; doesn't fulfill the definition of a bot. You're simply displaying basic information from out of process...
    I never said this WAS a bot, i said it could be modified for the CREATION of a bot, nowhere did I say this was a complete bot of any fashion.

    The output on the window was simply to display that yes, indeed that specific instance of WoW was being loaded, not to try and claim anything botlike.

    EDIT: I reread my first post, I did not clearly state well enough what this does, however I do believe the included pic provides more than enough description of it, editing my first post now.

  10. #10
    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)
    I repeat.

    What does it do?
    It allows you to run more than 1 wow instance and select which character you would like the bot to run on.
    I'm fairly sure that says 'sic... like the BOT to run on.'

    If that's not what you meant; so be it. However; be more clear in your posts if you want to avoid confusion.

    My point about leaking handles still stands however.

  11. #11
    Multitask's Avatar Contributor

    Reputation
    158
    Join Date
    Jan 2008
    Posts
    1,112
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    I repeat.



    I'm fairly sure that says 'sic... like the BOT to run on.'

    If that's not what you meant; so be it. However; be more clear in your posts if you want to avoid confusion.

    My point about leaking handles still stands however.
    i would have to agree with the OP here. earlier he made reference that this was something to be implemented into a bot. so his discription is correct. if you add this to your bot, it will allow you to select the wow process.

  12. #12
    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)
    Well; he edited the first post. It's a bit clearer now (still confusing as hell with that insane run-on sentence).

    Either way; the leaking handles issue still remains. Close your handles when you're done with them. (And especially; don't open a handle twice for no apparent reason.)

  13. #13
    Multitask's Avatar Contributor

    Reputation
    158
    Join Date
    Jan 2008
    Posts
    1,112
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Well; he edited the first post. It's a bit clearer now (still confusing as hell with that insane run-on sentence).

    Either way; the leaking handles issue still remains. Close your handles when you're done with them. (And especially; don't open a handle twice for no apparent reason.)
    ah, i didnt mean disrespect or anything, just from what i read a few min ago it seemed that his explanation was valid

  14. #14
    wowhackz0r's Avatar Member
    Reputation
    3
    Join Date
    Jun 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Well; he edited the first post. It's a bit clearer now (still confusing as hell with that insane run-on sentence).

    Either way; the leaking handles issue still remains. Close your handles when you're done with them. (And especially; don't open a handle twice for no apparent reason.)

    Yes, i need to close the handles.

    However, if you look at the code a little closer, there is a very apparent reason i open it twice.
    The second time it opens the specific process you select, the first time it cycles through all of them to retrieve the character name, second time it chooses the process you select.

  15. #15
    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)
    Originally Posted by wowhackz0r View Post
    Yes, i need to close the handles.

    However, if you look at the code a little closer, there is a very apparent reason i open it twice.
    The second time it opens the specific process you select, the first time it cycles through all of them to retrieve the character name, second time it chooses the process you select.
    Doesn't change the fact that you open it twice. (You read the name in both button handlers)

    Once you open a handle; store it somewhere [eg; an array] and re-use it later. There's no reason to open it again. You're just leaving the previous one open (thus, leaked), and opening a new one every time you hit button2 or whatever button it was.

    Trust me; I'm being nice as far as critiquing your code goes. Ask kynox. I can be brutal.

Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 10-22-2015, 08:54 AM
  2. How to get read AND write access to wow process?
    By Shutzler in forum WoW Memory Editing
    Replies: 8
    Last Post: 09-26-2009, 04:16 PM
  3. [Help] Do code in Wow process
    By porabotitel in forum Programming
    Replies: 2
    Last Post: 09-09-2009, 08:08 AM
  4. Unable to load WoW process
    By Vohrana in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 05-26-2008, 05:05 PM
  5. WoW Process Guard
    By Caaltaa in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 02-17-2008, 03:35 AM
All times are GMT -5. The time now is 09:15 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