Forum
 
Go Back   D3scene > Hot Games > Warcraft 3 forum > Warcraft 3 Bots

Gaypimp's gold mine bot

This is a discussion on Gaypimp's gold mine bot within the Warcraft 3 Bots forum part of the Warcraft 3 forum category; I made this for both fun and learning. I was trying to find a way to select gold mine on ...

Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 35000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-21-2008, 12:08 AM
TyranO's Avatar
Custom User Title
 
Join Date: Aug 2008
Location: Azeroth
Posts: 197
Reputation: 484
Rep Power: 3
TyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of light
Gaypimp's gold mine bot

I made this for both fun and learning. I was trying to find a way to select gold mine on any resolution or gfx settings and any race without using PictureSearch or coords for every map and race which would have taken forever to make.

This technique of texture replacement could lead to bigger things such as playing bots.

Download: pinkmine.zip - FileFront.com

When you press a pre-chosen hotkey, it selects your workers and sends them to mine. It works with all races, all resolutions (hopefully), all graphic settings(tested on high).

For Night elf, it selects the 5 wisps and sends them to mine, then selects main base, sets rally point on mine and creates 2 wisps.

As for orc, human and undead, it selects workers and sends them to mine.

Pros:

- Works with all races, all resolutions, all graphic settings.
- Open source.

Cons:

- You have to press a hotkey when game begins.

This could be fixed with a script that would do this:

1. Picturesearch for initial number of gold in a picture [500]
2. If picturefound, then start goldmine script
3. Sleep(5000) to let time for gold to change to something higher than 500

- Your mine will have pink spots so that the bot can perform a pixelsearch.
- The file is huge because you have to replace War3xlocal.mpq.
- Autogoldmining ain't very useful.

Installation and use:

- Place war3xlocal.mpq in your warcraft III directory.
- Place gold.ini in the same place as your .au3 or .exe
- Start GPmineNE.exe for night elf or GPmine.exe for any race
- In-game, press your hotkey (changeable in gold.ini, default F5) You can press it multiple times when game starts.
- If you receive an error message, it means the script couldn't find the pink pixel.

I hope I compressed the right files. If it doesn't work for you you can always edit the scripts . Can't guarantee it will work 100% of the time.

Source:

GPmine.au3

Quote:
$var = IniRead("gold.ini", "Settings", "minekey", "NotFound")

HotKeySet($var, "mine")

While 1=1
WEnd
Func mine()
MouseMove (150,150,1)
MouseDown("left")
MouseMove (1500,795,1)
sleep(10)
MouseUp("left")
$Color = 0xF405C1
$ColorCoord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight,$Color, 30)
MouseMove($ColorCoord[0], $ColorCoord[1], 0)
MouseClick("right")
MouseClick("right")
MouseClick("right")
EndFunc
GPmineNE.au3

Quote:
$var = IniRead("gold.ini", "Settings", "minekey", "NotFound")
$var2 = IniRead("gold.ini", "Settings", "wispkey", "NotFound")

HotKeySet($var, "mine")

While 1=1
WEnd
Func mine()
MouseMove (150,150,1)
MouseDown("left")
MouseMove (1500,795,1)
Sleep(10)
MouseUp("left")
$Color = 0xF405C1
$ColorCoord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight,$Color, 30)
MouseMove($ColorCoord[0], $ColorCoord[1], 0)
MouseClick("right")
MouseClick("right")
MouseClick("right")
Sleep(1000)
MouseMove (150,150,2)
MouseDown("left")
MouseMove (1500,795,1)
Sleep(10)
MouseUp("left")
MouseMove($ColorCoord[0], $ColorCoord[1], 0)
Sleep(50)
Send($var2)
Sleep(50)
Send($var2)
Sleep(50)
MouseClick("right")
MouseClick("right")
MouseClick("right")
EndFunc
gold.ini

Quote:
[Settings]
minekey = "{F5}"
wispkey = "{W}"
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
  #2  
Old 09-21-2008, 09:12 AM
X-FreeLoOsE-X's Avatar
Holycrap!
 
Join Date: Feb 2007
Location: France
Posts: 1,274
Reputation: 175
Rep Power: 2
X-FreeLoOsE-X has a spectacular aura aboutX-FreeLoOsE-X has a spectacular aura about
Didn't test it yet, but it looks great.
Reply With Quote
  #3  
Old 09-21-2008, 12:23 PM
X-räi's Avatar
Master Hacker
 
Join Date: Apr 2008
Location: Germany (village 20 mins away from Münster)
Posts: 549
Reputation: 152
Rep Power: 1
X-räi has a spectacular aura aboutX-räi has a spectacular aura about
Send a message via ICQ to X-räi
well, it doesnt stack with your fel orc mod =(
but llgw, maybe i will give it a try soon.
Reply With Quote
  #4  
Old 09-22-2008, 04:34 AM
TyranO's Avatar
Custom User Title
 
Join Date: Aug 2008
Location: Azeroth
Posts: 197
Reputation: 484
Rep Power: 3
TyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of light
Quote:
Originally Posted by X-räi View Post
well, it doesnt stack with your fel orc mod =(
but llgw, maybe i will give it a try soon.
You can place the goldmine texture file in your war3xlocal.mpq with the guide I posted (should be approved soon) in the hack section .
Attached Files
File Type: zip goldmine.zip (92.8 KB, 13 views)
Reply With Quote
  #5  
Old 09-22-2008, 06:20 PM
PinkHair's Avatar
Advanced Hacker
 
Join Date: Mar 2008
Posts: 295
Reputation: 41
Rep Power: 1
PinkHair is on a distinguished road
Send a message via ICQ to PinkHair Send a message via MSN to PinkHair
what is wispkey ? oO make wisp ?
Reply With Quote
  #6  
Old 09-22-2008, 10:41 PM
TyranO's Avatar
Custom User Title
 
Join Date: Aug 2008
Location: Azeroth
Posts: 197
Reputation: 484
Rep Power: 3
TyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of light
Quote:
Originally Posted by PinkHair View Post
what is wispkey ? oO make wisp ?
Yes, in case you use custom keys.
Reply With Quote
  #7  
Old 09-23-2008, 12:02 PM
PinkHair's Avatar
Advanced Hacker
 
Join Date: Mar 2008
Posts: 295
Reputation: 41
Rep Power: 1
PinkHair is on a distinguished road
Send a message via ICQ to PinkHair Send a message via MSN to PinkHair
Damn ... Map - TR up-right Resp Missing target 1280x1024

btw... Will be pretty to make it automatic (without F5)
Reply With Quote
  #8  
Old 09-24-2008, 11:09 AM
hendricius's Avatar
Administrator

 
Join Date: Feb 2007
Location: Hamburg, Germany
Posts: 5,125
Blog Entries: 16
Reputation: 1148
Rep Power: 9
hendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud of
Very nice bot. AutoIt is very powerful.

Warcraft 3 model changing is the link to the model changing thread :-).
Reply With Quote
  #9  
Old 09-24-2008, 04:54 PM
Newbie
 
Join Date: Jun 2008
Posts: 4
Reputation: 0
Rep Power: 1
Legacy is an unknown quantity at this point
nice bot i like it =)
Reply With Quote
  #10  
Old 09-24-2008, 05:33 PM
TyranO's Avatar
Custom User Title
 
Join Date: Aug 2008
Location: Azeroth
Posts: 197
Reputation: 484
Rep Power: 3
TyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of light
I am making a bot that will autopick items. In fact it's already done it just needs some little modifications.
Reply With Quote
  #11  
Old 09-26-2008, 12:51 AM
Qazzy's Avatar
Addict
 
Join Date: Aug 2007
Location: Purdue University!
Posts: 67
Reputation: 17
Rep Power: 2
Qazzy is on a distinguished road
Send a message via AIM to Qazzy Send a message via MSN to Qazzy Send a message via Yahoo to Qazzy
Quote:
Originally Posted by gaypimp View Post
I made this for both fun and learning. I was trying to find a way to select gold mine on any resolution or gfx settings and any race without using PictureSearch or coords for every map and race which would have taken forever to make.

This technique of texture replacement could lead to bigger things such as playing bots.
So you editted the mpg to import your own image of the gold mine? I'll have to check this out, I agree PixelSearching is very inefficient. If there was a way to make it where the same color was on everyone's PC it would be soo much better. I could also make my solo bot more stable. I'll have to check this out later when I get some time.
Reply With Quote
  #12  
Old 09-26-2008, 05:11 AM
Visionary's Avatar
Hacker
 
Join Date: Jul 2008
Location: British Columbia, Canada
Posts: 213
Reputation: 146
Rep Power: 1
Visionary will become famous soon enoughVisionary will become famous soon enough
Send a message via ICQ to Visionary Send a message via AIM to Visionary Send a message via MSN to Visionary Send a message via Yahoo to Visionary
Nice bot.

You should make a multihack out of all your tools =)
Reply With Quote
  #13  
Old 10-23-2008, 03:37 AM
TyranO's Avatar
Custom User Title
 
Join Date: Aug 2008
Location: Azeroth
Posts: 197
Reputation: 484
Rep Power: 3
TyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of light
I've been thinking a bit and I think and maybe with gamestate checking, I could make it so it starts automatically at the beginning of every game. If I do this I'll include it in my ultimate tool.
Reply With Quote
  #14  
Old 10-23-2008, 06:54 AM
t0pcraft-'s Avatar
Hacker
 
Join Date: Jan 2008
Location: Under Your Bed
Posts: 177
Reputation: 38
Rep Power: 1
t0pcraft- is on a distinguished road
this is really cool

when I once tried to do such a bot I failed due to not knowing that there is this PIXELSEARCH thing =)
I aborted making it cuz of too much work
Reply With Quote
  #15  
Old 10-24-2008, 06:59 AM
TyranO's Avatar
Custom User Title
 
Join Date: Aug 2008
Location: Azeroth
Posts: 197
Reputation: 484
Rep Power: 3
TyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of lightTyranO is a glorious beacon of light
Quote:
Originally Posted by t0pcraft- View Post
this is really cool

when I once tried to do such a bot I failed due to not knowing that there is this PIXELSEARCH thing =)
I aborted making it cuz of too much work
It's not all about pixel search, you need to change the texture to some unique color as the pixels change constantly in a 3D game (using the technique I posted in the hacks forum if you're really interested).
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Reply

Tags
auto, bot, gaypimp, gold, gold mine bot, goldmining, wacraft iii, warcraft 3, wc3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ghoul Bot Free KaMiKaZe Warcraft 3 Bots 199 08-07-2008 07:42 AM
Undead Strategies 4skiLLiFighT Warcraft 3 Strategies 1 07-10-2008 09:10 AM
My orc FAQ 4skiLLiFighT Warcraft 3 Strategies 14 07-06-2008 08:45 PM
IRC Bot & Tut for it Diesel IRC 0 06-26-2008 03:50 AM
Antfamous Gauntlet Bot v1.8 for mmBot tschoerk Diablo 2 Bots 3 11-21-2007 05:55 PM


All times are GMT +1. The time now is 03:04 AM.


vBulletin style developed by Transverse Styles
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

»About D3scene »Navigation