I'm working on a new and better version.
Link to the bot:
http://www.d3scene.com/forum/warcraft-3-bots/17570-ghoul-bot-newest-thread.html
A demonstration of the old version (AutoIt) of the bot playing online. This is a One vs One on the Azeroth realm. It would always win about 47% of the time.
Music:
Lost in Hollywood - System of a Down
Wow that looks awesome. Would you mind sharing the source code with me? I'd like to learn from it :)
Freakingpanda1 1 year ago
@Freakingpanda1 It's written in AutoIT are you familiar with it?, just basically mouse/keyboard events and looking for pixels.
peonx 1 year ago
@peonx
I haven't written anything in autoit before, however I've heard about it. I primarily write in visual basic.
I'll indeed look into it. The pixelsearch is quite a nice idea actually, never thought of it :P
Freakingpanda1 1 year ago
@Freakingpanda1 AutoitIT is just a scripting language you could make a way more advance bot with a actual programming language. But yeah the AutoIT version is basically all pixelsearching and pixelgetcolor I do a precheck then do some action (mouse/keyboard event) and check the pixel again to see if the action was performed.
peonx 1 year ago
@peonx
I see. However I wonder, how can you detect values in the game? I mean for instance when the deathknight to coil the low hp ghouls or when the hero levels up and you select a skill. How can you detect these values (level and hp)?
Freakingpanda1 1 year ago
@Freakingpanda1 When the hero level's the hero skill icon changes it puts a 1, 2, 3 etc. there you can do a PixelCheckSum in that area before the level up and then just compare it occasionally to see if it leveled. And with low health units I did a pixel search at the health bars and looked for a orange color.
However if you are coding in VB you should be able to read the memory. I found a ton of pointers in the game, like reading the level of all your heroes.
peonx 1 year ago