; -------------------------------------------------- ; Function: _FindMonster() ; Arguments: None ; Returns: Array with click coordinates to select a monster ; $array[0] - Xcoord $array[1] - Ycoord ; Author: djingis1 ; Description: Finds a monster and returns coords to click ; Note: SRO RESOLUTION 800*600 REQUIRED ; --------------------------------------------------
Func _FindMonster() Dim $iCoord While 1 $iCoord = PixelSearch(250, 225, 374, 274, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(375, 225, 474, 274, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(415, 275, 474, 359, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(375, 360, 474, 399, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(250, 225, 374, 399, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(250, 175, 474, 224, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(475, 175, 574, 399, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(0, 400, 424, 474, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(0, 175, 259, 399, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop $iCoord = PixelSearch(0, 100, 664, 174, 0xFF00FF, 25, 1) If @error <> 1 Then ExitLoop ; The sleep is there to prevent the PixelSearches ; from lagging the script a lot if a monster is not found ; in the first loop Sleep(250) WEnd $iCoord[0] = $iCoord[0] + 4 $iCoord[1] = $iCoord[1] + 4 Return $iCoord EndFunc ;==>_FindMonster
Func Attack() While 1 If WinActive("SRO_Client") And PixelGetColor(77, 47) = 3947324 Then;IF ACTIVE AND INGAME ; USE SKILL 1 (mine is sword attack, strike and smash) UNLESS MONSTER IS CLOSE TO DYING if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(442, 45) = 16762566) Then Send("2") Sleep(1000) EndIf ; USE SKILL 7 (mine is combo sword attack (5hits)) UNLESS MONSTER IS ALMOST DOWN if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(475, 45) = 16743291) Then Send("1") Sleep(1000) EndIf ; USE IMBUE SKILL (mine is skill 2) UNLESS MONSTER IS ALMOST DOWN if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(475, 45) = 16743291) Then Send("3") Sleep(1000) EndIf ; USE SKILL 5 (mine is sword attack, stab and smash)UNLESS MONSTER IS CLOSE TO DYING if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(442, 45) = 16762566) Then Send("4") Sleep(1000) EndIf ;THIS WILL TRY AND PICK UP ANYTHING EVEN IF YOU WALK PASSED SOME GOLD Send("g"); CHECK WICH KEY TO USE IN SILKROAD OPTIONS !! Sleep(1000); DEFAULT GRABKEY IN SILKROAD IS "G" EndIf WEnd EndFunc ;==>attack
Func Pause() $Paused = Not $Paused While $Paused Sleep(100) WEnd EndFunc ;==>Pause
--------------------
This is a member submitted guide. Please reply to varify if it works or does not work.
Group: Members
Posts: 1
Joined: 15-November 07
Member No.: 487,429
i dled it all and stuff, but when i try to run the script it says: "ACTIVE AND INGAME ACTIVE AND INGAME^ ERROR
Error: Missing separator character after keyword."
i dunno anything about scripting thats why i am so helpless, but i checked if there was anything in the "active and ingame" line compared to other lines, which seemingly worked (maybe?), if there were i would have copied and pasted, mebbe possibly fixed.. but anyways plz help
This post has been edited by floodindahood: Nov 15 2007, 11:45 AM
Group: Members
Posts: 1
Joined: 12-December 07
Member No.: 510,968
ok just put the code in then what? and is pause the only botton to start and stop the bot pls tell im confused also do you and the "notes" in the code ty for the help
This post has been edited by Kanez: Dec 12 2007, 12:43 AM
Group: Members
Posts: 1
Joined: 9-January 08
Member No.: 535,190
I've found something LEGAL (everybody : "wow!") who can do auto-fight. But you have to know it's a bot, that dont search monsters and dont clik on it :/
You have to be behind your monitor...ok...but all you have to do is click on monsters yourself.
No longer break your keyboard by typing frantically keys 1 2 3 4 5 and 6.
So i'll explain you : download (search on google) he program Quick Macro (version 6)
You i'll be able to do some macros like on who Who wrote for you in loop "1 2 3 4 5 6 1 2 3 4 5 ...."
And you can do the same thing with your buff!! "<F2> 1 <wait for 2.5seconds> 2 <wait for 2.5seconds> 3 <wait for 2.5seconds> 4 <wait for 2.5seconds> 5 ...."
Group: Members
Posts: 1,096
Joined: 23-April 07
From: Isle De Muerte
Member No.: 264,159
A Message To All, Please If Your Having Difficulty Setting This Up And/Or Unsure How To Work It Then Either Post Here Or In The Help Section. The Report Topic To Moderator Is For Questionable Posts, E.g. Swearing Etc.. Not For Asking How To!