Simple Autoit Gambling Script

View previous topic View next topic Go down

Simple Autoit Gambling Script

Post by naut on Tue Feb 03, 2015 4:24 am

I am posting this here as I am unable to post in the tools section, sorry for that.

I was looking for a script/program I could use for gambling jewels from gheed to try to find some rare affixes etc to socket into my items.

I was unable to find anything that I was able to configure to work how I wanted to, therefore I wrote a very simple script to get the job done.

This script requires the autoit program to run, I did not compile it into a .exe so it can be edited to suit your needs.

There are instructions when you start the script but if you have any questions feel free to ask.

Will work for any version of D2, single or multi-player. Multi-player will most likely require increased delays.

Coordinates coded at 800x600 to allow this to be useful to the most number of people.
If you play at a higher res just drop down while you run the script(thats what I do personally).

Autoit Download - Direct Download From Autoit Website

Notepad ++ - Great Program For Editing Scripts - Direct Download From notepad++ Website

Autoit Gambling Script

What the script does:
-Cycle through right click gheed - left click gamble - right click(buy) row 3,4,5 in column 1 of gheeds for sale section (3 possible slots for jewels)
-Repeat 50 times
-Left click each slot in inventory, attempt to place item in belt slot and if the item is still on cursor, place back in inventory.
-If you have an item in belt slot, sell it.

Basically this is extremely simple logic to go through and buy everything in row 3,4,5 and sell anything that is not a jewel, as belts are often in those positions as well.

Required:
-Unequip the belt you normally use and place it in stash
-Completely empty your inventory.



Video will be much better quality if you click the gear in the youtube window and choose 1080p.

To Do:
-Establish a way to predict gheeds location to allow for stash support. Any ideas would be great!


Last edited by naut on Wed Feb 04, 2015 7:48 am; edited 10 times in total

naut
Asatruar

Posts : 18
Country : Canada

View user profile

Back to top Go down

Re: Simple Autoit Gambling Script

Post by naut on Tue Feb 03, 2015 4:25 am

For those uneasy about downloading the zip, here is the code:

Code:

#include <Misc.au3>

HotKeySet("{ESC}", "Terminate")
HotKeySet("{PAUSE}", "myfunc")

MsgBox(0, "                                                                       Instructions", "                             Minimize D2 Window and press enter to continue.                                                  The Script will open your D2 window and begin running.                           The location of the Diablo window being used must match the location being                                                           clicked by the script.                                                                  To edit this or any location, open Au3Info and go to the mouse tab.                        Drag the pointer around and you will see the coordinate values change.            Edit the coordinates in the script using notepad++ to those of your own system.                                     Default delay between commands is 25ms.                                                           This can be edited in the script by editing the sleep value.")
MouseClick("left", 306, 1065, 1)                ; Left Click D2 Window
sleep(3000)

While 1
For $b = 1 to 50                                   ; Open Gheed And Shop
MouseClick("right", 352, 243, 1)                ; Right Click Gheed's Location
sleep(100)
MouseClick("left", 333, 283, 1)                ; Left Click Gamble Button
sleep(100)
MouseClick("right", 370, 197, 1)                ; Right Click - Buy Column 1 Row 3
sleep(100)
Send("{Enter 1}")                            ; Press the Enter key 1 time
sleep(150)
MouseClick("right", 370, 226, 1)                ; Right Click - Buy Column 1 Row 4
sleep(100)
Send("{Enter 1}")                            ; Press the Enter key 1 time
sleep(150)
MouseClick("right", 370, 255, 1)                ; Right Click - Buy Column 1 Row 5
sleep(100)
Send("{Enter 1}")                            ; Press the Enter key 1 time
sleep(150)
MouseClick("left", 370, 460, 1)                ; Left Click Close Trade Button
sleep(100)
next

For $c = 1 To 1                                   ; Clear Inventory Of Anything Other Then Jewels/Rings/Ammys
MouseClick("right", 352, 243, 1)                ; Right Click Gheed's Location
sleep(25)
MouseClick("left", 333, 283, 1)                ; Left Click Gamble Button
sleep(25)                                        ; ***************************************************************************** First Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 695, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 695, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 695, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 695, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 695, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 695, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 695, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 695, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 695, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Second Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 666, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 666, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 666, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 666, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 666, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 666, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 666, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 666, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 666, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Third Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 637, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 637, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 637, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 637, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 637, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 637, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 637, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 637, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 637, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Fourth Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 608, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 608, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 608, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 608, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 608, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 608, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 608, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 608, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 608, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Fifth Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 579, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 579, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 579, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 579, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 579, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 579, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 579, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 579, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 579, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Sixth Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 550, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 550, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 550, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 550, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 550, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 550, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 550, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 550, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 550, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Seventh Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 521, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 521, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 521, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 521, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 521, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 521, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 521, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 521, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 521, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Eighth Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 492, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 492, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 492, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 492, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 492, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 492, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 492, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 492, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 492, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Nineth Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 463, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 463, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 463, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 463, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 463, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 463, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 463, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 463, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 463, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ***************************************************************************** Tenth Column
sleep(25)                                        ; ******************************* First Row
MouseClick("left", 434, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 229, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Second Row
MouseClick("left", 434, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 258, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Third Row
MouseClick("left", 434, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 288, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fourth Row
MouseClick("left", 434, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 317, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Fifth Row
MouseClick("left", 434, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 346, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Sixth Row
MouseClick("left", 434, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 375, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Seventh Row
MouseClick("left", 434, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 404, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; ******************************* Eighth Row
MouseClick("left", 434, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 434, 433, 1)               ; Left Click Item Slot
sleep(25)
MouseClick("left", 615, 137, 1)               ; Left Click Belt Slot
sleep(25)
MouseClick("left", 342, 372, 1)               ; Left Click Gheed's Sell Area
sleep(25)                                        ; *****************************************************************************
next

WEnd

Func Terminate()
    Exit
EndFunc

Func myfunc()
        MsgBox(0, "Pause", "Click OK to continue")
EndFunc

naut
Asatruar

Posts : 18
Country : Canada

View user profile

Back to top Go down

Re: Simple Autoit Gambling Script

Post by munkyh3ad on Tue Feb 03, 2015 1:05 pm

Thank you for sharing this, i know many were trying to auto gamble with D2clicker but had some problems, and your script is very simple and for just jewels it does the job, i think you should also mention the possibility of changing the "Row" to 1 or 2 for rings (1st square) and amulets (2nd square) if someone would want to gamble these instead of jewels.

On a separate note gambling for jewels is kinda expensive and a bit too random. I personally prefer either rerolling jewels (Oil of Renewal costs less) and mostly crafting jewels so that i can at least get 1 stat which i want. And since you know AutoIt maybe you could improve/fix this http://www.medianxl.com/t5397-d2-move-item-v0-74 if you find it worth while. Quirinus has also released the source code and could answer questions since he's active, but probably busy with other projects/moderating/RL to develop it further. The script works but the problem is you can't customize macros for combos, and thus it's limited to only 2 sequences, the reroll TU + Luck Trial MO and any 1 square item + Oil of Renewal reloll, but there is potential for every other recipe. So if you have time please have look over it.

munkyh3ad
Dark Lady

Posts : 439
Country : Romania

View user profile

Back to top Go down

Re: Simple Autoit Gambling Script

Post by naut on Wed Feb 04, 2015 8:11 am

@munkyh3ad wrote:Thank you for sharing this, i know many were trying to auto gamble with D2clicker but had some problems, and your script is very simple and for just jewels it does the job, i think you should also mention the possibility of changing the "Row" to 1 or 2 for rings (1st square) and amulets (2nd square) if someone would want to gamble these instead of jewels.

On a separate note gambling for jewels is kinda expensive and a bit too random. I personally prefer either rerolling jewels (Oil of Renewal costs less) and mostly crafting jewels so that i can at least get 1 stat which i want. And since you know AutoIt maybe you could improve/fix this http://www.medianxl.com/t5397-d2-move-item-v0-74 if you find it worth while. Quirinus has also released the source code and could answer questions since he's active, but probably busy with other projects/moderating/RL to develop it further. The script works but the problem is you can't customize macros for combos, and thus it's limited to only 2 sequences, the reroll TU + Luck Trial MO and any 1 square item + Oil of Renewal reloll, but there is potential for every other recipe. So if you have time please have look over it.

I will definately check it out. My main issue at the moment is I am new to the mod and my knowledge is limited for now.

naut
Asatruar

Posts : 18
Country : Canada

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum