Blue Eye Macro
http://blueeye-macro.com/

Random walk if RGB or mob is not located on screen.
http://blueeye-macro.com/viewtopic.php?f=437&t=30085
Page 1 of 2

Author:  Roan1234321 [ Fri Jul 07, 2017 12:49 pm ]
Post subject:  Random walk if RGB or mob is not located on screen.

Since someone asked for making random walk on RO.

I attached file for random walk you can DL it and check how it goes for you.
You can copy the script the to your main bot by adding new function.
Also added Humanly.pause to give it time to reach the location.

please hit thank you if this helps you.

Attachments:
File comment: Random walk if RGB not located on screen.
ragnarok;random walk.bem [16.58 KiB]
Downloaded 384 times

Author:  Roan1234321 [ Fri Jul 07, 2017 2:07 pm ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

jonelle1990 wrote:
Ill hit thank even i didnt try your script if ever it doesnt work can i pm you sir?


yes you can pm me.

Author:  Roan1234321 [ Fri Jul 07, 2017 3:36 pm ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

jonelle1990 wrote:
Sir how.bout after.killing the.monster the.character.will loot the items do you have sir?


Looting would be hard to make.

Author:  lawscher [ Sat Jul 08, 2017 12:52 am ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

Roan1234321 wrote:
Since someone asked for making random walk on RO.

I attached file for random walk you can DL it and check how it goes for you.
You can copy the script the to your main bot by adding new function.
Also added Humanly.pause to give it time to reach the location.

please hit thank you if this helps you.


YOU ARE A LEGEND ROAN. -trying this out-

Author:  Roan1234321 [ Sat Jul 08, 2017 6:11 am ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

lawscher wrote:

YOU ARE A LEGEND ROAN. -trying this out-


Did it work?

Author:  lawscher [ Sat Jul 08, 2017 8:24 am ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

@roan

The random walk works perfectly, but whenever I pair it with my AutoPots, suddenly everything doesnt work. What do you think is wrong with my code?

RandomWalk+AutoAttack+*Esc = OK
RandomWalk+AutoAttack+Esc+AutoPots = NOT OK

*Esc - one I created to close some popup message boxes


Code:
 begin
     Function.Execute("AutoAttack")
     Function.Execute("RandWalk")
     Function.Execute("AutoPots")
     Function.Execute("Esc")
 end

function("RandWalk")
     begin
          // RBG of mob/loot
          if  Color.Can not be located on screen (RGB)("255", "214", "222", "0")
               begin
                    // RBG of mob/loot
                    if  Color.Can not be located on screen (RGB)("118", "68", "73", "0")
                         begin
                              if  Color.Can not be located on screen (RGB)("107", "140", "120", "0")
                                   begin
                                        // RBG of mob/loot
                                        if  Color.Can not be located on screen (RGB)("212", "163", "124", "0")
                                             begin
                                                  if  Color.Can not be located on screen (RGB)("255", "181", "115", "0")
                                                       begin
                                                            // RBG of mob/loot
                                                            if  Color.Can not be located on screen (RGB)("238", "122", "122", "0")
                                                                 begin
                                                                      // set variables from random X coordinates on your screen example 100 to 1000
                                                                      Variable.Set random number("X", "100", "1100")
                                                                      // set variables from random Y coordinates on your screen example 100 to 1000
                                                                      Variable.Set random number("Y", "100", "620")
                                                                      Mouse.Click at coordinate("{X}", "{Y}", "left")
                                                                      Humanly.Pause("500", "1000")
                                                                 end
                                                       end
                                             end
                                   end
                         end
               end
     end
function

function("AutoAttack")
     begin
          if  Color.Can be located on screen (RGB)("255", "214", "222", "0")
               begin
                    // Color of Marina
                    Mouse.Click at color (RGB)("255", "214", "222", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("118", "68", "73", "0")
               begin
                    // Color of thara
                    Mouse.Click at color (RGB)("118", "68", "73", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("107", "140", "120", "0")
               begin
                    // Color of hydra
                    Mouse.Click at color (RGB)("107", "140", "120", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("212", "163", "124", "0")
               begin
                    // Color of crab
                    Mouse.Click at color (RGB)("212", "163", "124", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("255", "181", "115", "0")
               begin
                    // Color of crab
                    Mouse.Click at color (RGB)("255", "181", "115", "0", "Left")
               end
     end
function

function("AutoPots")
     begin
          if  Color.At coordinate is not (RGB)("156", "181", "239", "142", "79")
               // 76_81dti
               begin loop()
                    Keyboard.Press key("{<f3>}")
                    Macro.Pause("400")
                    if  Color.At coordinate is (RGB)("181", "206", "255", "166", "80")
                         begin
                              Macro.Break from loop("yes")
                         end
               end
     end
function

function("Esc")
//to close all random popup messages
     begin
          if  Color.Pixel pattern can be located on screen("156,181,231,-1,23,255,255,255,0,24,255,255,255,-1,23,255,255,255,-2,20,255,255,255,0,19,255,255,255,0,28,255,255,255,1,0,255,255,255,-248,2,255,255,255,0,-94,255,255,255,-8,-45,132,156,222", "0")
               begin loop()
                    Keyboard.Type text("{<esc>}")
                    if  Color.Pixel pattern can not be located on screen("156,181,231,-1,23,255,255,255,0,24,255,255,255,-1,23,255,255,255,-2,20,255,255,255,0,19,255,255,255,0,28,255,255,255,1,0,255,255,255,-248,2,255,255,255,0,-94,255,255,255,-8,-45,132,156,222", "0")
                         begin
                              Macro.Break from loop("yes")
                         end
               end
          if  Color.Pixel pattern can be located on screen("255,255,255,1,0,132,132,140,1,0,165,165,165,2,0,255,255,255,1,0,165,165,165,1,0,156,156,156,1,0,255,255,255,2,0,156,156,156,1,0,99,107,107,1,0,247,247,247", "0")
               begin loop()
                    Keyboard.Type text("{<esc>}")
                    Keyboard.Insert text("/q")
                    Keyboard.Type text("{<enter>}")
                    Keyboard.Type text("{<esc>}")
                    if  Color.Pixel pattern can not be located on screen("255,255,255,1,0,132,132,140,1,0,165,165,165,2,0,255,255,255,1,0,165,165,165,1,0,156,156,156,1,0,255,255,255,2,0,156,156,156,1,0,99,107,107,1,0,247,247,247", "0")
                         begin
                              Macro.Break from loop("yes")
                         end
               end
          if  Color.Pixel pattern can be located on screen("66,115,206,18,2,0,0,0,13,0,189,206,247,4,0,0,0,0,5,0,255,255,255,4,0,0,0,0,4,0,0,0,0,5,-4,0,0,0", "0")
               begin loop()
                    Mouse.Click at pixel pattern("49,49,49,5,0,49,49,49,4,0,49,49,49,2,-1,49,49,49,4,-2,49,49,49,2,3,49,49,49,5,-2,49,49,49,4,0,49,49,49,2,0,49,49,49", "0", "yes", "Left")
                    if  Color.Pixel pattern can not be located on screen("66,115,206,18,2,0,0,0,13,0,189,206,247,4,0,0,0,0,5,0,255,255,255,4,0,0,0,0,4,0,0,0,0,5,-4,0,0,0", "0")
                         begin
                              Macro.Break from loop("yes")
                         end
               end

     end


Author:  lawscher [ Sat Jul 08, 2017 12:28 pm ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

Roan1234321 wrote:
jonelle1990 wrote:
Sir how.bout after.killing the.monster the.character.will loot the items do you have sir?


Looting would be hard to make.

Actually maybe you can have it as a pixel pattern and ahve a clicking loop on the specific item when it drops. It will make your macro a lot busy tho. You just have to choose what sorta loots you wanna keep on clicking.

Author:  Roan1234321 [ Sat Jul 08, 2017 1:03 pm ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

lawscher wrote:
@roan

The random walk works perfectly, but whenever I pair it with my AutoPots, suddenly everything doesnt work. What do you think is wrong with my code?

RandomWalk+AutoAttack+*Esc = OK
RandomWalk+AutoAttack+Esc+AutoPots = NOT OK

*Esc - one I created to close some popup message boxes


Code:
 begin
     Function.Execute("AutoAttack")
     Function.Execute("RandWalk")
     Function.Execute("AutoPots")
     Function.Execute("Esc")
 end

function("RandWalk")
     begin
          // RBG of mob/loot
          if  Color.Can not be located on screen (RGB)("255", "214", "222", "0")
               begin
                    // RBG of mob/loot
                    if  Color.Can not be located on screen (RGB)("118", "68", "73", "0")
                         begin
                              if  Color.Can not be located on screen (RGB)("107", "140", "120", "0")
                                   begin
                                        // RBG of mob/loot
                                        if  Color.Can not be located on screen (RGB)("212", "163", "124", "0")
                                             begin
                                                  if  Color.Can not be located on screen (RGB)("255", "181", "115", "0")
                                                       begin
                                                            // RBG of mob/loot
                                                            if  Color.Can not be located on screen (RGB)("238", "122", "122", "0")
                                                                 begin
                                                                      // set variables from random X coordinates on your screen example 100 to 1000
                                                                      Variable.Set random number("X", "100", "1100")
                                                                      // set variables from random Y coordinates on your screen example 100 to 1000
                                                                      Variable.Set random number("Y", "100", "620")
                                                                      Mouse.Click at coordinate("{X}", "{Y}", "left")
                                                                      Humanly.Pause("500", "1000")
                                                                 end
                                                       end
                                             end
                                   end
                         end
               end
     end
function

function("AutoAttack")
     begin
          if  Color.Can be located on screen (RGB)("255", "214", "222", "0")
               begin
                    // Color of Marina
                    Mouse.Click at color (RGB)("255", "214", "222", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("118", "68", "73", "0")
               begin
                    // Color of thara
                    Mouse.Click at color (RGB)("118", "68", "73", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("107", "140", "120", "0")
               begin
                    // Color of hydra
                    Mouse.Click at color (RGB)("107", "140", "120", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("212", "163", "124", "0")
               begin
                    // Color of crab
                    Mouse.Click at color (RGB)("212", "163", "124", "0", "Left")
               end
          if  Color.Can be located on screen (RGB)("255", "181", "115", "0")
               begin
                    // Color of crab
                    Mouse.Click at color (RGB)("255", "181", "115", "0", "Left")
               end
     end
function

function("AutoPots")
     begin
          if  Color.At coordinate is not (RGB)("156", "181", "239", "142", "79")
               // 76_81dti
               begin loop()
                    Keyboard.Press key("{<f3>}")
                    Macro.Pause("400")
                    if  Color.At coordinate is (RGB)("181", "206", "255", "166", "80")
                         begin
                              Macro.Break from loop("yes")
                         end
               end
     end
function

function("Esc")
//to close all random popup messages
     begin
          if  Color.Pixel pattern can be located on screen("156,181,231,-1,23,255,255,255,0,24,255,255,255,-1,23,255,255,255,-2,20,255,255,255,0,19,255,255,255,0,28,255,255,255,1,0,255,255,255,-248,2,255,255,255,0,-94,255,255,255,-8,-45,132,156,222", "0")
               begin loop()
                    Keyboard.Type text("{<esc>}")
                    if  Color.Pixel pattern can not be located on screen("156,181,231,-1,23,255,255,255,0,24,255,255,255,-1,23,255,255,255,-2,20,255,255,255,0,19,255,255,255,0,28,255,255,255,1,0,255,255,255,-248,2,255,255,255,0,-94,255,255,255,-8,-45,132,156,222", "0")
                         begin
                              Macro.Break from loop("yes")
                         end
               end
          if  Color.Pixel pattern can be located on screen("255,255,255,1,0,132,132,140,1,0,165,165,165,2,0,255,255,255,1,0,165,165,165,1,0,156,156,156,1,0,255,255,255,2,0,156,156,156,1,0,99,107,107,1,0,247,247,247", "0")
               begin loop()
                    Keyboard.Type text("{<esc>}")
                    Keyboard.Insert text("/q")
                    Keyboard.Type text("{<enter>}")
                    Keyboard.Type text("{<esc>}")
                    if  Color.Pixel pattern can not be located on screen("255,255,255,1,0,132,132,140,1,0,165,165,165,2,0,255,255,255,1,0,165,165,165,1,0,156,156,156,1,0,255,255,255,2,0,156,156,156,1,0,99,107,107,1,0,247,247,247", "0")
                         begin
                              Macro.Break from loop("yes")
                         end
               end
          if  Color.Pixel pattern can be located on screen("66,115,206,18,2,0,0,0,13,0,189,206,247,4,0,0,0,0,5,0,255,255,255,4,0,0,0,0,4,0,0,0,0,5,-4,0,0,0", "0")
               begin loop()
                    Mouse.Click at pixel pattern("49,49,49,5,0,49,49,49,4,0,49,49,49,2,-1,49,49,49,4,-2,49,49,49,2,3,49,49,49,5,-2,49,49,49,4,0,49,49,49,2,0,49,49,49", "0", "yes", "Left")
                    if  Color.Pixel pattern can not be located on screen("66,115,206,18,2,0,0,0,13,0,189,206,247,4,0,0,0,0,5,0,255,255,255,4,0,0,0,0,4,0,0,0,0,5,-4,0,0,0", "0")
                         begin
                              Macro.Break from loop("yes")
                         end
               end

     end



don't make script for esc. lol

In-game
press alt+z
click friend
then friend setup the magnifying glass turn off all open 1:1 chat

Author:  sami12 [ Mon Jul 10, 2017 3:03 am ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

hello
at first thanks very much !
please help me about thara frog !
i need code to auto attack it and random walk
please help thanks !

Author:  terrybogar [ Mon Jul 10, 2017 4:43 am ]
Post subject:  Re: Random walk if RGB or mob is not located on screen.

anyone got mouse coordinate script?

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/