Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Sep 24, 2020 11:16 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Macro Ragnarok
Thanked: 0 time(s)  Unread post Posted: Fri Feb 14, 2020 7:20 pm 
New User
New User



Joined: Tue Feb 11, 2020 5:14 am
Posts: 2
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 10
I don't understand why the macro doesn't click to attack .... can someone help?
Code:
 Begin
     Window.Set location("Ragnarok", "yes", "0", "0")
     Function.Execute("Attack")
     Function.Execute("Loot4")
     Function.Execute("Fly")
 end

function("Attack")
     if  Color.Can be located on screen (RGB)("0", "160", "192", "0")
          begin
               Mouse.Click at color closest to coordinate (RGB)("0", "160", "192", "0", "640", "375", "left")
               Mouse.Move to coordinate("997", "43")
               if  Color.Pixel pattern can be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4")
                    begin loop()
                         Mouse.Move to coordinate("997", "43")
                         if  Color.Pixel pattern can not be located on screen("255,198,198,0,-1,255,198,198,0,2,255,198,198", "4")
                              begin
                                   Humanly.Pause("400", "500")
                                   Function.Execute("Loot4")
                                   Macro.Break from loop("yes")
                              end
                    end


Attachments:
aaaaaaaaaa.png
aaaaaaaaaa.png [ 260.44 KiB | Viewed 8824 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Macro Ragnarok
Thanked: 0 time(s)  Unread post Posted: Sat Feb 15, 2020 2:50 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2110
Location: USA
Been thanked: 488 time(s)
Has thanked: 37 time(s)
Contribution Points: 17260
Check the execution log.

The first thing you have in your attack function is an "if" statement looking for a color. If it's not found, then it won't click. The execution log will tell you what's happening.

If says,

"checking if Color.Can be located on screen (RGB)("0", "160", "192", "0")"

followed by "no"...then it didn't find that color. Therefore, it will not attack. You may need to tweak the colors or range.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group