Skip to content

Commit

Permalink
added ClearInventory logic
Browse files Browse the repository at this point in the history
  • Loading branch information
DaLeberkasPepi authored and DaLeberkasPepi committed Jan 6, 2018
1 parent 7458215 commit f3aaf26
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ $RECYCLE.BIN/
Network Trash Folder
Temporary Items
.apdisk
Hotkeys.ini
Hotkeys.ini
46 changes: 23 additions & 23 deletions CubeConverter.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,19 @@ global D3ScreenResolution
,NativeDiabloHeight := 1440
,NativeDiabloWidth := 3440
,#ctrls = 3
,Globalsleep

IniRead, Globalsleep, Hotkeys.ini, Settings, Globalsleep, 50
IfNotExist, Hotkeys.ini
FileAppend,
(
[Settings]
Globalsleep=50
[Hotkeys]
1=^5
2=^6
3=^7
), Hotkeys.ini

IniRead, Globalsleep, Hotkeys.ini, Settings, Globalsleep, 50
Loop,% #ctrls
{
If (A_Index == 1)
Expand All @@ -43,22 +52,21 @@ Loop,% #ctrls
GUI, Add, Text, xm, [ms] for Globalsleep:
GUI, Add, Edit, x+5 w35 vGlobalsleep, %Globalsleep%
GUI, Submit
IniWrite, %Globalsleep%, Hotkeys.ini, Settings, Globalsleep
Return

F1::
GUI, Show,,CubeConverter Hotkeys
Return

GuiEscape:
GuiClose:
ButtonCancel:
GUIControlGet, Globalsleep
IniWrite, %Globalsleep%, Hotkeys.ini, Settings, Globalsleep
GUI Destroy
GUI, Hide
Return

ESC::
Reload
ESC::Reload
Return

Label1: ;Hotkey for 1 Slot Items
IfWinNotActive, CubeConverter Hotkeys
Expand Down Expand Up @@ -123,20 +131,10 @@ KanaisCube(Setting)
SwitchPagesLeft := [Fill[1]-SwitchPages[1], Fill[2]]
SwitchPagesRight := [Fill[1]+SwitchPages[1], Fill[2]]
}

;If (ColumnCount == 9) && (RowCount >= 6)
;{
ColumnCount := 0
RowCount := 0
Cycles := 0
;}
;
;If (ColumnCount >= 10) && (RowCount == 4)
;{
; ColumnCount := 0
; RowCount := 0
; Cycles := 0
;}

ColumnCount := 0
RowCount := 0
Cycles := 0

If (Setting == "Blacksmith")
MouseClick, left, Salvage[1], Salvage[2]
Expand All @@ -152,7 +150,8 @@ KanaisCube(Setting)

If (Setting == "Blacksmith")
{
Sleep % Globalsleep
global AdjustedSleep := Max(Globalsleep - 35, 3)
Sleep % AdjustedSleep
MouseClick, left, XClick, YClick
}

Expand Down Expand Up @@ -190,7 +189,8 @@ KanaisCube(Setting)

If (Setting == "Blacksmith")
{
Sleep % Globalsleep

Sleep % AdjustedSleep
Send, {Enter}
}
} Until Cycles>=Columns*Rows/ItemSize
Expand Down
Binary file removed CubeConverter.exe
Binary file not shown.

0 comments on commit f3aaf26

Please sign in to comment.