Skip to content

Commit

Permalink
replace DropItem with Reforge
Browse files Browse the repository at this point in the history
Since the DropItem mechanic isnt really needed anymore replace it with Item Reforge
  • Loading branch information
DaLeberkasPepi authored Feb 20, 2020
1 parent 26361a7 commit caa2bc6
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions CubeConverter.ahk
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
;========================================================================
;========================================================================
;
; CubeConverter v1.4.0
; CubeConverter v1.5.0
;
; provides multiple usefull functions regarding cube item conversion
;
; Created by DaLeberkasPepi
; https://github.com/DaLeberkasPepi
;
; Last Update: 2019-05-29 13:00 GMT+2
; Last Update: 2020-02-20 18:00 GMT+2
;
;========================================================================

Expand Down Expand Up @@ -54,7 +54,7 @@ Loop,% #ctrls
GUI, Add, Text, xm, Hotkey for Inventoryclear:

If (A_Index == 4)
GUI, Add, Text, xm, Hotkey for DropItems:
GUI, Add, Text, xm, Hotkey for Reforge:

IniRead, savedHK%A_Index%, Hotkeys.ini, Hotkeys, %A_Index%, %A_Space% ;Check for saved hotkeys in INI file.

Expand Down Expand Up @@ -116,12 +116,12 @@ Label3: ;Hotkey for Inventoryclear
}
Return

Label4: ;Hotkey for DropItems
Label4: ;Hotkey for Reforge
IfWinNotActive, CubeConverter Hotkeys
{
If (ItemSize == "")
global ItemSize := 1
KanaisCube("DropItems")
KanaisCube("Reforge")
}
Return

Expand Down Expand Up @@ -171,14 +171,22 @@ KanaisCube(Setting)
If (Setting == "Blacksmith")
MouseClick, left, Salvage[1], Salvage[2]

If (Setting == "DropItems")
If (Setting == "Reforge")
{
XDrop := TopLeftInv[1]-SlotX
YDrop := TopLeftInv[2]
send {i}
MouseGetPos x, y
MouseClick, right, TopLeftInv[1], TopLeftInv[2]
Sleep % Globalsleep
MouseClick, left, Fill[1], Fill[2]
Sleep % Globalsleep
MouseClick, left, Transmute[1], Transmute[2]
Sleep % Globalsleep + 125
MouseClick, left, SwitchPagesRight[1], SwitchPagesRight[2]
Sleep % Globalsleep
MouseClick, left, SwitchPagesLeft[1], SwitchPagesLeft[2]
Sleep % Globalsleep
MouseMove, TopLeftInv[1], TopLeftInv[2]
}


If (Setting != "Reforge"){
Loop
{
++Cycles
Expand All @@ -195,14 +203,6 @@ KanaisCube(Setting)
MouseClick, left, XClick, YClick
}

If (Setting == "DropItems") && (ColumnCount != 0)
{
MouseMove %XClick%, %YClick%
send {Lbutton down}
MouseMove %XDrop%, %YDrop%
send {Lbutton up}
}

If (ItemSize == 2)
{
ColumnCount++
Expand Down Expand Up @@ -241,11 +241,6 @@ KanaisCube(Setting)
Send, {Enter}
}
} Until Cycles>=Columns*Rows/ItemSize

If (Setting == "DropItems")
{
MouseMove %x%, %y%
send {i}
}
}

Expand Down Expand Up @@ -376,4 +371,4 @@ HotkeyCtrlHasFocus()
GuiControlGet, ctrl, FocusV ;Associated variable
Return, ctrl
}
}
}

0 comments on commit caa2bc6

Please sign in to comment.