Code:
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
Gui +AlwaysOnTop
Gui Add, Button, x96 y80 w80 h40 gButtonReloadScript, Reload Script
Gui Add, Button, x20 y20 w100 h30 gFirstAccount, Singular Account
Gui Add, Button, x150 y20 w100 h30 gSecondAccount, Multiple Accounts
Gui, Show, w272 h125, AFK CENTRAL
Return
Gui Add, Button, x200 y100 w106 h23 gFirstAccount, Singular Account
Gui Add, Button, x300 y100 w106 h23 gSecondAccount, Multiple Accounts
Gui Add, Button, x248 y120 w106 h23 gButtonReloadScript, Reload Tool
Gui, Show, w615 h225, AFK Central
Return
FirstAccount:
Gui, New, +AlwaysOnTop
Gui Add, GroupBox, x16 y40 w181 h122, Boomeranger
Gui Add, GroupBox, x224 y40 w181 h122, Dracolyte
Gui Add, Button, x155 y176 w111 h33 gButtonStopActionsOneAcc, Stop Attacking
Gui Add, Button, x456 y96 w110 h37 gButtonRenameTrove1, Rename Trove
Gui Add, Button, x24 y72 w163 h23 gButtonStartAttackingWithPickUpBR, Attack /w Looting
Gui Add, Button, x232 y72 w163 h23 gButtonStartAttackingWithPickUpDraco, Attack /w Looting
Gui Add, Button, x24 y120 w163 h23 gButtonStartAttackingWithoutPickUpBR, Attack no Looting
Gui Add, Button, x232 y120 w163 h23 gButtonStartAttackingWithoutPickUpDraco, Attack no Looting
Gui, Show, w615 h225, Singular Account
Return
ButtonStartAttackingWithPickUpBR:
startedPickup := true
while(startedPickup){
ControlSend,,{m down}, Account1AFKCentral
ControlSend,,{e down}, Account1AFKCentral
sleep, 5000
ControlSend,,{e up}, Account1AFKCentral
ControlSend,,{m up}, Account1AFKCentral
ControlSend,,{o down}, Account1AFKCentral
sleep, 500
ControlSend,,{o up}, Account1AFKCentral
ControlSend,,{2 down}, Account1AFKCentral
sleep, 200
ControlSend,,{2 up}, Account1AFKCentral
sleep, 100
}
Return
ButtonStartAttackingWithoutPickUpBR:
started := true
while(started){
ControlSend,,{m down}, Account1AFKCentral
sleep, 5000
ControlSend,,{m up}, Account1AFKCentral
ControlSend,,{o down}, Account1AFKCentral
sleep, 500
ControlSend,,{o up}, Account1AFKCentral
ControlSend,,{2 down}, Account1AFKCentral
sleep, 200
ControlSend,,{2 up}, Account1AFKCentral
sleep, 100
}
Return
ButtonStartAttackingWithPickUpDraco:
startedPickup := true
while(startedPickup){
ControlSend,, {m down}, Account1AFKCentral
ControlSend,, {1 down}, Account1AFKCentral
ControlSend,, {e down}, Account1AFKCentral
Sleep, 100
ControlSend,, {1 up}, Account1AFKCentral
Sleep, 700
ControlSend,, {2 down}, Account1AFKCentral
ControlSend,, {e up}, Account1AFKCentral
Sleep, 100
ControlSend,, {2 up}, Account1AFKCentral
ControlSend,, {m up}, Account1AFKCentral
}
Return
ButtonStartAttackingWithoutPickUpDraco:
started := true
while(started){
ControlSend,, {m down}, Account1AFKCentral
ControlSend,, {1 down}, Account1AFKCentral
Sleep, 100
ControlSend,, {1 up}, Account1AFKCentral
Sleep, 700
ControlSend,, {2 down}, Account1AFKCentral
Sleep, 100
ControlSend,, {2 up}, Account1AFKCentral
ControlSend,, {m up}, Account1AFKCentral
}
Return
ButtonStopActionsOneAcc:
started := false
startedPickup := false
startedJump := false
Return
ButtonRenameTrove1:
If (WinExist("Trove") && !WinExist("Account1AFKCentral")){
WinActivate, Trove
WinSetTitle, Trove, , %Title%Account1AFKCentral
Sleep, 5000
}
Return
SecondAccount:
Gui, New, +AlwaysOnTop
Gui Add, GroupBox, x16 y40 w181 h122, Boomeranger
Gui Add, GroupBox, x224 y40 w181 h122, Dracolyte
Gui Add, Button, x155 y176 w111 h33 gButtonStopActionsAcc2, Stop Attacking
Gui Add, Button, x456 y96 w110 h37 gButtonRenameTrove2, Rename Trove
Gui Add, Button, x24 y72 w163 h23 gButtonStartAttackingWithPickUpBR2, Attack /w Looting
Gui Add, Button, x232 y72 w163 h23 gButtonStartAttackingWithPickUpDraco2, Attack /w Looting
Gui Add, Button, x24 y120 w163 h23 gButtonStartAttackingWithoutPickUpBR2, Attack no Looting
Gui Add, Button, x232 y120 w163 h23 gButtonStartAttackingWithoutPickUpDraco2, Attack no Looting
Gui Tab
Gui, Show, w615 h225, Multiple Accounts
return
ButtonStartAttackingWithPickUpBR2:
started := true
while (started) {
Loop, 8 {
ControlSend,, {m down}, MultipleAFKCentral%A_Index%
ControlSend,, {e down}, MultipleAFKCentral%A_Index%
}
sleep 5000
Loop, 8 {
ControlSend,, {e up}, MultipleAFKCentral%A_Index%
ControlSend,, {m up}, MultipleAFKCentral%A_Index%
ControlSend,, {o down}, MultipleAFKCentral%A_Index%
}
sleep 500
Loop, 8 {
ControlSend,, {o up}, MultipleAFKCentral%A_Index%
ControlSend,, {2 down}, MultipleAFKCentral%A_Index%
ControlSend,, {2 up}, MultipleAFKCentral%A_Index%
}
sleep 100
}
Return
ButtonStartAttackingWithoutPickUpBR2:
started := true
while (started) {
Loop, 8 {
ControlSend,, {m down}, MultipleAFKCentral%A_Index%
}
sleep 5000
Loop, 8 {
ControlSend,, {m up}, MultipleAFKCentral%A_Index%
ControlSend,, {o down}, MultipleAFKCentral%A_Index%
}
sleep 500
Loop, 8 {
ControlSend,, {o up}, MultipleAFKCentral%A_Index%
ControlSend,, {2 down}, MultipleAFKCentral%A_Index%
ControlSend,, {2 up}, MultipleAFKCentral%A_Index%
}
sleep 100
}
Return
ButtonStartAttackingWithPickUpDraco2:
started := true
while (started) {
Loop, 8 {
ControlSend,, {1 down}, MultipleAFKCentral%A_Index%
ControlSend,, {1 down}, MultipleAFKCentral%A_Index%
ControlSend,, {e down}, MultipleAFKCentral%A_Index%
}
sleep 100
Loop, 8 {
ControlSend,, {1 up}, MultipleAFKCentral%A_Index%
ControlSend,, {1 up}, MultipleAFKCentral%A_Index%
ControlSend,, {2 down}, MultipleAFKCentral%A_Index%
}
sleep 700
Loop, 8 {
ControlSend,, {e up}, MultipleAFKCentral%A_Index%
ControlSend,, {2 up}, MultipleAFKCentral%A_Index%
}
sleep 100
}
Return
ButtonStartAttackingWithoutPickUpDraco2:
started := true
while (started) {
Loop, 8 {
ControlSend,, {1 down}, MultipleAFKCentral%A_Index%
ControlSend,, {1 down}, MultipleAFKCentral%A_Index%
}
sleep 100
Loop, 8 {
ControlSend,, {1 up}, MultipleAFKCentral%A_Index%
ControlSend,, {1 up}, MultipleAFKCentral%A_Index%
ControlSend,, {2 down}, MultipleAFKCentral%A_Index%
}
sleep 700
Loop, 8 {
ControlSend,, {2 up}, MultipleAFKCentral%A_Index%
}
sleep 100
}
Return
ButtonStopActionsAcc2:
started := false
startedPickup := false
startedJump := false
Return
ButtonRenameTrove2:
Loop, 8 {
if WinExist("Trove") && !WinExist("MultipleAFKCentral" . A_Index) {
WinActivate, Trove
WinSetTitle, Trove, , MultipleAFKCentral%A_Index%
sleep 1500
}
}
Return
ButtonReloadScript:
{
Reload
IniRead, LoadText, %A_ScriptDir%/%IniFile%, Main, Text
}
global started := false
return
GuiClose:
ExitApp
return