Dota 2 Last Hit Idea

This is a discussion on Dota 2 Last Hit Idea within the DotA 2 Hacks board part of the DotA 2 category; This is the pixel 0x1D0908 0x1D0908 Creep = 20life someone can improve this macro http://www.autohotkey.com/ 1:: Macro1: Send, {a} CoordMode, ...

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    megagarra is offline Wannabe Member
    Array
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    2

    Dota 2 Last Hit Idea

    This is the pixel 0x1D0908

    0x1D0908 Creep = 20life

    someone can improve this macro

    http://www.autohotkey.com/



    1::
    Macro1:
    Send, {a}
    CoordMode, Pixel, Screen
    PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x1D0908, 0, Fast RGB
    If ErrorLevel = 0
    Click, %FoundX%, %FoundY% Left, 1
    Return

  2. #2
    ShortKidd is offline Wannabe Member
    Array
    Join Date
    Jun 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    5
    Reputation
    3
    SetBatchLines, -1 at the top. Has no delay at all. Change 1280 to %A_Width% and 1024 to %A_Height% (I might be wrong on these, haven't used AHK in a couple of years). This won't work if two creep's health bars are on top of each other. Ensage has this script build in already, as well.

    Take off Send, {a} and change Left to Right. This should all make the script optimal.

  3. The Following User Says Thank You to ShortKidd For This Useful Post:


  4. #3
    megagarra is offline Wannabe Member
    Array
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    2
    this works

    1::
    Macro1:
    Loop
    {
    Loop
    {
    CoordMode, Pixel, Screen
    PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x210A08, 0, Fast RGB
    If ErrorLevel = 0
    Click, %FoundX%, %FoundY% Right, 1
    }
    Until ErrorLevel = 0
    If ErrorLevel = 0
    {
    }
    }
    Return


    1 active

    2 desable

  5. #4
    Vampirehu's Avatar
    Vampirehu is offline Mentor
    Array
    Join Date
    Mar 2009
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    3
    there is also another setting that allows u to right click deny in dota 2 folder config.cfg there is a line with something like forceattack_creep 0 set it to 1

  6. #5
    uzzzz is offline Newbie
    Array
    Join Date
    Mar 2009
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    2
    how it works?

  7. #6
    ShortKidd is offline Wannabe Member
    Array
    Join Date
    Jun 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    5
    Reputation
    3
    Are you wanting this to work decently and actually have it be a program that other people can use? If so, I would suggest a couple of things.

    1) Have AHK read the value of your attack damage (I'm not 100% sure this is in a memory value, someone let me know please) through a set of pixels. Since attack damage will have 0-9 in the same font and always be in the same location, you can set up checks to see if these are certain shapes. Not ideal, but it'll make it automatically last hit.

    2) Check how much health creeps have throughout the game. They slowly gain more and more as the game progresses. Knowing this, you can check if they're at a certain percent, and use that to check if your damage is greater than their health. If so, attack. You need to be able to seperate the creeps somehow, though, so might I suggest finding the edge of 1-7 starting from the top left and work to the bottom right? It would be easier to code this way. Knowing the edge+screen resolution (%A_Width% and %A_Height%), you would be able to know the length and therefore know the percents. It's not very elegant, but it does work.

    3) Use GDIp, as it has built in functions that can make pixel searching SO much faster. I had it bring a 2 hour pixel search of an ~600x400 to less than 10 seconds using it. It can search your entire screen nearly instantly. You can set different sections of your screen and everything. I can help with this part if the help docs for it don't make sense.

    Let me know if any of this doesn't make sense, it's a little late and I haven't worked in making bots in awhile, currently working on other projects.

  8. #7
    gjmptw is offline Newbie
    Array
    Join Date
    Apr 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    1
    Well, I tried the concept the OP posted..
    Its totally messed up.. as there are many other spots, items, heroes with the same pixel color. My mouse was simply trying to click on my Power Threads repeatedly.

    I am still thinking about some different approach.. (not that good with AHK though)

    Edit: Tried ImageSearch too but searching for an exact image takes AHK around 1-2 seconds to search for the exact co-ordinate and the Creep is dead
    Last edited by gjmptw; 10-25-2013 at 10:27 PM.

  9. The Following User Says Thank You to gjmptw For This Useful Post:


  10. #8
    iurimattos is offline Wannabe Member
    Array
    Join Date
    Oct 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    4
    Reputation
    2
    Quote Originally Posted by uzzzz View Post
    how it works?
    Helo uzzz, To make it work follow these steps.

    1 -
    Download/Install/Execute this application.
    www . autohotkey . com /

    2 -
    Download/Execute this file.
    www64 . zippyshare . com/v/16693634/file.html

    To be able to post links or images your post count must be 1 or greater. You currently have 0 posts.
    Just wanted to help.
    :/
    tuto:
    1 active
    2 desable

    credits:
    megagarra

  11. #9
    iurimattos is offline Wannabe Member
    Array
    Join Date
    Oct 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    4
    Reputation
    2
    Quote Originally Posted by gjmptw View Post
    Well, I tried the concept the OP posted..
    Its totally messed up.. as there are many other spots, items, heroes with the same pixel color. My mouse was simply trying to click on my Power Threads repeatedly.

    I am still thinking about some different approach.. (not that good with AHK though)

    Edit: Tried ImageSearch too but searching for an exact image takes AHK around 1-2 seconds to search for the exact co-ordinate and the Creep is dead

    We need to review it. Already used a lot of AutoHotkey scripts in SA-MP and especially in RAGNAROK. Could you send me your source code file. Ahk?

  12. #10
    lukash is offline Member
    Array
    Join Date
    Jul 2009
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    4
    To make my first contribution into D3, real one. I've made very good lasthitting for wc3, except that i've put attack value maualy (during game), worked in 99%-100% for sniper in solo (low attack point). But during game - it was useless, as its like impossible to get enemy prediction coded for ranged heroes (attack point + projectile speed + distance from creep to hero + enemy creeps damage + enemy deny). It made my script useless during game. For melee heroes it worked nicely, but I had to be close to hero, and during game - made me very vulnerable... In general - hardcore pice of coding that need memory reading and shitload of variables inclouded. Read about lasthitting in dreamdota.

  13. The Following User Says Thank You to lukash For This Useful Post:


Page 1 of 2 12 LastLast

Similar Threads

  1. An Idea - is it possible?
    By Altma in forum WoW Private Servers
    Replies: 1
    Last Post: 08-22-2011, 02:48 PM
  2. Idea: Dota Game Joiner
    By wuascht2009 in forum Warcraft 3 Hacks, bots and tools
    Replies: 0
    Last Post: 03-02-2011, 08:04 PM
  3. Odd Idea for a sig, like?
    By Velocity in forum Showcase
    Replies: 7
    Last Post: 08-22-2007, 11:46 PM
  4. Dota idea
    By Range in forum D3scene related
    Replies: 3
    Last Post: 04-28-2007, 03:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •