Try this StopStart MOD:
Declaration:
Global $StopStart=0
Replace the $nMsg in the button section:
Code:
If $StopStart=1 Then
runBot() ; Or $nMsg=$btnStart
Else
$nMsg = GUIGetMsg()
EndIf
Add this line at the first section after 'While 1' in Func Runbot()
Add this line at the last section before Exitloop (or replace it) in the func attackmain()
Code:
$StopStart=1
$RunState = False
I think these codes will delete existing loops every attack and still maintain your log file unlike the restart bot.