Creating a Pixel Bot in C# from zero  - "kinda" tutorial menu

User Tag List

Page 5 of 9 FirstFirst 123456789 LastLast
Results 61 to 75 of 122
  1. #61
    FearThree's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hjalplos View Post
    Use binds? Target Last Enemy -> Interract with Target (need to have ctm on) ez
    But how would you navigate to that target asuming you're a ranged class?

    Edit: Just realized you mentioned click to move.
    Last edited by FearThree; 02-02-2020 at 02:39 PM.

    Creating a Pixel Bot in C# from zero  - "kinda" tutorial
  2. #62
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    37
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ye you don't really need to click to move, Interract with CTM On does it for you

  3. Thanks FearThree (1 members gave Thanks to hjalplos for this useful post)
  4. #63
    FearThree's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hjalplos View Post
    ye you don't really need to click to move, Interract with CTM On does it for you
    thanks man

  5. #64
    FearThree's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hjalplos View Post
    I too experience wierd Colors of my standalone LUA addon pixel boxes. Depends on where I am in the world. In Durotar close to Razorhill I can make my X-cord box become a strange color by just moving slightly. If i print out the values they don't change. Just the color of the box for no reason. Blizz have some anti pixel code ? or there are some bugs on their side?
    I too am having this exact issue. Did you find a solution?

  6. #65
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    37
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No not yet. I was gonna try what stonebent suggested. But I don't have a texture file with all different colors. I can probably make one with a python script. Will try it when I have the time.

    Edit: Edited an image 255x255 with this simple python script:
    for x in range(0,255):
    for y in range(0,255):
    img[x,y][2]=x
    img[x,y][0]=y
    img[x,y][1]=0
    So red is x and blue is y. I guess I should stick to 2 colors per texture then atleast we have 255x255 values. Enough for cords I think. I never worked with textures and lua addons so will see how I implement it.
    Last edited by hjalplos; 02-04-2020 at 08:16 AM.

  7. #66
    FearThree's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hjalplos View Post
    No not yet. I was gonna try what stonebent suggested. But I don't have a texture file with all different colors. I can probably make one with a python script. Will try it when I have the time.

    Edit: Edited an image 255x255 with this simple python script:
    for x in range(0,255):
    for y in range(0,255):
    img[x,y][2]=x
    img[x,y][0]=y
    img[x,y][1]=0
    So red is x and blue is y. I guess I should stick to 2 colors per texture then atleast we have 255x255 values. Enough for cords I think. I never worked with textures and lua addons so will see how I implement it.
    Sent you a PM. Seems like we're both working in python and having the same issue.

  8. #67
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    37
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im stupid WoW only works with textures with the dimensions of power of 2. Working code for creating a texture alltough PNG:
    for x in range(0,255):
    for y in range(0,255):
    img[x,y][2]=x
    img[x,y][0]=y
    img[x,y][1]=0
    matplotlib.image.imsave('my_texture.png', img)

    Then convert it to TGA with an online converter or your favorite software. Then you can use it in your addon.
    Last edited by hjalplos; 02-05-2020 at 07:17 AM.

  9. #68
    stonebent's Avatar Member
    Reputation
    9
    Join Date
    Sep 2008
    Posts
    36
    Thanks G/R
    3/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also use a 512x512 blp

  10. #69
    stonebent's Avatar Member
    Reputation
    9
    Join Date
    Sep 2008
    Posts
    36
    Thanks G/R
    3/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stonebent View Post
    You can also use a 512x512 blp
    @hjalplos you're swedish right? I figured by your name

  11. #70
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    37
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ye indeed i am

  12. #71
    FearThree's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hjalplos View Post
    No not yet. I was gonna try what stonebent suggested. But I don't have a texture file with all different colors. I can probably make one with a python script. Will try it when I have the time.

    Edit: Edited an image 255x255 with this simple python script:
    for x in range(0,255):
    for y in range(0,255):
    img[x,y][2]=x
    img[x,y][0]=y
    img[x,y][1]=0
    So red is x and blue is y. I guess I should stick to 2 colors per texture then atleast we have 255x255 values. Enough for cords I think. I never worked with textures and lua addons so will see how I implement it.
    I've looked a bit further into the issue. It's not an issue with colors not reading correctly for me. It's how the angle is calculated that is offset for some reason to the direction the char is facing.

    Here is the offsets and the code that calculates it.
    Imgur: The magic of the Internet

    The code seems alright to me. I am converting the direction from 0-255 values into values from 0 to 2.

    Do you see any issues with this?

  13. #72
    hjalplos's Avatar Member
    Reputation
    6
    Join Date
    Dec 2019
    Posts
    37
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your direction, it's your characters facing correct? You need to calculate a new "bearing" then calculate the difference and turn which ever way is the shortest.
    I split it up in 4 different cases so it's not as simple as a few lines of code. Or maybe I overworked it and made it harder than it is.
    And IDK something looks wrong in your atan2 I think you need to swap the x's or y's to be correct. I also go over from rads to degrees. But that's optional.

    I hope this will get you on the right path.

  14. #73
    FearThree's Avatar Member
    Reputation
    5
    Join Date
    Dec 2019
    Posts
    20
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hjalplos View Post
    your direction, it's your characters facing correct? You need to calculate a new "bearing" then calculate the difference and turn which ever way is the shortest.
    I split it up in 4 different cases so it's not as simple as a few lines of code. Or maybe I overworked it and made it harder than it is.
    And IDK something looks wrong in your atan2 I think you need to swap the x's or y's to be correct. I also go over from rads to degrees. But that's optional.

    I hope this will get you on the right path.
    1. The direction the char is facing is correct, but the difference between the direction suggested by def get_angle() is different. The turning seems to work fine, but the direction doesn't match.
    2. I tried swapping the x and y's but still the same issue.

    EDIT: Fixed it. Turns out I was retared and the x and y was swapped.
    Last edited by FearThree; 02-06-2020 at 09:58 AM.

  15. #74
    spik96's Avatar Active Member
    Reputation
    63
    Join Date
    Jan 2008
    Posts
    39
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Isn't this method of keyboard and mouse going to be detected by the Warden within minutes?
    You are not doing a true driver so it can detects that a program, not a human, did the actions.

  16. #75
    someorother's Avatar Member
    Reputation
    3
    Join Date
    Oct 2019
    Posts
    12
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any tips for running multiple pixel bots? VMWare just doesnt seem to run wow well enough.

Similar Threads

  1. [Question] Has anyone ever made an entire farming-bot with much much pixel-reading in AutoIt?
    By crunk001 in forum WoW Bots Questions & Requests
    Replies: 18
    Last Post: 02-05-2017, 06:34 AM
  2. Gold from botting in MOP
    By 403Forbidden in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 01-16-2013, 06:49 AM
  3. Replies: 0
    Last Post: 09-09-2012, 06:38 AM
  4. Replies: 4
    Last Post: 04-18-2010, 12:47 PM
  5. Botting in Barrens 12-20
    By karokekid in forum World of Warcraft Bots and Programs
    Replies: 20
    Last Post: 12-02-2006, 07:21 PM
All times are GMT -5. The time now is 03:02 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search