Untitled diff

Created Diff never expires
0 removals
Words removed0
Total words3051
Words removed (%)0.00
591 lines
0 additions
Words added0
Total words3051
Words added (%)0.00
591 lines
;██████╗ ██╗ ██╗ ██████╗ ██╗ ██╗██████╗ ██╗ ██╗██████╗
;██████╗ ██╗ ██╗ ██████╗ ██╗ ██╗██████╗ ██╗ ██╗██████╗
;██╔══██╗╚██╗ ██╔╝ ██╔════╝ ██║ ██║██╔══██╗██║ ██║██╔══██╗
;██╔══██╗╚██╗ ██╔╝ ██╔════╝ ██║ ██║██╔══██╗██║ ██║██╔══██╗
;██████╔╝ ╚████╔╝ ██║ ███╗██║ ██║██████╔╝██║ ██║██║ ██║
;██████╔╝ ╚████╔╝ ██║ ███╗██║ ██║██████╔╝██║ ██║██║ ██║
;██╔══██╗ ╚██╔╝ ██║ ██║██║ ██║██╔══██╗██║ ██║██║ ██║
;██╔══██╗ ╚██╔╝ ██║ ██║██║ ██║██╔══██╗██║ ██║██║ ██║
;██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ██║╚██████╔╝██████╔╝
;██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ██║╚██████╔╝██████╔╝
;╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝
;╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝
;-------GUI-----------------GUI-----------------GUI-----------------GUI-----------------GUI----------
;-------GUI-----------------GUI-----------------GUI-----------------GUI-----------------GUI----------


#SingleInstance force
#SingleInstance force


IniRead, LastTab, Config.ini, Config, LastTab, Settings
IniRead, LastTab, Config.ini, Config, LastTab, Settings


If LastTab = AutoFlask
If LastTab = AutoFlask
{
{
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask||AutoQuit|Others|Settings|
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask||AutoQuit|Others|Settings|
}
}
Else If LastTab = AutoQuit
Else If LastTab = AutoQuit
{
{
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask|AutoQuit||Others|Settings|
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask|AutoQuit||Others|Settings|
}
}
Else If LastTab = Others
Else If LastTab = Others
{
{
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask|AutoQuit|Others||Settings|
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask|AutoQuit|Others||Settings|
}
}
Else If LastTab = Settings
Else If LastTab = Settings
{
{
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask|AutoQuit|Others|Settings||
Gui,Add,Tab2, x0 y0 w474 h595 gTabFunc vTabChoice,AutoFlask|AutoQuit|Others|Settings||
}
}


Gui, Tab, Settings
Gui, Tab, Settings


Gui, Add, GroupBox, x12 y110 w220 h60, AutoFlask/AutoQuit Profile
Gui, Add, GroupBox, x12 y110 w220 h60, AutoFlask/AutoQuit Profile


IniRead, ConfigNumber , Config.ini, Config, ConfigNumber, 1
IniRead, ConfigNumber , Config.ini, Config, ConfigNumber, 1


If ConfigNumber = 1
If ConfigNumber = 1
{
{
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1||Profile 2|Profile 3|Profile 4|Profile 5
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1||Profile 2|Profile 3|Profile 4|Profile 5
}
}
Else If ConfigNumber = 2
Else If ConfigNumber = 2
{
{
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2||Profile 3|Profile 4|Profile 5
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2||Profile 3|Profile 4|Profile 5
}
}
Else If ConfigNumber = 3
Else If ConfigNumber = 3
{
{
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2|Profile 3||Profile 4|Profile 5
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2|Profile 3||Profile 4|Profile 5
}
}
Else If ConfigNumber = 4
Else If ConfigNumber = 4
{
{
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2|Profile 3|Profile 4||Profile 5
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2|Profile 3|Profile 4||Profile 5
}
}
Else If ConfigNumber = 5
Else If ConfigNumber = 5
{
{
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2|Profile 3|Profile 4|Profile 5||
Gui, Add, DropDownList, x22 y130 w200 h21 AltSubmit gConfigList vConfigChoice R5 , Profile 1|Profile 2|Profile 3|Profile 4|Profile 5||
}
}


Loop, 5
Loop, 5
{
{
If ConfigNumber = %A_Index%
If ConfigNumber = %A_Index%
{
{
IniRead, minLifePercentToQuit , Config.ini, Config%A_Index%, minLifePercentToQuit, 35
IniRead, minLifePercentToQuit , Config.ini, Config%A_Index%, minLifePercentToQuit, 35
IniRead, minESPercentToQuit , Config.ini, Config%A_Index%, minESPercentToQuit, 0
IniRead, minESPercentToQuit , Config.ini, Config%A_Index%, minESPercentToQuit, 0
IniRead, maxLifePercentPerHitToQuit , Config.ini, Config%A_Index%, maxLifePercentPerHitToQuit, 50
IniRead, maxLifePercentPerHitToQuit , Config.ini, Config%A_Index%, maxLifePercentPerHitToQuit, 50
IniRead, maxESPercentPerHitToQuit , Config.ini, Config%A_Index%, maxESPercentPerHitToQuit, 0
IniRead, maxESPercentPerHitToQuit , Config.ini, Config%A_Index%, maxESPercentPerHitToQuit, 0
IniRead, minLifePercentToJade , Config.ini, Config%A_Index%, minLifePercentToJade, 70
IniRead, minLifePercentToJade , Config.ini, Config%A_Index%, minLifePercentToJade, 70
IniRead, minLifePercentToJade , Config.ini, Config%A_Index%, minLifePercentToJade, 70
IniRead, minLifePercentToJade , Config.ini, Config%A_Index%, minLifePercentToJade, 70
IniRead, minESPercentToJade , Config.ini, Config%A_Index%, minESPercentToJade, 0
IniRead, minESPercentToJade , Config.ini, Config%A_Index%, minESPercentToJade, 0
IniRead, minLifePercentToElementalResist , Config.ini, Config%A_Index%, minLifePercentToElementalResist, 70
IniRead, minLifePercentToElementalResist , Config.ini, Config%A_Index%, minLifePercentToElementalResist, 70
IniRead, minESPercentToElementalResist , Config.ini, Config%A_Index%, minESPercentToElementalResist, 0
IniRead, minESPercentToElementalResist , Config.ini, Config%A_Index%, minESPercentToElementalResist, 0
IniRead, minLifePercentToDrink , Config.ini, Config%A_Index%, minLifePercentToDrink, 55
IniRead, minLifePercentToDrink , Config.ini, Config%A_Index%, minLifePercentToDrink, 55
IniRead, minManaPercentToDrink , Config.ini, Config%A_Index%, minManaPercentToDrink, 25
IniRead, minManaPercentToDrink , Config.ini, Config%A_Index%, minManaPercentToDrink, 25
IniRead, minManaToDrinkPot , Config.ini, Config%A_Index%, minManaToDrinkPot, 15
IniRead, minManaToDrinkPot , Config.ini, Config%A_Index%, minManaToDrinkPot, 15
IniRead, minLifePercentToSpam, Config.ini, Config%A_Index%, minLifePercentToSpam, 35
IniRead, minLifePercentToSpam, Config.ini, Config%A_Index%, minLifePercentToSpam, 35
IniRead, ResyncSpam, Config.ini, Config%A_Index%, ResyncSpam, 0
IniRead, ResyncSpam, Config.ini, Config%A_Index%, ResyncSpam, 0
IniRead, RemainingSpam, Config.ini, Config%A_Index%, RemainingSpam, 0
IniRead, RemainingSpam, Config.ini, Config%A_Index%, RemainingSpam, 0
IniRead, InstantFlaskDelay, Config.ini, Config%A_Index%, InstantFlaskDelay, 0
IniRead, InstantFlaskDelay, Config.ini, Config%A_Index%, InstantFlaskDelay, 0
IniRead, QuickSilverMovementTimer , Config.ini, Config%A_Index%, QuickSilverMovementTimer, 15
IniRead, QuickSilverMovementTimer , Config.ini, Config%A_Index%, QuickSilverMovementTimer, 15
IniRead, RemoveAilmentsTimer , Config.ini, Config%A_Index%, RemoveAilmentsTimer, 10
IniRead, RemoveAilmentsTimer , Config.ini, Config%A_Index%, RemoveAilmentsTimer, 10
IniRead, RemoveCorruptedBloodCharges , Config.ini, Config%A_Index%, RemoveCorruptedBloodCharges, 10
IniRead, RemoveCorruptedBloodCharges , Config.ini, Config%A_Index%, RemoveCorruptedBloodCharges, 10
}
}
}
}


IniRead, QuickSilverCheck , Config.ini, Config, QuickSilverCheck, 0
IniRead, QuickSilverCheck , Config.ini, Config, QuickSilverCheck, 0


IniRead, QuickSilverCheck2 , Config.ini, Config, QuickSilverCheck2, 0
IniRead, QuickSilverCheck2 , Config.ini, Config, QuickSilverCheck2, 0


IniRead, FlaskOnFrozenCheck , Config.ini, Config, FlaskOnFrozenCheck, 0
IniRead, FlaskOnFrozenCheck , Config.ini, Config, FlaskOnFrozenCheck, 0


IniRead, FlaskOnShockedCheck , Config.ini, Config, FlaskOnShockedCheck, 0
IniRead, FlaskOnShockedCheck , Config.ini, Config, FlaskOnShockedCheck, 0


IniRead, FlaskOnIgnitedCheck , Config.ini, Config, FlaskOnIgnitedCheck, 0
IniRead, FlaskOnIgnitedCheck , Config.ini, Config, FlaskOnIgnitedCheck, 0


IniRead, AttackInPlaceCheck , Config.ini, Config, AttackInPlaceCheck, 0
IniRead, AttackInPlaceCheck , Config.ini, Config, AttackInPlaceCheck, 0


IniRead, HoldCtrlCheck , Config.ini, Config, HoldCtrlCheck, 0
IniRead, HoldCtrlCheck , Config.ini, Config, HoldCtrlCheck, 0


IniRead, FlaskOnCurseCheck , Config.ini, Config, FlaskOnCurseCheck, 0
IniRead, FlaskOnCurseCheck , Config.ini, Config, FlaskOnCurseCheck, 0


IniRead, FlaskOnCorruptedBloodCheck , Config.ini, Config, FlaskOnCorruptedBloodCheck, 0
IniRead, FlaskOnCorruptedBloodCheck , Config.ini, Config, FlaskOnCorruptedBloodCheck, 0


Gui, Tab, AutoFlask
Gui, Tab, AutoFlask


Gui, Add, GroupBox, x12 y250 w220 h60 , Min Life `% to Use Jade/Granite Flask
Gui, Add, GroupBox, x12 y250 w220 h60 , Min Life `% to Use Jade/Granite Flask
Gui, Add, Slider, x22 y270 w170 h30 gGuiUpdate vminLifePercentToJade +ToolTip TickInterval25, %minLifePercentToJade%
Gui, Add, Slider, x22 y270 w170 h30 gGuiUpdate vminLifePercentToJade +ToolTip TickInterval25, %minLifePercentToJade%
Gui, Add, Text, x192 y270 w20 h30 vminLifePercentToJadeUpdate , %minLifePercentToJade%
Gui, Add, Text, x192 y270 w20 h30 vminLifePercentToJadeUpdate , %minLifePercentToJade%
Gui, Add, Text, x212 y270 w10 h30 vminLifePercentToJadeUpdatePercent, `%
Gui, Add, Text, x212 y270 w10 h30 vminLifePercentToJadeUpdatePercent, `%


Gui, Add, GroupBox, x242 y250 w220 h60 , Min E.Shield `% to Use Jade/Granite Flask
Gui, Add, GroupBox, x242 y250 w220 h60 , Min E.Shield `% to Use Jade/Granite Flask
Gui, Add, Slider, x252 y270 w170 h30 gGuiUpdate vminESPercentToJade +ToolTip TickInterval25, %minESPercentToJade%
Gui, Add, Slider, x252 y270 w170 h30 gGuiUpdate vminESPercentToJade +ToolTip TickInterval25, %minESPercentToJade%
Gui, Add, Text, x422 y270 w20 h30 vminESPercentToJadeUpdate, %minESPercentToJade%
Gui, Add, Text, x422 y270 w20 h30 vminESPercentToJadeUpdate, %minESPercentToJade%
Gui, Add, Text, x442 y270 w10 h30 vminESPercentToJadeUpdatePercent, `%
Gui, Add, Text, x442 y270 w10 h30 vminESPercentToJadeUpdatePercent, `%


Gui, Add, GroupBox, x12 y320 w220 h60 , Min Life `% to Use Elemental Resist Flask
Gui, Add, GroupBox, x12 y320 w220 h60 , Min Life `% to Use Elemental Resist Flask
Gui, Add, Slider, x22 y340 w170 h30 gGuiUpdate vminLifePercentToElementalResist +ToolTip TickInterval25, %minLifePercentToElementalResist%
Gui, Add, Slider, x22 y340 w170 h30 gGuiUpdate vminLifePercentToElementalResist +ToolTip TickInterval25, %minLifePercentToElementalResist%
Gui, Add, Text, x192 y340 w20 h30 vminLifePercentToElementalResistUpdate, %minLifePercentToElementalResist%
Gui, Add, Text, x192 y340 w20 h30 vminLifePercentToElementalResistUpdate, %minLifePercentToElementalResist%
Gui, Add, Text, x212 y340 w10 h30 vminLifePercentToElementalResistUpdatePercent, `%
Gui, Add, Text, x212 y340 w10 h30 vminLifePercentToElementalResistUpdatePercent, `%


Gui, Add, GroupBox, x242 y320 w220 h60 , Min E.Shield `% to Use Element. Resist Flask
Gui, Add, GroupBox, x242 y320 w220 h60 , Min E.Shield `% to Use Element. Resist Flask
Gui, Add, Slider, x252 y340 w170 h30 gGuiUpdate vminESPercentToElementalResist +ToolTip TickInterval25, %minESPercentToElementalResist%
Gui, Add, Slider, x252 y340 w170 h30 gGuiUpdate vminESPercentToElementalResist +ToolTip TickInterval25, %minESPercentToElementalResist%
Gui, Add, Text, x422 y340 w20 h30 vminESPercentToElementalResistUpdate, %minESPercentToElementalResist%
Gui, Add, Text, x422 y340 w20 h30 vminESPercentToElementalResistUpdate, %minESPercentToElementalResist%
Gui, Add, Text, x442 y340 w10 h30 vminESPercentToElementalResistUpdatePercent, `%
Gui, Add, Text, x442 y340 w10 h30 vminESPercentToElementalResistUpdatePercent, `%


Gui, Add, GroupBox, x12 y40 w220 h60 , Min Life `% to Drink Health Potion
Gui, Add, GroupBox, x12 y40 w220 h60 , Min Life `% to Drink Health Potion
Gui, Add, Slider, x22 y60 w170 h30 gGuiUpdate vminLifePercentToDrink +ToolTip TickInterval25, %minLifePercentToDrink%
Gui, Add, Slider, x22 y60 w170 h30 gGuiUpdate vminLifePercentToDrink +ToolTip TickInterval25, %minLifePercentToDrink%
Gui, Add, Text, x192 y60 w20 h30 vminLifePercentToDrinkUpdate, %minLifePercentToDrink%
Gui, Add, Text, x192 y60 w20 h30 vminLifePercentToDrinkUpdate, %minLifePercentToDrink%
Gui, Add, Text, x212 y60 w10 h30 vminLifePercentToDrinkUpdatePercent, `%
Gui, Add, Text, x212 y60 w10 h30 vminLifePercentToDrinkUpdatePercent, `%


Gui, Add, GroupBox, x242 y40 w220 h60 , Min Mana `% to Drink Mana Potion
Gui, Add, GroupBox, x242 y40 w220 h60 , Min Mana `% to Drink Mana Potion
Gui, Add, Slider, x252 y60 w170 h30 gGuiUpdate vminManaPercentToDrink +ToolTip TickInterval25, %minManaPercentToDrink%
Gui, Add, Slider, x252 y60 w170 h30 gGuiUpdate vminManaPercentToDrink +ToolTip TickInterval25, %minManaPercentToDrink%
Gui, Add, Text, x422 y60 w20 h30 vminManaPercentToDrinkUpdate, %minManaPercentToDrink%
Gui, Add, Text, x422 y60 w20 h30 vminManaPercentToDrinkUpdate, %minManaPercentToDrink%
Gui, Add, Text, x442 y60 w10 h30 vminManaPercentToDrinkUpdatePercent, `%
Gui, Add, Text, x442 y60 w10 h30 vminManaPercentToDrinkUpdatePercent, `%


Gui, Add, GroupBox, x12 y180 w220 h60 , Min Life `% to Spam Instant Flasks
Gui, Add, GroupBox, x12 y180 w220 h60 , Min Life `% to Spam Instant Flasks
Gui, Add, Slider, x22 y200 w170 h30 gGuiUpdate vminLifePercentToSpam +ToolTip TickInterval25, %minLifePercentToSpam%
Gui, Add, Slider, x22 y200 w170 h30 gGuiUpdate vminLifePercentToSpam +ToolTip TickInterval25, %minLifePercentToSpam%
Gui, Add, Text, x192 y200 w20 h30 vminLifePercentToSpamUpdate, %minLifePercentToSpam%
Gui, Add, Text, x192 y200 w20 h30 vminLifePercentToSpamUpdate, %minLifePercentToSpam%
Gui, Add, Text, x212 y200 w10 h30 vminLifePercentToSpamUpdatePercent, `%
Gui, Add, Text, x212 y200 w10 h30 vminLifePercentToSpamUpdatePercent, `%


Gui, Add, GroupBox, x242 y110 w220 h60 , Min Mana to Drink Mana Potion
Gui, Add, GroupBox, x242 y110 w220 h60 , Min Mana to Drink Mana Potion
Gui, Add, Slider, x252 y130 w170 h30 Range0-300 gGuiUpdate vminManaToDrinkPot +ToolTip TickInterval50, %minManaToDrinkPot%
Gui, Add, Slider, x252 y130 w170 h30 Range0-300 gGuiUpdate vminManaToDrinkPot +ToolTip TickInterval50, %minManaToDrinkPot%
Gui, Add, Text, x422 y130 w30 h30 vminManaToDrinkPotUpdate, %minManaToDrinkPot%
Gui, Add, Text, x422 y130 w30 h30 vminManaToDrinkPotUpdate, %minManaToDrinkPot%


Gui, Add, GroupBox, x242 y180 w220 h60 , Instant Flask Spam Delay ;x12 y149 w220 h60
Gui, Add, GroupBox, x242 y180 w220 h60 , Instant Flask Spam Delay ;x12 y149 w220 h60
IniRead, InstantFlaskDelay , Config.ini, Config, InstantFlaskDelay, 0
IniRead, InstantFlaskDelay , Config.ini, Config, InstantFlaskDelay, 0
Gui, Add, Slider, x252 y200 w170 h30 Range0-50 gGuiUpdate vInstantFlaskDelay +ToolTip TickInterval50, %InstantFlaskDelay%
Gui, Add, Slider, x252 y200 w170 h30 Range0-50 gGuiUpdate vInstantFlaskDelay +ToolTip TickInterval50, %InstantFlaskDelay%
Gui, Add, Text, x422 y200 w25 h30 vInstantFlaskDelayUpdate, % Round(InstantFlaskDelay/100,2)
Gui, Add, Text, x422 y200 w25 h30 vInstantFlaskDelayUpdate, % Round(InstantFlaskDelay/100,2)
Gui, Add, Text, x447 y200 w10 h30 vInstantFlaskDelayUpdatePercent, s
Gui, Add, Text, x447 y200 w10 h30 vInstantFlaskDelayUpdatePercent, s


Gui, Add, GroupBox, x12 y390 w220 h60 , Only QuickSilver If Moving for X Seconds
Gui, Add, GroupBox, x12 y390 w220 h60 , Only QuickSilver If Moving for X Seconds
Gui, Add, Slider, x22 y410 w170 h30 Range0-100 gGuiUpdate vQuickSilverMovementTimer +ToolTip TickInterval20, %QuickSilverMovementTimer%
Gui, Add, Slider, x22 y410 w170 h30 Range0-100 gGuiUpdate vQuickSilverMovementTimer +ToolTip TickInterval20, %QuickSilverMovementTimer%
Gui, Add, Text, x192 y410 w22 h30 vQuickSilverMovementTimerUpdate, % Round(QuickSilverMovementTimer/10,1)
Gui, Add, Text, x192 y410 w22 h30 vQuickSilverMovementTimerUpdate, % Round(QuickSilverMovementTimer/10,1)
Gui, Add, Text, x214 y410 w10 h30 , s
Gui, Add, Text, x214 y410 w10 h30 , s


Gui, Add, GroupBox, x12 y460 w220 h60 , Only Remove Ailments If They Are Over
Gui, Add, GroupBox, x12 y460 w220 h60 , Only Remove Ailments If They Are Over
Gui, Add, Slider, x22 y480 w170 h30 Range0-50 gGuiUpdate vRemoveAilmentsTimer +ToolTip TickInterval10, %RemoveAilmentsTimer%
Gui, Add, Slider, x22 y480 w170 h30 Range0-50 gGuiUpdate vRemoveAilmentsTimer +ToolTip TickInterval10, %RemoveAilmentsTimer%
Gui, Add, Text, x192 y480 w22 h30 vRemoveAilmentsTimerUpdate, % Round(RemoveAilmentsTimer/10,1)
Gui, Add, Text, x192 y480 w22 h30 vRemoveAilmentsTimerUpdate, % Round(RemoveAilmentsTimer/10,1)
Gui, Add, Text, x214 y480 w10 h30 , s
Gui, Add, Text, x214 y480 w10 h30 , s


Gui, Add, GroupBox, x12 y530 w220 h60 , Only Remove Corrupted Blood If X Charges
Gui, Add, GroupBox, x12 y530 w220 h60 , Only Remove Corrupted Blood If X Charges
Gui, Add, Slider, x22 y550 w170 h30 Range1-20 gGuiUpdate vRemoveCorruptedBloodCharges +ToolTip, %RemoveCorruptedBloodCharges%
Gui, Add, Slider, x22 y550 w170 h30 Range1-20 gGuiUpdate vRemoveCorruptedBloodCharges +ToolTip, %RemoveCorruptedBloodCharges%
Gui, Add, Text, x192 y550 w12 h30 vRemoveCorruptedBloodChargesUpdate, %RemoveCorruptedBloodCharges%
Gui, Add, Text, x192 y550 w12 h30 vRemoveCorruptedBloodChargesUpdate, %RemoveCorruptedBloodCharges%
Gui, Add, Text, x210 y550 w20 h30 , ch
Gui, Add, Text, x210 y550 w20 h30 , ch


Gui, Add, GroupBox, x12 y110 w220 h60 , Disable AutoFlask on Slot ;x12 y359 w220 h60
Gui, Add, GroupBox, x12 y110 w220 h60 , Disable AutoFlask on Slot ;x12 y359 w220 h60


Loop, 5
Loop, 5
{
{
IniRead, Slot%A_Index%Disabled, Config.ini, DisableSlot, DisableSlot%A_Index%, 0
IniRead, Slot%A_Index%Disabled, Config.ini, DisableSlot, DisableSlot%A_Index%, 0
XSlot:=((A_Index*40)-18)
XSlot:=((A_Index*40)-18)
X=x%XSlot%
X=x%XSlot%
If (Slot%A_Index%Disabled = 0)
If (Slot%A_Index%Disabled = 0)
Gui, Add, CheckBox, %X% y130 w30 h30 vDisableSlot%A_Index% gDisableSlot, %A_Index%
Gui, Add, CheckBox, %X% y130 w30 h30 vDisableSlot%A_Index% gDisableSlot, %A_Index%
Else If (Slot%A_Index%Disabled = 1)
Else If (Slot%A_Index%Disabled = 1)
Gui, Add, CheckBox, %X% y130 w30 h30 checked vDisableSlot%A_Index% gDisableSlot, %A_Index%
Gui, Add, CheckBox, %X% y130 w30 h30 checked vDisableSlot%A_Index% gDisableSlot, %A_Index%
}
}


If QuickSilverCheck = 0
If QuickSilverCheck = 0
{
{
Gui, Add, CheckBox, x242 y389 w220 h30 vQuickSilverCheckBox gQuickSilverCheck, Use QuickSilver Flask When 40+ Charges
Gui, Add, CheckBox, x242 y389 w220 h30 vQuickSilverCheckBox gQuickSilverCheck, Use QuickSilver Flask When 40+ Charges
}
}
If QuickSilverCheck = 1
If QuickSilverCheck = 1
{
{
Gui, Add, CheckBox, x242 y389 w220 h30 vQuickSilverCheckBox gQuickSilverCheck Checked, Use QuickSilver Flask When 40+ Charges
Gui, Add, CheckBox, x242 y389 w220 h30 vQuickSilverCheckBox gQuickSilverCheck Checked, Use QuickSilver Flask When 40+ Charges
}
}


If QuickSilverCheck2 = 0
If QuickSilverCheck2 = 0
{
{
Gui, Add, CheckBox, x242 y418 w220 h30 vQuickSilverCheckBox2 gQuickSilverCheck2, Use QuickSilver Flask When 20+ Charges
Gui, Add, CheckBox, x242 y418 w220 h30 vQuickSilverCheckBox2 gQuickSilverCheck2, Use QuickSilver Flask When 20+ Charges
}
}
If QuickSilverCheck2 = 1
If QuickSilverCheck2 = 1
{
{
Gui, Add, CheckBox, x242 y418 w220 h30 vQuickSilverCheckBox2 gQuickSilverCheck2 Checked, Use QuickSilver Flask When 20+ Charges
Gui, Add, CheckBox, x242 y418 w220 h30 vQuickSilverCheckBox2 gQuickSilverCheck2 Checked, Use QuickSilver Flask When 20+ Charges
}
}


If FlaskOnFrozenCheck = 0
If FlaskOnFrozenCheck = 0
{
{
Gui, Add, CheckBox, x242 y447 w220 h30 vFlaskOnFrozenCheckBox gFlaskOnFrozenCheck, Use Flask to Remove Frozen Ailment
Gui, Add, CheckBox, x242 y447 w220 h30 vFlaskOnFrozenCheckBox gFlaskOnFrozenCheck, Use Flask to Remove Frozen Ailment
}
}
If FlaskOnFrozenCheck = 1
If FlaskOnFrozenCheck = 1
{
{
Gui, Add, CheckBox, x242 y447 w220 h30 vFlaskOnFrozenCheckBox gFlaskOnFrozenCheck Checked, Use Flask to Remove Frozen Ailment
Gui, Add, CheckBox, x242 y447 w220 h30 vFlaskOnFrozenCheckBox gFlaskOnFrozenCheck Checked, Use Flask to Remove Frozen Ailment
}
}


If FlaskOnShockedCheck = 0
If FlaskOnShockedCheck = 0
{
{
Gui, Add, CheckBox, x242 y475 w220 h30 vFlaskOnShockedCheckBox gFlaskOnShockedCheck, Use Flask to Remove Shocked Ailment
Gui, Add, CheckBox, x242 y475 w220 h30 vFlaskOnShockedCheckBox gFlaskOnShockedCheck, Use Flask to Remove Shocked Ailment
}
}
If FlaskOnShockedCheck = 1
If FlaskOnShockedCheck = 1
{
{
Gui, Add, CheckBox, x242 y475 w220 h30 vFlaskOnShockedCheckBox gFlaskOnShockedCheck Checked, Use Flask to Remove Shocked Ailment
Gui, Add, CheckBox, x242 y475 w220 h30 vFlaskOnShockedCheckBox gFlaskOnShockedCheck Checked, Use Flask to Remove Shocked Ailment
}
}


If FlaskOnIgnitedCheck = 0
If FlaskOnIgnitedCheck = 0
{
{
Gui, Add, CheckBox, x242 y503 w220 h30 vFlaskOnIgnitedCheckBox gFlaskOnIgnitedCheck, Use Flask to Remove Burning Ailment
Gui, Add, CheckBox, x242 y503 w220 h30 vFlaskOnIgnitedCheckBox gFlaskOnIgnitedCheck, Use Flask to Remove Burning Ailment
}
}
If FlaskOnIgnitedCheck = 1
If FlaskOnIgnitedCheck = 1
{
{
Gui, Add, CheckBox, x242 y503 w220 h30 vFlaskOnIgnitedCheckBox gFlaskOnIgnitedCheck Checked, Use Flask to Remove Burning Ailment
Gui, Add, CheckBox, x242 y503 w220 h30 vFlaskOnIgnitedCheckBox gFlaskOnIgnitedCheck Checked, Use Flask to Remove Burning Ailment
}
}


If FlaskOnCurseCheck = 0
If FlaskOnCurseCheck = 0
{
{
Gui, Add, CheckBox, x242 y531 w220 h30 vFlaskOnCurseCheckBox gFlaskOnCurseCheck, Use Flask to Remove Curses
Gui, Add, CheckBox, x242 y531 w220 h30 vFlaskOnCurseCheckBox gFlaskOnCurseCheck, Use Flask to Remove Curses
}
}
If FlaskOnCurseCheck = 1
If FlaskOnCurseCheck = 1
{
{
Gui, Add, CheckBox, x242 y531 w220 h30 vFlaskOnCurseCheckBox gFlaskOnCurseCheck Checked, Use Flask to Remove Curses
Gui, Add, CheckBox, x242 y531 w220 h30 vFlaskOnCurseCheckBox gFlaskOnCurseCheck Checked, Use Flask to Remove Curses
}
}


If FlaskOnCorruptedBloodCheck = 0
If FlaskOnCorruptedBloodCheck = 0
{
{
Gui, Add, CheckBox, x242 y558 w220 h30 vFlaskOnCorruptedBloodCheckBox gFlaskOnCorruptedBloodCheck, Use Flask to Remove Corrupted Blood
Gui, Add, CheckBox, x242 y558 w220 h30 vFlaskOnCorruptedBloodCheckBox gFlaskOnCorruptedBloodCheck, Use Flask to Remove Corrupted Blood
}
}
If FlaskOnCorruptedBloodCheck = 1
If FlaskOnCorruptedBloodCheck = 1
{
{
Gui, Add, CheckBox, x242 y558 w220 h30 vFlaskOnCorruptedBloodCheckBox gFlaskOnCorruptedBloodCheck Checked, Use Flask to Remove Corrupted Blood
Gui, Add, CheckBox, x242 y558 w220 h30 vFlaskOnCorruptedBloodCheckBox gFlaskOnCorruptedBloodCheck Checked, Use Flask to Remove Corrupted Blood
}
}




Gui, Tab, AutoQuit
Gui, Tab, AutoQuit


Gui, Add, GroupBox, x12 y180 w220 h60, Auto Quit Method
Gui, Add, GroupBox, x12 y180 w220 h60, Auto Quit Method
IniRead, AutoQuitMethod , Config.ini, Config, AutoQuitMethod, 1
IniRead, AutoQuitMethod , Config.ini, Config, AutoQuitMethod, 1
If AutoQuitMethod = 1
If AutoQuitMethod = 1
{
{
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen||Alt+F4 (Fastest according to Chris)|Use a Portal (On Testing)|Disabled
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen||Alt+F4 (Fastest according to Chris)|Use a Portal (On Testing)|Disabled
autoQuitMode:=1
autoQuitMode:=1
}
}
Else If AutoQuitMethod = 2
Else If AutoQuitMethod = 2
{
{
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen|Alt+F4 (Fastest according to Chris)||Use a Portal (On Testing)|Disabled
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen|Alt+F4 (Fastest according to Chris)||Use a Portal (On Testing)|Disabled
autoQuitMode:=0
autoQuitMode:=0
}
}
Else If AutoQuitMethod = 3
Else If AutoQuitMethod = 3
{
{
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen|Alt+F4 (Fastest according to Chris)|Use a Portal (On Testing)||Disabled
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen|Alt+F4 (Fastest according to Chris)|Use a Portal (On Testing)||Disabled
autoQuitMode:=3
autoQuitMode:=3
}
}
Else If AutoQuitMethod = 4
Else If AutoQuitMethod = 4
{
{
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen|Alt+F4 (Fastest according to Chris)|Use a Portal (On Testing)|Disabled||
Gui, Add, DropDownList, x22 y200 w200 h21 AltSubmit gAutoQuitList vAutoQuitChoice R5, Exit to Login Screen|Alt+F4 (Fastest according to Chris)|Use a Portal (On Testing)|Disabled||
autoQuitMode:=4
autoQuitMode:=4
}
}


Gui, Add, GroupBox, x12 y40 w220 h60 , Min Life `% to Quit
Gui, Add, GroupBox, x12 y40 w220 h60 , Min Life `% to Quit
Gui, Add, Slider, x22 y60 w170 h30 gGuiUpdate vminLifePercentToQuit +ToolTip TickInterval25, %minLifePercentToQuit%
Gui, Add, Slider, x22 y60 w170 h30 gGuiUpdate vminLifePercentToQuit +ToolTip TickInterval25, %minLifePercentToQuit%
Gui, Add, Text, x192 y60 w20 h30 vminLifePercentToQuitUpdate, %minLifePercentToQuit%
Gui, Add, Text, x192 y60 w20 h30 vminLifePercentToQuitUpdate, %minLifePercentToQuit%
Gui, Add, Text, x212 y60 w10 h30 vminLifePercentToQuitUpdatePercent, `%
Gui, Add, Text, x212 y60 w10 h30 vminLifePercentToQuitUpdatePercent, `%


Gui, Add, GroupBox, x242 y40 w220 h60 , Min Energy Shield `% to Quit
Gui, Add, GroupBox, x242 y40 w220 h60 , Min Energy Shield `% to Quit
Gui, Add, Slider, x252 y60 w170 h30 gGuiUpdate vminESPercentToQuit +ToolTip TickInterval25, %minESPercentToQuit%
Gui, Add, Slider, x252 y60 w170 h30 gGuiUpdate vminESPercentToQuit +ToolTip TickInterval25, %minESPercentToQuit%
Gui, Add, Text, x422 y60 w20 h30 vminESPercentToQuitUpdate, %minESPercentToQuit%
Gui, Add, Text, x422 y60 w20 h30 vminESPercentToQuitUpdate, %minESPercentToQuit%
Gui, Add, Text, x442 y60 w10 h30 vminESPercentToQuitUpdatePercent, `%
Gui, Add, Text, x442 y60 w10 h30 vminESPercentToQuitUpdatePercent, `%


Gui, Add, GroupBox, x12 y110 w220 h60 , Max Life `% Per Hit to Quit
Gui, Add, GroupBox, x12 y110 w220 h60 , Max Life `% Per Hit to Quit
Gui, Add, Slider, x22 y130 w170 h30 gGuiUpdate vmaxLifePercentPerHitToQuit +ToolTip TickInterval25, %maxLifePercentPerHitToQuit%
Gui, Add, Slider, x22 y130 w170 h30 gGuiUpdate vmaxLifePercentPerHitToQuit +ToolTip TickInterval25, %maxLifePercentPerHitToQuit%
Gui, Add, Text, x192 y130 w20 h30 vmaxLifePercentPerHitToQuitUpdate, %maxLifePercentPerHitToQuit%
Gui, Add, Text, x192 y130 w20 h30 vmaxLifePercentPerHitToQuitUpdate, %maxLifePercentPerHitToQuit%
Gui, Add, Text, x212 y130 w10 h30 vmaxLifePercentPerHitToQuitUpdatePercent, `%
Gui, Add, Text, x212 y130 w10 h30 vmaxLifePercentPerHitToQuitUpdatePercent, `%


Gui, Add, GroupBox, x242 y110 w220 h60 , Max Energy Shield `% Per Hit to Quit
Gui, Add, GroupBox, x242 y110 w220 h60 , Max Energy Shield `% Per Hit to Quit
Gui, Add, Slider, x252 y130 w170 h30 gGuiUpdate vmaxESPercentPerHitToQuit +ToolTip TickInterval25, %maxESPercentPerHitToQuit%
Gui, Add, Slider, x252 y130 w170 h30 gGuiUpdate vmaxESPercentPerHitToQuit +ToolTip TickInterval25, %maxESPercentPerHitToQuit%
Gui, Add, Text, x422 y130 w20 h30 vmaxESPercentPerHitToQuitUpdate, %maxESPercentPerHitToQuit%
Gui, Add, Text, x422 y130 w20 h30 vmaxESPercentPerHitToQuitUpdate, %maxESPercentPerHitToQuit%
Gui, Add, Text, x442 y130 w10 h30 vmaxESPercentPerHitToQuitUpdatePercent, `%
Gui, Add, Text, x442 y130 w10 h30 vmaxESPercentPerHitToQuitUpdatePercent, `%


Gui, Tab, Settings
Gui, Tab, Settings


IniRead, DPSCheck , Config.ini, Config, DPSCheck, 0
IniRead, DPSCheck , Config.ini, Config, DPSCheck, 0
If DPSCheck = 0
If DPSCheck = 0
{
{
Gui, Add, CheckBox, x272 y70 w190 h30 vDPSCheckBox gDPSCheck, Disable DPS Calculator
Gui, Add, CheckBox, x272 y70 w190 h30 vDPSCheckBox gDPSCheck, Disable DPS Calculator
global DPS:=false
global DPS:=false
}
}
If DPSCheck = 1
If DPSCheck = 1
{
{
Gui, Add, CheckBox, x272 y70 w190 h30 vDPSCheckBox gDPSCheck Checked, Disable DPS Calculator
Gui, Add, CheckBox, x272 y70 w190 h30 vDPSCheckBox gDPSCheck Checked, Disable DPS Calculator
global DPS:=true
global DPS:=true
}
}


;display tray notIfications about script actions : drinking potions, autoquitting
;display tray notIfications about script actions : drinking potions, autoquitting
IniRead, TrayNotIficationsCheck , Config.ini, Config, TrayNotIficationsCheck, 0
IniRead, TrayNotIficationsCheck , Config.ini, Config, TrayNotIficationsCheck, 0
If TrayNotIficationsCheck = 0
If TrayNotIficationsCheck = 0
{
{
Gui, Add, CheckBox, x272 y40 w190 h30 vTrayCheckBox gTrayNotIficationsCheck, Disable Tray NotIfications
Gui, Add, CheckBox, x272 y40 w190 h30 vTrayCheckBox gTrayNotIficationsCheck, Disable Tray NotIfications
global trayNotIfications:=true
global trayNotIfications:=true
}
}
If TrayNotIficationsCheck = 1
If TrayNotIficationsCheck = 1
{
{
Gui, Add, CheckBox, x272 y40 w190 h30 vTrayCheckBox gTrayNotIficationsCheck Checked, Disable Tray NotIfications
Gui, Add, CheckBox, x272 y40 w190 h30 vTrayCheckBox gTrayNotIficationsCheck Checked, Disable Tray NotIfications
global trayNotIfications:=false
global trayNotIfications:=false
}
}


Gui, Add, GroupBox, x12 y40 w220 h60 , Base Pointer
Gui, Add, GroupBox, x12 y40 w220 h60 , Base Pointer
Gui, Add, Text, x92 y60 w130 h30, Will Automatically Find Itself On New Client/Patch
Gui, Add, Text, x92 y60 w130 h30, Will Automatically Find Itself On New Client/Patch
IniRead, baseMgrPtr , Config.ini, Config, baseMgrPtr, 0
IniRead, baseMgrPtr , Config.ini, Config, baseMgrPtr, 0
Gui, Add, Text, x22 y70 w70 h20 vbasePtrText , %baseMgrPtr%
Gui, Add, Text, x22 y70 w70 h20 vbasePtrText , %baseMgrPtr%


Gui, Add, Button, x262 y120 w180 h40 gshowgui2, Configure Hotkeys
Gui, Add, Button, x262 y120 w180 h40 gshowgui2, Configure Hotkeys


Gui, Add, Button, x32 y190 w180 h40 gshowgui4, Debug Window
Gui, Add, Button, x32 y190 w180 h40 gshowgui4, Debug Window


Gui, Add, Button, x262 y190 w180 h40 gDefaultHotkeys, Restore Default Hotkeys
Gui, Add, Button, x262 y190 w180 h40 gDefaultHotkeys, Restore Default Hotkeys


Gui, Add, GroupBox, x12 y250 w220 h60, Client Server
Gui, Add, GroupBox, x12 y250 w220 h60, Client Server
IniRead, ClientServer , Config.ini, Config, ClientServer, 1
IniRead, ClientServer , Config.ini, Config, ClientServer, 1
If ClientServer = 1
If ClientServer = 1
{
{
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global||Steam|Singapore/Malasya|Taiwan
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global||Steam|Singapore/Malasya|Taiwan
ClientServerMode:=1
ClientServerMode:=1
}
}
Else If ClientServer = 2
Else If ClientServer = 2
{
{
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global|Steam||Singapore/Malasya|Taiwan
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global|Steam||Singapore/Malasya|Taiwan
ClientServerMode:=2
ClientServerMode:=2
}
}
Else If ClientServer = 3
Else If ClientServer = 3
{
{
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global|Steam|Singapore/Malasya||Taiwan
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global|Steam|Singapore/Malasya||Taiwan
ClientServerMode:=3
ClientServerMode:=3
}
}
Else If ClientServer = 4
Else If ClientServer = 4
{
{
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global|Steam|Singapore/Malasya|Taiwan||
Gui, Add, DropDownList, x22 y270 w200 h21 AltSubmit gClientServerList vClientServerChoice R5, Global|Steam|Singapore/Malasya|Taiwan||
ClientServerMode:=4
ClientServerMode:=4
}
}




Gui, Tab, Others
Gui, Tab, Others


IniRead, TradeSpam, Config.ini, Config, TradeSpam, 0
IniRead, TradeSpam, Config.ini, Config, TradeSpam, 0
Gui, Add, GroupBox, x12 y40 w220 h60 , Send Trade Message Every X Minutes*
Gui, Add, GroupBox, x12 y40 w220 h60 , Send Trade Message Every X Minutes*
Gui, Add, Slider, x22 y60 w170 h30 gGuiUpdate vTradeSpam +ToolTip TickInterval1 Range0-10, %TradeSpam%
Gui, Add, Slider, x22 y60 w170 h30 gGuiUpdate vTradeSpam +ToolTip TickInterval1 Range0-10, %TradeSpam%
Gui, Add, Text, x192 y60 w20 h30 vTradeSpamUpdate, %TradeSpam%
Gui, Add, Text, x192 y60 w20 h30 vTradeSpamUpdate, %TradeSpam%
Gui, Add, Text, x212 y60 w10 h30 vTradeSpamUpdatePercent, m
Gui, Add, Text, x212 y60 w10 h30 vTradeSpamUpdatePercent, m


Gui, Add, Text, x22 y565 w400 h21, *Opening the chat will stop and reset the trade spam.
Gui, Add, Text, x22 y565 w400 h21, *Opening the chat will stop and reset the trade spam.


Gui, Add, GroupBox, x242 y40 w220 h60 , Send Resync Command Every X Seconds
Gui, Add, GroupBox, x242 y40 w220 h60 , Send Resync Command Every X Seconds
Gui, Add, Slider, x252 y60 w170 h30 gGuiUpdate vResyncSpam +ToolTip TickInterval30 Range0-120, %ResyncSpam%
Gui, Add, Slider, x252 y60 w170 h30 gGuiUpdate vResyncSpam +ToolTip TickInterval30 Range0-120, %ResyncSpam%
Gui, Add, Text, x422 y60 w20 h30 vResyncSpamUpdate, %ResyncSpam%
Gui, Add, Text, x422 y60 w20 h30 vResyncSpamUpdate, %ResyncSpam%
Gui, Add, Text, x442 y60 w10 h30 vResyncSpamUpdatePercent, s
Gui, Add, Text, x442 y60 w10 h30 vResyncSpamUpdatePercent, s


Gui, Add, GroupBox, x242 y110 w220 h60 , Send Remaining Command Every X Secs
Gui, Add, GroupBox, x242 y110 w220 h60 , Send Remaining Command Every X Secs
Gui, Add, Slider, x252 y130 w170 h30 gGuiUpdate vRemainingSpam +ToolTip TickInterval30 Range0-120, %RemainingSpam%
Gui, Add, Slider, x252 y130 w170 h30 gGuiUpdate vRemainingSpam +ToolTip TickInterval30 Range0-120, %RemainingSpam%
Gui, Add, Text, x422 y130 w20 h30 vRemainingSpamUpdate, %RemainingSpam%
Gui, Add, Text, x422 y130 w20 h30 vRemainingSpamUpdate, %RemainingSpam%
Gui, Add, Text, x442 y130 w10 h30 vRemainingSpamUpdatePercent, s
Gui, Add, Text, x442 y130 w10 h30 vRemainingSpamUpdatePercent, s


If AttackInPlaceCheck = 0
If AttackInPlaceCheck = 0
{
{
Gui, Add, CheckBox, x22 y110 w200 h30 vAttackInPlaceCheckBox gAttackInPlaceCheck, Auto Hold In Place When Attacking
Gui, Add, CheckBox, x22 y110 w200 h30 vAttackInPlaceCheckBox gAttackInPlaceCheck, Auto Hold In Place When Attacking
}
}
If AttackInPlaceCheck = 1
If AttackInPlaceCheck = 1
{
{
Gui, Add, CheckBox, x22 y110 w200 h30 vAttackInPlaceCheckBox gAttackInPlaceCheck Checked, Auto Hold In Place When Attacking
Gui, Add, CheckBox, x22 y110 w200 h30 vAttackInPlaceCheckBox gAttackInPlaceCheck Checked, Auto Hold In Place When Attacking
}
}


If HoldCtrlCheck = 0
If HoldCtrlCheck = 0
{
{
Gui, Add, CheckBox, x22 y140 w200 h30 vHoldCtrlCheckBox gHoldCtrlCheck, Auto Hold Ctrl On Waypoint Panel
Gui, Add, CheckBox, x22 y140 w200 h30 vHoldCtrlCheckBox gHoldCtrlCheck, Auto Hold Ctrl On Waypoint Panel
}
}
If HoldCtrlCheck = 1
If HoldCtrlCheck = 1
{
{
Gui, Add, CheckBox, x22 y140 w200 h30 vHoldCtrlCheckBox gHoldCtrlCheck Checked, Auto Hold Ctrl On Waypoint Panel
Gui, Add, CheckBox, x22 y140 w200 h30 vHoldCtrlCheckBox gHoldCtrlCheck Checked, Auto Hold Ctrl On Waypoint Panel
}
}




Gui, Tab
Gui, Tab


Gui, Add, Button, x22 y609 w130 h40 gDefault, Reset Profile
Gui, Add, Button, x22 y609 w130 h40 gDefault, Reset Profile
Gui, Add, Button, x182 y609 w120 h40 gReadMe, ReadMe
Gui, Add, Button, x182 y609 w120 h40 gReadMe, ReadMe
Gui, Add, Button, x332 y609 w120 h40 gDonate, Donate
Gui, Add, Button, x332 y609 w120 h40 gDonate, Donate


Gui, Add, Text, x380 y1 w110 h18 vguicontroled, Created by Gurud.
Gui, Add, Text, x380 y1 w110 h18 vguicontroled, Created by Gurud.


Gui, Add, GroupBox, x0 y590 w472 h74 ,
Gui, Add, GroupBox, x0 y590 w472 h74 ,
Gui, Add, GroupBox, x1 y591 w470 h72 ,
Gui, Add, GroupBox, x1 y591 w470 h72 ,
Gui, Add, GroupBox, x2 y592 w468 h70 ,
Gui, Add, GroupBox, x2 y592 w468 h70 ,
Gui, Add, GroupBox, x3 y593 w466 h68 ,
Gui, Add, GroupBox, x3 y593 w466 h68 ,
Gui, Add, GroupBox, x4 y594 w464 h66 ,
Gui, Add, GroupBox, x4 y594 w464 h66 ,


Gui, Add, GroupBox, x0 y21 w472 h575 ,
Gui, Add, GroupBox, x0 y21 w472 h575 ,
Gui, Add, GroupBox, x1 y22 w470 h574 ,
Gui, Add, GroupBox, x1 y22 w470 h574 ,
Gui, Add, GroupBox, x2 y23 w468 h573 ,
Gui, Add, GroupBox, x2 y23 w468 h573 ,
Gui, Add, GroupBox, x3 y24 w466 h572 ,
Gui, Add, GroupBox, x3 y24 w466 h572 ,
Gui, Add, GroupBox, x4 y25 w464 h571 ,
Gui, Add, GroupBox, x4 y25 w464 h571 ,


Menu, Tray, Add, Configuration Window, showgui
Menu, Tray, Add, Configuration Window, showgui


If (minLifePercentToQuit=0)
If (minLifePercentToQuit=0)
{
{
GuiControl, , minLifePercentToQuitUpdate, N/A
GuiControl, , minLifePercentToQuitUpdate, N/A
GuiControl, , minLifePercentToQuitUpdatePercent,
GuiControl, , minLifePercentToQuitUpdatePercent,
}
}
If (minESPercentToQuit=0)
If (minESPercentToQuit=0)
{
{
GuiControl, , minESPercentToQuitUpdate, N/A
GuiControl, , minESPercentToQuitUpdate, N/A
GuiControl, , minESPercentToQuitUpdatePercent,
GuiControl, , minESPercentToQuitUpdatePercent,
}
}
If (maxLifePercentPerHitToQuit=0 || maxLifePercentPerHitToQuit=100)
If (maxLifePercentPerHitToQuit=0 || maxLifePercentPerHitToQuit=100)
{
{
GuiControl, , maxLifePercentPerHitToQuitUpdate, N/A
GuiControl, , maxLifePercentPerHitToQuitUpdate, N/A
GuiControl, , maxLifePercentPerHitToQuitUpdatePercent,
GuiControl, , maxLifePercentPerHitToQuitUpdatePercent,
}
}
If (maxESPercentPerHitToQuit=0)
If (maxESPercentPerHitToQuit=0)
{
{
GuiControl, , maxESPercentPerHitToQuitUpdate, N/A
GuiControl, , maxESPercentPerHitToQuitUpdate, N/A
GuiControl, , maxESPercentPerHitToQuitUpdatePercent,
GuiControl, , maxESPercentPerHitToQuitUpdatePercent,
}
}
If (minLifePercentToJade=0)
If (minLifePercentToJade=0)
{
{
GuiControl, , minLifePercentToJadeUpdate, N/A
GuiControl, , minLifePercentToJadeUpdate, N/A
GuiControl, , minLifePercentToJadeUpdatePercent,
GuiControl, , minLifePercentToJadeUpdatePercent,
}
}
If (minESPercentToJade=0)
If (minESPercentToJade=0)
{
{
GuiControl, , minESPercentToJadeUpdate, N/A
GuiControl, , minESPercentToJadeUpdate, N/A
GuiControl, , minESPercentToJadeUpdatePercent,
GuiControl, , minESPercentToJadeUpdatePercent,
}
}
If (minLifePercentToElementalResist=0)
If (minLifePercentToElementalResist=0)
{
{
GuiControl, , minLifePercentToElementalResistUpdate, N/A
GuiControl, , minLifePercentToElementalResistUpdate, N/A
GuiControl, , minLifePercentToElementalResistUpdatePercent,
GuiControl, , minLifePercentToElementalResistUpdatePercent,
}
}
If (minESPercentToElementalResist=0)
If (minESPercentToElementalResist=0)
{
{
GuiControl, , minESPercentToElementalResistUpdate, N/A
GuiControl, , minESPercentToElementalResistUpdate, N/A
GuiControl, , minESPercentToElementalResistUpdatePercent,
GuiControl, , minESPercentToElementalResistUpdatePercent,
}
}
If (minLifePercentToDrink=0)
If (minLifePercentToDrink=0)
{
{
GuiControl, , minLifePercentToDrinkUpdate, N/A
GuiControl, , minLifePercentToDrinkUpdate, N/A
GuiControl, , minLifePercentToDrinkUpdatePercent,
GuiControl, , minLifePercentToDrinkUpdatePercent,
}
}
If (minManaPercentToDrink=0)
If (minManaPercentToDrink=0)
{
{
GuiControl, , minManaPercentToDrinkUpdate, N/A
GuiControl, , minManaPercentToDrinkUpdate, N/A
GuiControl, , minManaPercentToDrinkUpdatePercent,
GuiControl, , minManaPercentToDrinkUpdatePercent,
}
}
If (minManaToDrinkPot=0)
If (minManaToDrinkPot=0)
{
{
GuiControl, , minManaToDrinkPotUpdate, N/A
GuiControl, , minManaToDrinkPotUpdate, N/A
}
}
If (InstantFlaskDelay=0)
If (InstantFlaskDelay=0)
{
{
GuiControl, , InstantFlaskDelayUpdate, N/A
GuiControl, , InstantFlaskDelayUpdate, N/A
GuiControl, , InstantFlaskDelayUpdatePercent,
GuiControl, , InstantFlaskDelayUpdatePercent,
}
}
If (minLifePercentToSpam=0)
If (minLifePercentToSpam=0)
{
{
GuiControl, , minLifePercentToSpamUpdate, N/A
GuiControl, , minLifePercentToSpamUpdate, N/A
GuiControl, , minLifePercentToSpamUpdatePercent,
GuiControl, , minLifePercentToSpamUpdatePercent,
}
}
If (TradeSpam=0)
If (TradeSpam=0)
{
{
GuiControl, , TradeSpamUpdate, N/A
GuiControl, , TradeSpamUpdate, N/A
GuiControl, , TradeSpamUpdatePercent,
GuiControl, , TradeSpamUpdatePercent,
}
}
If (ResyncSpam=0)
If (ResyncSpam=0)
{
{
GuiControl, , ResyncSpamUpdate, N/A
GuiControl, , ResyncSpamUpdate, N/A
GuiControl, , ResyncSpamUpdatePercent,
GuiControl, , ResyncSpamUpdatePercent,
}
}
If (RemainingSpam=0)
If (RemainingSpam=0)
{
{
GuiControl, , RemainingSpamUpdate, N/A
GuiControl, , RemainingSpamUpdate, N/A
GuiControl, , RemainingSpamUpdatePercent,
GuiControl, , RemainingSpamUpdatePercent,
}
}


Gui, Submit
Gui, Submit


StringTrimRight, Name, A_ScriptName, 4
StringTrimRight, Name, A_ScriptName, 4


Gui, Show, x760 y198 h665 w474, %Name%
Gui, Show, x760 y198 h665 w474, %Name%


;---------------------START DYNAMIC HOTKEYS---------------------
;---------------------START DYNAMIC HOTKEYS---------------------


;"Wild Mode allows hotkeys to trigger when other modIfiers are also held.`nFor example, If you bound Ctrl+C to an action...`nWild Mode ON: Ctrl+Alt+C, Ctrl+ShIft+C etc would still trigger the action`nWild Mode OFF: Ctrl+Alt+C etc would not trigger the action."
;"Wild Mode allows hotkeys to trigger when other modIfiers are also held.`nFor example, If you bound Ctrl+C to an action...`nWild Mode ON: Ctrl+Alt+C, Ctrl+ShIft+C etc would still trigger the action`nWild Mode OFF: Ctrl+Alt+C etc would not trigger the action."


; Build list of "End Keys" for Input command
; Build list of "End Keys" for Input command
EXTRA_KEY_LIST := "{Escape}" ; DO NOT REMOVE! - Used to quit binding
EXTRA_KEY_LIST := "{Escape}" ; DO NOT REMOVE! - Used to quit binding
; Standard non-printables
; Standard non-printables
EXTRA_KEY_LIST .= "{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}"
EXTRA_KEY_LIST .= "{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}"
EXTRA_KEY_LIST .= "{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BackSpace}{Pause}"
EXTRA_KEY_LIST .= "{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BackSpace}{Pause}"
; Numpad - Numlock ON
; Numpad - Numlock ON
EXTRA_KEY_LIST .= "{Numpad0}{Numpad1}{Numpad2}{Numpad3}{Numpad4}{Numpad5}{Numpad6}{Numpad7}{Numpad8}{Numpad9}{NumpadDot}{NumpadMult}{NumpadAdd}{NumpadSub}"
EXTRA_KEY_LIST .= "{Numpad0}{Numpad1}{Numpad2}{Numpad3}{Numpad4}{Numpad5}{Numpad6}{Numpad7}{Numpad8}{Numpad9}{NumpadDot}{NumpadMult}{NumpadAdd}{NumpadSub}"
; Numpad - Numlock OFF
; Numpad - Numlock OFF
EXTRA_KEY_LIST .= "{NumpadIns}{NumpadEnd}{NumpadDown}{NumpadPgDn}{NumpadLeft}{NumpadClear}{NumpadRight}{NumpadHome}{NumpadUp}{NumpadPgUp}{NumpadDel}"
EXTRA_KEY_LIST .= "{NumpadIns}{NumpadEnd}{NumpadDown}{NumpadPgDn}{NumpadLeft}{NumpadClear}{NumpadRight}{NumpadHome}{NumpadUp}{NumpadPgUp}{NumpadDel}"
; Numpad - Common
; Numpad - Common
EXTRA_KEY_LIST .= "{NumpadMult}{NumpadAdd}{NumpadSub}{NumpadDiv}{NumpadEnter}"
EXTRA_KEY_LIST .= "{NumpadMult}{NumpadAdd}{NumpadSub}{NumpadDiv}{NumpadEnter}"
; Stuff we may or may not want to trap
; Stuff we may or may not want to trap
;EXTRA_KEY_LIST .= "{Numlock}"
;EXTRA_KEY_LIST .= "{Numlock}"
EXTRA_KEY_LIST .= "{Capslock}"
EXTRA_KEY_LIST .= "{Capslock}"
;EXTRA_KEY_LIST .= "{PrintScreen}"
;EXTRA_KEY_LIST .= "{PrintScreen}"
; Browser keys
; Browser keys
EXTRA_KEY_LIST .= "{Browser_Back}{Browser_Forward}{Browser_Refresh}{Browser_Stop}{Browser_Search}{Browser_Favorites}{Browser_Home}"
EXTRA_KEY_LIST .= "{Browser_Back}{Browser_Forward}{Browser_Refresh}{Browser_Stop}{Browser_Search}{Browser_Favorites}{Browser_Home}"
; Media keys
; Media keys
EXTRA_KEY_LIST .= "{Volume_Mute}{Volume_Down}{Volume_Up}{Media_Next}{Media_Prev}{Media_Stop}{Media_Play_Pause}"
EXTRA_KEY_LIST .= "{Volume_Mute}{Volume_Down}{Volume_Up}{Media_Next}{Media_Prev}{Media_Stop}{Media_Play_Pause}"
; App Keys
; App Keys
EXTRA_KEY_LIST .= "{Launch_Mail}{Launch_Media}{Launch_App1}{Launch_App2}"
EXTRA_KEY_LIST .= "{Launch_Mail}{Launch_Media}{Launch_App1}{Launch_App2}"


; BindMode vars
; BindMode vars
HKModIfierState := {} ; The state of the modIfiers at the end of the last detection sequence
HKModIfierState := {} ; The state of the modIfiers at the end of the last detection sequence
HKControlType := 0 ; The kind of control that the last hotkey was. 0 = regular key, 1 = solitary modIfier, 2 = mouse, 3 = joystick
HKControlType := 0 ; The kind of control that the last hotkey was. 0 = regular key, 1 = solitary modIfier, 2 = mouse, 3 = joystick
HKSecondaryInput := "" ; Set to button pressed If the last detected bind was a Mouse button, Joystick button or Solitary ModIfier
HKSecondaryInput := "" ; Set to button pressed If the last detected bind was a Mouse button, Joystick button or Solitary ModIfier
HKLastHotkey := 0 ; Time that Escape was pressed to exit key binding. Used to determine If Escape is held (Clear binding)
HKLastHotkey := 0 ; Time that Escape was pressed to exit key binding. Used to determine If Escape is held (Clear binding)


DefaultHKObject := {hk: "", type: "", wild: ""}
DefaultHKObject := {hk: "", type: "", wild: ""}


; Misc vars
; Misc vars
ININame := "Config.ini"
ININame := "Config.ini"
HotkeyList := []
HotkeyList := []
NumHotkeys := 9
NumHotkeys := 9


; Create the GUI
; Create the GUI
Gui 2:Add, Text,, This allows you to change Hotkeys.`n Click the "ReadMe" button to know what the hotkeys do.
Gui 2:Add, Text,, This allows you to change Hotkeys.`n Click the "ReadMe" button to know what the hotkeys do.
Gui, 2:Add, Text, x357 y25 w30 center, Wild`nMode
Gui, 2:Add, Text, x357 y25 w30 center, Wild`nMode


ypos := 50
ypos := 50


;Gui, 2:Add, Text, x5 y40 w300 center,Hotkey
;Gui, 2:Add, Text, x5 y40 w300 center,Hotkey
;Gui, 2:Add, Text, x300 y40 center,~ *
;Gui, 2:Add, Text, x300 y40 center,~ *


Loop % NumHotkeys
Loop % NumHotkeys
{
{
Gui, 2:Add, Edit, Disabled vHotkeyName%A_Index% w260 x5 y%ypos%, None
Gui, 2:Add, Edit, Disabled vHotkeyName%A_Index% w260 x5 y%ypos%, None
Gui, 2:Add, Button, gBind vBind%A_Index% yp-1 xp+270, Set Hotkey
Gui, 2:Add, Button, gBind vBind%A_Index% yp-1 xp+270, Set Hotkey
Gui, 2:Add, Checkbox, vWild%A_Index% gOptionChanged xp+90 yp+5
Gui, 2:Add, Checkbox, vWild%A_Index% gOptionChanged xp+90 yp+5
;Gui, 2:Add, Checkbox, vBlock%A_Index% gOptionChanged xp+30 yp
;Gui, 2:Add, Checkbox, vBlock%A_Index% gOptionChanged xp+30 yp
ypos += 25
ypos += 25
}
}




; Set GUI State
; Set GUI State
LoadSettings()
LoadSettings()


; Enable defined hotkeys
; Enable defined hotkeys
EnableHotkeys()
EnableHotkeys()


Menu, Tray, Add, Configure Hotkeys, showgui2 ;Check the box If Win modIfier is used.
Menu, Tray, Add, Configure Hotkeys, showgui2 ;Check the box If Win modIfier is used.
Gui, 2:Submit, Hide
Gui, 2:Submit, Hide


Menu Tray, NoStandard
Menu Tray, NoStandard


Menu Tray, Standard
Menu Tray, Standard


Menu Tray,Check, Configure Hotkeys
Menu Tray,Check, Configure Hotkeys
Menu Tray,Check, Configuration Window
Menu Tray,Check, Configuration Window


;---------------------END DYNAMIC HOTKEYS---------------------
;---------------------END DYNAMIC HOTKEYS---------------------
;---------------------DEBUG WINDOW----------------------------
;---------------------DEBUG WINDOW----------------------------


Gui, 4:Add, GroupBox, x5 y0 w300 h300 , Player Stats
Gui, 4:Add, GroupBox, x5 y0 w300 h300 , Player Stats
ypos := 25
ypos := 25
Gui, 4:Add, Text, x15 y%ypos% w155, Max HP
Gui, 4:Add, Text, x15 y%ypos% w155, Max HP
Gui, 4:Add, Edit, Disabled vMaxHPvar x140 y%ypos% w150, Not In Game or Broken
Gui, 4:Add, Edit, Disabled vMaxHPvar x140 y%ypos% w150, Not In Game or Broken
ypos += 25
ypos += 25
Gui, 4:Add, Text, x15 y%ypos% w155, Current HP
Gui, 4:Add, Text, x15 y%ypos% w155, Current HP
Gui, 4:Add, Edit, Disabled vCurrHPvar x140 y%ypos% w150, Not In Game or Broken
Gui, 4:Add, Edit, Disabled vCurrHPvar x140 y%ypos% w150, Not In Game or Broken
ypos += 25
ypos += 25
Gui, 4:Add, Text, x15 y%ypos% w155, Reserved HP Flat
Gui, 4:Add, Text, x15 y%ypos% w155, Reserved HP Flat
Gui, 4:Add, Edit, Disabled vReservedHPFlatvar x140 y%ypos% w150, Not In Game or Broken
Gui, 4:Add, Edit, Disabled vReservedHPFlatvar x140 y%ypos% w150, Not In Game or Broken
ypos += 25
ypos += 25
Gui, 4:Add, Text, x15 y%ypos% w155, Reserved HP Percent
Gui, 4:Add, Text, x15 y%ypos% w155, Reserved HP Percent
Gui, 4:Add, Edit, Disabled vReservedHPPercentvar x140 y%ypos% w150, Not In Game or Broken
Gui, 4:Add, Edit, Disabled vReservedHPPercentvar x140 y%ypos% w150, Not In Game or Broken
ypos += 25
ypos += 25
Gui, 4:Add, Text, x15 y%ypos% w155, Max Mana
Gui, 4:Add, Text, x15 y%ypos% w155, Max Mana
Gui, 4:Add, Edit, Disabled vMaxManavar x140 y%ypos% w150, Not In Game or Broken
Gui, 4:Add, Edit, Disabled vMaxManavar x140 y%ypos% w150, Not In Game or Broken
ypos += 25
ypos += 25
Gui, 4:Add, Text, x15 y%ypos% w155, Current Mana
Gui, 4:Add, Text, x15 y%ypos% w155, Current Mana
Gui, 4:Add, Edit, Disabled vCurrManavar x140 y%ypos% w150, Not In Game or Broken
Gui, 4:Add, Edit, Disabled vCurrManavar x140 y%ypos% w150, Not In Game or Broken
ypos +
ypos +