I have a question for the auto-login. Is it still relative? What would be have to be added so that, it allows you to type in the Authentication for you. This kinda seems more complex. I wanted to make a bot like Dizzy's, because clearly it is more stable.
However since I am a complete noob to scripting or programming ima just take his stuff and do a double check on everything, then just add some tweaks.
$xTop = 30; i declare them Are these coordinated standard for a certain resolution?
$yTop = 73 Or would I have to find a similar set for windowed mode?
$xBot = 1002
$yBot = 692
$mobGreen = "0xC0BE40"; i also declare the mob color
Sleep(6000) Also If i wanted to make it find 2 sets of colors instead of just one
while 1 would i just add this sequence again, with a different color search
$coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);i search for the green mobs
$n = @error
If NOT @error Then;if the mob is found
while $n = 0;while it is still in the screen
$x = Random($coord[0], $coord[0]+40, 1);we randomize coordinates so we won't miss the mob
;since mobs have different shape and sizes
$y = Random($coord[1], $coord[1]+40, 1)
MouseClick("right", $x, $y, 2, 0); i click at the randomized coordinates *Question Umm why is it "right" and not "left"?
$mm = PixelGetColor ( 378 , 12 ); i get the pixel color of that mob HP LIMIT
$mob = Hex($mm, 6);since the pixel i got is hex and PixelGetcolor function returns a decimal value i convert it
If $mob = "7B0000" Then; i compare the converted value i got from PixelGetColor in that point with the have i collected using AWI in the same point
ExitLoop; if it's a match (that means that the mob was selected)
;it will exit the loop and continue
EndIf
$coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);w e repeat the same pixel search
; the ideea is that the program will try to click the mob untill he is selected
$n = @error
wend
;in this moment we have the mob selected
If $mob = "7B0000" Then ; but we check it anyway
while $mob = "7B0000" ; so as long as the mob is selected
Send("{F4}"); we just send the skills from F4 to F1
Send("{F3}"); chaotic i know but since we use speed hack
Send("{F2}");adding waiting times will just be a waste of time
Send("{F1}")
$mm = PixelGetColor ( 378 , 12 );we once again look for the mob's HP so we can complete the while loop
$mob = Hex($mm, 6);this means that the keys will be pressed untill the mob is dead
wend
Send("{Space}"); after the mob is dead we collect the items
Sleep(200)
Send("{Space}")
Sleep(200)
Send("{Space}")
Sleep(200)
EndIf
;now remember the "IF NOT @error Then" from the start?
;what if there is no mob in the screen?
;what then?
Else;if no mob is found
Send("{Right 7}") ;rotate the camera to look in other directions
Endif
Wend
Sry if these questions are a bit noobish, i understand most of what this says. the details gets me lol.
However since I am a complete noob to scripting or programming ima just take his stuff and do a double check on everything, then just add some tweaks.
$xTop = 30; i declare them Are these coordinated standard for a certain resolution?
$yTop = 73 Or would I have to find a similar set for windowed mode?
$xBot = 1002
$yBot = 692
$mobGreen = "0xC0BE40"; i also declare the mob color
Sleep(6000) Also If i wanted to make it find 2 sets of colors instead of just one
while 1 would i just add this sequence again, with a different color search
$coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);i search for the green mobs
$n = @error
If NOT @error Then;if the mob is found
while $n = 0;while it is still in the screen
$x = Random($coord[0], $coord[0]+40, 1);we randomize coordinates so we won't miss the mob
;since mobs have different shape and sizes
$y = Random($coord[1], $coord[1]+40, 1)
MouseClick("right", $x, $y, 2, 0); i click at the randomized coordinates *Question Umm why is it "right" and not "left"?
$mm = PixelGetColor ( 378 , 12 ); i get the pixel color of that mob HP LIMIT
$mob = Hex($mm, 6);since the pixel i got is hex and PixelGetcolor function returns a decimal value i convert it
If $mob = "7B0000" Then; i compare the converted value i got from PixelGetColor in that point with the have i collected using AWI in the same point
ExitLoop; if it's a match (that means that the mob was selected)
;it will exit the loop and continue
EndIf
$coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);w e repeat the same pixel search
; the ideea is that the program will try to click the mob untill he is selected
$n = @error
wend
;in this moment we have the mob selected
If $mob = "7B0000" Then ; but we check it anyway
while $mob = "7B0000" ; so as long as the mob is selected
Send("{F4}"); we just send the skills from F4 to F1
Send("{F3}"); chaotic i know but since we use speed hack
Send("{F2}");adding waiting times will just be a waste of time
Send("{F1}")
$mm = PixelGetColor ( 378 , 12 );we once again look for the mob's HP so we can complete the while loop
$mob = Hex($mm, 6);this means that the keys will be pressed untill the mob is dead
wend
Send("{Space}"); after the mob is dead we collect the items
Sleep(200)
Send("{Space}")
Sleep(200)
Send("{Space}")
Sleep(200)
EndIf
;now remember the "IF NOT @error Then" from the start?
;what if there is no mob in the screen?
;what then?
Else;if no mob is found
Send("{Right 7}") ;rotate the camera to look in other directions
Endif
Wend
Sry if these questions are a bit noobish, i understand most of what this says. the details gets me lol.