hello, i would like to create a betting bot, but unfortunately i can't manage that all the time the packets are intercepted and every 5,5sec the item is betted. if i include a sleep(5500) the packets are only retrieved every 5,5sec. How can I get the packets to be retrieved all the time and bet every 5.5 seconds.
I used consolewrite in the code only to check if the packets are fetched every 5,5sec or all the time.
It builds on the code from the autoit example
Here my crap code :D
HTML Code:
While True
Bet()
EQCheck()
PacketLogger_Handle($Socket, ProcessPackets)
WEnd
Func ProcessPackets($Type, $PacketSplitted, $FullPacket)
$e_info = ""
ConsoleWrite($PacketSplitted[0] & [MENTION=3576271]CRLF[/MENTION]@
If $PacketSplitted[0] = "e_info" Then
$e_info = $FullPacket
ConsoleWrite($FullPacket & [MENTION=3576271]CRLF[/MENTION]@
EndIf
;If StringInStr($e_info, "1.16") or StringInStr($e_info, "1.15") Then ;Crit dmg or crit chance
;EndIf
EndFunc
Func Bet()
;PacketLogger_SendPacket($Socket,"up_gr 7 0 0") ;bet Item
Sleep(5500)
EndFunc
Func EQCheck()
PacketLogger_SendPacket($Socket,"eqinfo 1 0")
EndFunc