#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=d:\Рабочий стол\БОТ!!!\формы ботов\рейд v1.5.kxf
$sINI = @ScriptDir & '\reid-config.ini'
$sInput1 = IniRead($sINI, "Config", "ID", "")
$sInput2 = IniRead($sINI, "Config", "Auth", "")
$reidi = GUICreate("Рейды v1.6", 463, 503, 164, 159)
GUISetBkColor(0xE3E3E3)
$Group1 = GUICtrlCreateGroup("Авторизация", 8, 0, 121, 105)
$Label1 = GUICtrlCreateLabel("Введите свой ID", 16, 16, 87, 17)
$IDinput = GUICtrlCreateInput($sInput1, 16, 32, 105, 21)
$Label2 = GUICtrlCreateLabel("Введите свой Auth", 16, 56, 98, 17)
$Authinput = GUICtrlCreateInput($sInput2, 16, 72, 105, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Боссы", 8, 144, 449, 313)
$Label3 = GUICtrlCreateLabel("Выберите босса", 16, 160, 87, 17)
$Combo1 = GUICtrlCreateCombo("Кирпич", 112, 160, 129, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Сизый|Махно|Лютый|Шайба")
$Group3 = GUICtrlCreateGroup("Одиночный бой", 16, 304, 225, 81)
$onefightbtn = GUICtrlCreateButton("Начать бой", 24, 336, 73, 25)
$Label4 = GUICtrlCreateLabel("Чем ударить", 120, 312, 69, 17)
$Combo2 = GUICtrlCreateCombo("Пырнуть финкой", 104, 328, 129, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Шмальнуть из самопала|Подкинуть яда")
$gunusebtn = GUICtrlCreateButton("Ударить", 104, 352, 129, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("Массовая атака", 16, 384, 225, 65)
$Label5 = GUICtrlCreateLabel("Задержка", 24, 400, 55, 17)
$zaderreid = GUICtrlCreateInput("мин.", 24, 416, 65, 21)
$Label6 = GUICtrlCreateLabel("Число атак", 96, 400, 62, 17)
$kolvoi = GUICtrlCreateInput("2", 96, 416, 73, 21)
$massfightbtn = GUICtrlCreateButton("Начать", 168, 416, 65, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group6 = GUICtrlCreateGroup("Автоматический бой", 16, 184, 225, 121)
$Label7 = GUICtrlCreateLabel("Введите время", 24, 200, 81, 17)
$voprmsg = GUICtrlCreateButton("?", 104, 200, 17, 17)
$Label8 = GUICtrlCreateLabel("Кирпич", 24, 216, 40, 17)
$kirpich = GUICtrlCreateInput("", 72, 216, 49, 21)
$Label14 = GUICtrlCreateLabel("Сизый", 24, 240, 37, 17)
$sizii = GUICtrlCreateInput("", 72, 240, 49, 21)
$Label15 = GUICtrlCreateLabel("Махно", 128, 216, 36, 17)
$mahno = GUICtrlCreateInput("", 176, 216, 49, 21)
$Label16 = GUICtrlCreateLabel("Лютый", 128, 240, 39, 17)
$lutii = GUICtrlCreateInput("", 176, 240, 49, 21)
$Label17 = GUICtrlCreateLabel("Атака", 24, 272, 34, 17)
$bossid = GUICtrlCreateInput("", 64, 272, 57, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY))
$startlogicbtn = GUICtrlCreateButton("Начать", 128, 272, 65, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group7 = GUICtrlCreateGroup("Атака с фейков", 248, 160, 201, 289)
$fakelist = GUICtrlCreateEdit("", 256, 176, 185, 201)
$fakefile = GUICtrlCreateButton("Из файла", 288, 384, 113, 25)
$startfakebattlebtn = GUICtrlCreateButton("Начать", 288, 416, 113, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label9 = GUICtrlCreateLabel("by andreitrane (maniakk)", 120, 464, 222, 32)
GUICtrlSetFont(-1, 16, 400, 0, "Matura MT Script Capitals")
GUICtrlSetColor(-1, 0x000000)
$savebtn = GUICtrlCreateButton("save", 24, 112, 81, 17)
$Group5 = GUICtrlCreateGroup("Информация", 136, 0, 321, 145)
$Label10 = GUICtrlCreateLabel("Жизнь:", 144, 16, 42, 17)
$hpboss = GUICtrlCreateLabel("", 192, 16, 38, 17)
$Label11 = GUICtrlCreateLabel("Финок:", 144, 32, 42, 17)
$gunfin = GUICtrlCreateLabel("", 192, 32, 33, 17)
$Label12 = GUICtrlCreateLabel("Самопалов:", 144, 48, 64, 17)
$gunsam = GUICtrlCreateLabel("", 216, 48, 41, 17)
$Label13 = GUICtrlCreateLabel("Ядов:", 144, 64, 33, 17)
$gunjad = GUICtrlCreateLabel("", 176, 64, 36, 17)
$newinfbtn = GUICtrlCreateButton("Обновить", 144, 80, 89, 17)
$logboss = GUICtrlCreateEdit("", 280, 8, 169, 129, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
HotKeySet("{F9}", "_Pause")
Global $Paused
#EndRegion ### END Koda GUI section ###
$oIEErrorHandler = ObjEvent("AutoIt.Error","ComErrFunc")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $savebtn ;сохраняем данные
$sINI = @ScriptDir & '\reid-config.ini'
$IDsave = IniWrite($sINI, "Config", "ID", GUICtrlRead(StringStripWS($IDinput, 3)))
$Authsave = IniWrite($sINI, "Config", "Auth", GUICtrlRead(StringStripWS($Authinput, 3)))
GUICtrlSetData($logboss, "данные сохранены"& @CRLF, @CRLF)
Case $onefightbtn ; одиночный бой
_onefight()
Case $gunusebtn ;использование оружия
_gunuse()
Case $massfightbtn ; массовая атака
_massfight()
Case $newinfbtn ; обновление инфы
_newinf()
Case $voprmsg
MsgBox(0, "Автоматический бой", "Автоматический бой - это прохождение по всем боссам, пока не кончатся ключи. Чтобы начать, надо обязательно ввести время, за которое вы бьете каждого босса. Время вводить в минутах.")
Case $startlogicbtn ; автоматический бой
_kirpich()
case $fakefile ;фейки из файла
_fakefile()
case $startfakebattlebtn ;атака с фейков
$fakesedit = guictrlread($fakelist)
if $fakesedit = "" then $fakesedit = _fakefile()
_startfakebattle()
EndSwitch
WEnd
Func _Pause()
$Paused = Not $Paused
While $Paused
Sleep(100)
WEnd
EndFunc
Func _newinf()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://109.234.155.198/prison/universal.php?getBoss"
$PostData = "sig=c10d5872fc1d0c8f7d6441e5ac9e1b8b&key="& $Auth &"&user="& $ID &"&method=getBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
$Response = $oHTTP.ResponseText
$infifresponseerr = $oIEErrorHandler
$slife = StringRegExpReplace($Response, '(?s).*?<h_now>(\d+)</h_now>?.*', '\1')
$sfin = StringRegExpReplace($Response, '(?s).*?<id>4</id>.*?(?s).*?<num>(\d+)</num>?.*', '\1')
$ssam = StringRegExpReplace($Response, '(?s).*?<id>5</id>.*?(?s).*?<num>(\d+)</num>?.*', '\1')
$sjad = StringRegExpReplace($Response, '(?s).*?<id>6</id>.*?(?s).*?<num>(\d+)</num>?.*', '\1')
GUICtrlSetData($hpboss, $slife)
GUICtrlSetData($gunfin, $sfin)
GUICtrlSetData($gunsam, $ssam)
GUICtrlSetData($gunjad, $sjad)
EndFunc
Func _onefight() ; одиночный бой
$boss = GUICtrlRead($Combo1)
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
if $boss = "Кирпич" Then $boss = 1
if $boss = "Сизый" Then $boss = 2
if $boss = "Махно" Then $boss = 3
if $boss = "Лютый" Then $boss = 4
if $boss = "Шайба" Then $boss = 5
; к списку боссов (окно боя)
$URL = "http://109.234.155.198/prison/universal.php?getBoss"
$PostData = "sig=c10d5872fc1d0c8f7d6441e5ac9e1b8b&user="& $ID &"&key="& $Auth &"&method=getBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
Sleep(1000)
;начало боя
$URL = "http://188.93.20.139/prison/universal.php?startBattle"
$PostData = "boss%5Fid="& $boss &"&sig=92947deba2fe5e118c41f3436bf23906&key="& $Auth &"&user="& $ID &"&method=startBattle"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000,100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
Sleep(1000)
GUICtrlSetData($logboss, "вы напали на босса ^_^"& @CRLF, @CRLF) ; запись в лог
; удар босса
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "boss%5Fid="& $boss &"&spell%5Fid=3&sig=646d316a32bd2943ff57c0e88fdf2243&key="& $Auth &"&user="& $ID &"&method=hitBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
Sleep(1000)
_newinf()
EndFunc
Func _gunuse()
;использование оружия
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$gun = GUICtrlRead($Combo2)
$boss = GUICtrlRead($Combo1)
if $gun = "Пырнуть финкой" Then $gun = 4
if $gun = "Шмальнуть из самопала" Then $gun = 5
if $gun = "Подкинуть яда" Then $gun = 6
if $boss = "Кирпич" Then $boss = 1
if $boss = "Сизый" Then $boss = 2
if $boss = "Махно" Then $boss = 3
if $boss = "Лютый" Then $boss = 4
if $boss = "Шайба" Then $boss = 5
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "boss%5Fid="& $boss &"&spell%5Fid="& $gun &"&sig=646d316a32bd2943ff57c0e88fdf2243&key="& $Auth &"&user="& $ID &"&method=hitBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
Sleep(1000)
_newinf()
GUICtrlSetData($logboss, "вы ударили босса"& @CRLF, @CRLF) ;запись в лог
EndFunc
Func _massfight() ;массова атака
$boss = GUICtrlRead($Combo1)
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$kolvo = GUICtrlRead($kolvoi)
if $boss = "Кирпич" Then $boss = 1
if $boss = "Сизый" Then $boss = 2
if $boss = "Махно" Then $boss = 3
if $boss = "Лютый" Then $boss = 4
if $boss = "Шайба" Then $boss = 5
For $i = 1 to $kolvo Step 1
; к списку боссов (окно атаки)
$URL = "http://109.234.155.198/prison/universal.php?getBoss"
$PostData = "sig=c10d5872fc1d0c8f7d6441e5ac9e1b8b&user="& $ID &"&key="& $Auth &"&method=getBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
Sleep(400)
; начало боя
$URL = "http://188.93.20.139/prison/universal.php?startBattle"
$PostData = "boss%5Fid="& $boss &"&sig=92947deba2fe5e118c41f3436bf23906&key="& $Auth &"&user="& $ID &"&method=startBattle"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
GUICtrlSetData($logboss, "бой номер "& $i &" из "& $kolvo &""& @CRLF, @CRLF) ; запись в лог
Sleep(400)
; ударяем босса
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "boss%5Fid="& $boss &"&spell%5Fid=3&sig=646d316a32bd2943ff57c0e88fdf2243&key="& $Auth &"&user="& $ID &"&method=hitBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
$iSleepTime = GUICtrlRead($zaderreid)
_newinf()
Sleep($iSleepTime*60000)
Next
GUICtrlSetData($logboss, "рейд завершен"& @CRLF, @CRLF) ; запись в лог
MsgBox(0, "Рейды v1.2", "Рейд завершен")
EndFunc
Func _kirpich()
_bossinfo()
$kirpstartbattle = _kirpstart()
if $kirpstartbattle = 0 then GUICtrlSetData($bossid, "Кирпич")
if $kirpstartbattle = 6 then GUICtrlSetData($bossid, " ")
$kirpattack = GUICtrlRead($bossid)
if $kirpattack = "Кирпич" Then $kirpattack = _kirpattack()
if $kirpattack = " " Then $kirpattack = _sizii()
EndFunc
Func _sizii()
_bossinfo()
$sizstartbattle = _sizstart()
if $sizstartbattle = 0 Then GUICtrlSetData($bossid, "Сизый")
if $sizstartbattle = 2 Then GUICtrlSetData($bossid, " ")
$sizattack = GUICtrlRead($bossid)
if $sizattack = "Сизый" Then $sizattack = _sizattack()
if $sizattack = " " Then $sizattack = _mahno()
EndFunc
Func _mahno()
_bossinfo()
$mahstartbattle = _mahstart()
if $mahstartbattle = 0 Then GUICtrlSetData($bossid, "Махно")
if $mahstartbattle = 2 then GUICtrlSetData($bossid, " ")
$mahattack = GUICtrlRead($bossid)
if $mahattack = "Махно" then $mahattack = _mahattack()
if $mahattack = " " then $mahattack = _lutii()
EndFunc
Func _lutii()
_bossinfo()
$lutstartbattle = _lutstart()
if $lutstartbattle = 0 Then GUICtrlSetData($bossid, "Лютый")
if $lutstartbattle = 2 then GUICtrlSetData($bossid, " ")
$lutattack = GUICtrlRead($bossid)
if $lutattack = "Лютый" then _lutattack()
if $lutattack = " " then GUICtrlSetData($logboss, "Все ключи кончились"& @CRLF, @CRLF &" Рейд завершен"& @CRLF, @CRLF)
EndFunc
func _bossinfo()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://109.234.155.198/prison/universal.php?getBoss"
$PostData = "sig=c10d5872fc1d0c8f7d6441e5ac9e1b8b&user="& $ID &"&key="& $Auth &"&method=getBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
Sleep(300)
EndFunc
Func _kirpstart()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://188.93.20.139/prison/universal.php?startBattle"
$PostData = "boss%5Fid=1&sig=92947deba2fe5e118c41f3436bf23906&key="& $Auth &"&user="& $ID &"&method=startBattle"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
$Response = $oHTTP.ResponseText
$kirpifresperr = $oIEErrorHandler
$sMessage = StringRegExpReplace($Response, '(?s).*?<code>(\d+)</code>?.*', '\1')
If Not $sMessage Then Return -1
Return $sMessage
sleep(200)
EndFunc
Func _kirpattack()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "boss%5Fid=1&spell%5Fid=3&sig=646d316a32bd2943ff57c0e88fdf2243&key="& $Auth &"&user="& $ID &"&method=hitBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
GUICtrlSetData($logboss, "Вы напали на Кирпича"& @CRLF, @CRLF)
_newinf()
$iSleepTime = GUICtrlRead($kirpich)
Sleep($iSleepTime*60000)
GUICtrlSetData($logboss, "Вы убили Кирпича"& @CRLF, @CRLF)
_kirpich()
EndFunc
Func _sizstart()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://188.93.20.139/prison/universal.php?startBattle"
$PostData = "boss%5Fid=2&sig=92947deba2fe5e118c41f3436bf23906&key="& $Auth &"&user="& $ID &"&method=startBattle"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
$Response = $oHTTP.ResponseText
$sizifresperr = $oIEErrorHandler
$sMessage = StringRegExpReplace($Response, '(?s).*?<code>(\d+)</code>?.*', '\1')
If Not $sMessage Then Return -1
Return $sMessage
sleep(200)
EndFunc
Func _sizattack()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "boss%5Fid=2&spell%5Fid=3&sig=646d316a32bd2943ff57c0e88fdf2243&key="& $Auth &"&user="& $ID &"&method=hitBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
GUICtrlSetData($logboss, "Вы напали на Сизого"& @CRLF, @CRLF)
_newinf()
$iSleepTime = GUICtrlRead($sizii)
Sleep($iSleepTime*60000)
GUICtrlSetData($logboss, "Вы убили Сизого"& @CRLF, @CRLF)
_sizii()
EndFunc
Func _mahstart()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://188.93.20.139/prison/universal.php?startBattle"
$PostData = "boss%5Fid=3&sig=92947deba2fe5e118c41f3436bf23906&key="& $Auth &"&user="& $ID &"&method=startBattle"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
$Response = $oHTTP.ResponseText
$mahifresperr = $oIEErrorHandler
$sMessage = StringRegExpReplace($Response, '(?s).*?<code>(\d+)</code>?.*', '\1')
If Not $sMessage Then Return -1
Return $sMessage
sleep(200)
EndFunc
Func _mahattack()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "boss%5Fid=3&spell%5Fid=3&sig=646d316a32bd2943ff57c0e88fdf2243&key="& $Auth &"&user="& $ID &"&method=hitBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
GUICtrlSetData($logboss, "Вы напали на Махно"& @CRLF, @CRLF)
_newinf()
$iSleepTime = GUICtrlRead($mahno)
Sleep($iSleepTime*60000)
GUICtrlSetData($logboss, "Вы убили Махно"& @CRLF, @CRLF)
_mahno()
EndFunc
Func _lutstart()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://188.93.20.139/prison/universal.php?startBattle"
$PostData = "boss%5Fid=4&sig=92947deba2fe5e118c41f3436bf23906&key="& $Auth &"&user="& $ID &"&method=startBattle"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
$Response = $oHTTP.ResponseText
$lutifresperr = $oIEErrorHandler
$sMessage = StringRegExpReplace($Response, '(?s).*?<code>(\d+)</code>?.*', '\1')
If Not $sMessage Then Return -1
Return $sMessage
sleep(200)
EndFunc
func _lutattack()
$ID = GUICtrlRead($IDinput)
$Auth = GUICtrlRead($Authinput)
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "boss%5Fid=4&spell%5Fid=3&sig=646d316a32bd2943ff57c0e88fdf2243&key="& $Auth &"&user="& $ID &"&method=hitBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
GUICtrlSetData($logboss, "Вы напали на Лютого"& @CRLF, @CRLF)
_newinf()
$iSleepTime = GUICtrlRead($lutii)
Sleep($iSleepTime*60000)
GUICtrlSetData($logboss, "Вы убили Лютого"& @CRLF, @CRLF)
EndFunc
Func _startfakebattle()
$fakes = GUICtrlRead($fakelist)
$fake = StringSplit(StringStripCR($fakes), @LF)
$ii = 1
$ID = GUICtrlRead($IDinput)
;для оружия
$fakegunsnum = "3,4,5,6"
$fakegunnum = StringSplit($fakegunsnum, ",")
$iGunattack = 1
for $iGunattack = 1 to $fakegunnum[0]
if $fakegunnum[$iGunattack] = 3 then $fakegunat = "в солнышко"
if $fakegunnum[$iGunattack] = 4 then $fakegunat = "удар финкой"
if $fakegunnum[$iGunattack] = 5 then $fakegunat = "из самопалома"
if $fakegunnum[$iGunattack] = 6 then $fakegunat = "атака ядом"
;;;;
for $ii = 1 to $fake[0]-1
$fakeID = StringSplit($fake[$ii], ":")
$URL = "http://188.93.20.139/prison/universal.php?initGame"
$PostData = "sig=fe14ded0a8083f8553baf0ab64d0f840&user="& $fakeID[1] &"&friendslist="& $ID &"&key="& $fakeID[2] &"&refs=127964220&method=initGame"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
sleep(300)
$URL = "http://109.234.155.198/prison/universal.php?getBoss"
$PostData = "sig=c10d5872fc1d0c8f7d6441e5ac9e1b8b&user="& $fakeID[1] &"&key="& $fakeID[2] &"&method=getBoss"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
sleep(300)
$URL = "http://188.93.20.139/prison/universal.php?startBattle"
$PostData = "boss%5Fid=1&sig=2d23b32c383eaf282693d30609186f9b&user="& $fakeID[1] &"&key="& $fakeID[2] &"&method=startBattle"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
sleep(300)
$URL = "http://109.234.155.198/prison/universal.php?hitBoss"
$PostData = "method=hitBoss&spell%5Fid="& $fakegunnum[$iGunattack] &"&key="& $fakeID[2] &"&sig=80d4e36f7204aab106c6b0051269d7e9&user="& $fakeID[1] &"&boss%5Fid=1"
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.setTimeouts(5000, 5000, 10000, 10000, 50000, 50000, 100000, 100000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
Execute('$oHTTP.Send($PostData)')
$oHTTP.WaitForResponse
Execute('$Response = $oHTTP.ResponseText')
;;;;
;;;;;
GUICtrlSetData($logboss, ""&$fakegunat&" с id"& $fakeID[1] &""& @CRLF, @CRLF)
_newinf()
Sleep(300)
Next
next
GUICtrlSetData($logboss, "атака завершена"& @CRLF, @CRLF)
MsgBox(0, "атака с фейков", "все фейки атаковали)) ВНИМАНИЕ!!! повторно эти фейки можно использовать только через 6 часов, т.к. удар в солнышко восстанавливается через 6 часов, будьте внимательны!!")
EndFunc
Func _fakesvopr()
MsgBox(0, "Атака с фейков", "Необходимо ввести список фейков вида id:auth, каждый фейк должен быть записан через пробел")
EndFunc
Func _fakefile()
$text = FileOpenDialog("Указать файл", @WorkingDir & "", "Любой (*.txt)", 1 + 4 )
$Read = FileRead($text)
GUICtrlSetData($fakelist,$Read)
EndFunc
Func ComErrFunc()
If IsObj($oIEErrorHandler) Then
$HexNumber = Hex($oIEErrorHandler.number, 8)
if $HexNumber=00000000 then Return 0
SetError($HexNumber)
Return 1
EndIf
Return 0
EndFunc