Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Tue May 11, 2021 12:38 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Pixelbot Specific Skill
Thanked: 0 time(s)  Unread post Posted: Fri Mar 26, 2021 1:10 pm 
New User
New User



Joined: Fri Mar 26, 2021 1:05 pm
Posts: 3
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 16
Hi guys,

Im just new here, I tried doing Skill - Teleport code but its not working. Im using sniper on a private server and I just want my char to use DS on the pixel monster then teleport after. And can you please help me add to use blue pots and some buffs for my char. Here's my code . Thanks


begin
Window.Set location("Ragnarok)", "yes", "0", "0")
Function.Execute("Fly")
Function.Execute("Skill")
end

function("skill")
if Color.Can be located on screen (RGB)("255", "0", "0", "0")
begin
begin loop("6")
Keyboard.Press key("{<f1>}")
Humanly.Pause("100", "500")
Mouse.Click at color closest to coordinate (RGB)("206", "90", "90", "0", "512", "293", "left")
end
// your skill button
Humanly.Pause("500", "800")
end
function

function("Fly")
begin
if Color.Can not be located on screen (RGB)("255", "0", "0", "0")
begin
Keyboard.Press key("{<f2>}")
Humanly.Pause("3000", "4000")
end
end
function


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixelbot Specific Skill
Thanked: 0 time(s)  Unread post Posted: Fri Mar 26, 2021 2:59 pm 
Active User
Active User
User avatar



Joined: Mon Feb 01, 2021 11:20 pm
Posts: 37
Been thanked: 8 time(s)
Has thanked: 9 time(s)
Contribution Points: 72
WF003775384 wrote:
Hi guys,

Im just new here, I tried doing Skill - Teleport code but its not working. Im using sniper on a private server and I just want my char to use DS on the pixel monster then teleport after. And can you please help me add to use blue pots and some buffs for my char. Here's my code . Thanks


begin
Window.Set location("Ragnarok)", "yes", "0", "0")
Function.Execute("Fly")
Function.Execute("Skill")
end

function("skill")
if Color.Can be located on screen (RGB)("255", "0", "0", "0")
begin
begin loop("6")
Keyboard.Press key("{<f1>}")
Humanly.Pause("100", "500")
Mouse.Click at color closest to coordinate (RGB)("206", "90", "90", "0", "512", "293", "left")
end
// your skill button
Humanly.Pause("500", "800")
end
function

function("Fly")
begin
if Color.Can not be located on screen (RGB)("255", "0", "0", "0")
begin
Keyboard.Press key("{<f2>}")
Humanly.Pause("3000", "4000")
end
end
function



This should make your character click on the skill shortcut and click on the closest monster to your character, if there is no more monsters on the screen it will use teleport or flywing (or teleport if your character try “X” amounts of times clicking on the monster and it doesn’t get killed/disappear):

Code:
 begin
     Window.Set location("Ragnarok", "yes", "0", "0")
     Function.Execute("autopots")
     Function.Execute("Attack")
     Function.Execute("Teleport")
 end

function("Attack")
     begin
          if  Color.Can be located on screen (RGB)("255", "0", "0", "0")
               begin
                    begin loop()
                         Macro.Get parent loop iteration("count")
                         Variable.Set("x", "{count}")
                         // your DS key
                         Keyboard.Press key("{<f1>}")
                         Humanly.Pause("300", "700")
                         Mouse.Click at color closest to coordinate (RGB)("255", "0", "0", "0", "640", "375", "left")
                         if  Variable.Is greater than (Math)("x", "10")
                              begin
                                   Function.Execute("Teleport2")
                              end
                         if  Color.Can not be located on screen (RGB)("255", "0", "0", "0")
                              begin
                                   Macro.Break from loop("yes")
                              end
                    end
               end
     end
function

function("Teleport")
     begin
          if  Color.Can not be located on screen (RGB)("255", "0", "0", "0")
               begin
                    Function.Execute("Teleport2")
               end
     end
function

function("Teleport2")
     begin
          // your flywing key
          Keyboard.Press key("{<f6>}")
          Macro.Pause("600")
          // if you are using skill teleport use this and erase the flywing part:
          // Keyboard.Press key("{<f6>}")
          // Macro.Pause("250")
          // Keyboard.Press key("{<enter>}")
          // Macro.Pause("250")
     end
function

function("autopots")
     begin
          // put your potion macro name and category here
          Macro.Execute new("macro category", "namemacro", "no")
     end
function


For using potion you can make a separate macro or insert this part on the same attack macro (i think a separate macro is more reliable on seeing your health and using potion):

Code:
 begin
     Window.Set location("Ragnarok", "yes", "0", "0")
     Function.Execute("AutoPots")
 end

function("AutoPots")
     begin
// insert your Hp bar Rgb coordinates here when it doesn't have health (maintain your character panel open so the macro can see your health)
          if  Color.At coordinate is (RGB)("206", "206", "214", "159", "82")
               and
//your potion RGB and coordinate on the screen so the macro uses only when you have potions on the shortcut
               Color.At coordinate is (RGB)("189", "66", "49", "240", "48")
               begin loop()
//potion key
                    Keyboard.Press key("{<f1>}")
//RGB and coordinate of your health bar full so the macro can stop using potion
                    if  Color.At coordinate is (RGB)("156", "173", "222", "168", "83")
                         or
//RGB and coordinate of your shortcut empty so the macro can stop when you dont have anymore potions
                         Color.At coordinate is (RGB)("165", "189", "231", "768", "489")
                         begin
                              Macro.Break from loop("yes")
                         end
               end
     end
function


For the buffs use a stopwatch and put the shortcut key so you can use buffs whenever it end on a fixed time.


Attachments:
rag;potex.bem [16.1 KiB]
Downloaded 56 times
rag;ragdstp.bem [27.95 KiB]
Downloaded 51 times


Last edited by JorgeCavalcanti on Fri Mar 26, 2021 3:47 pm, edited 1 time in total.
Top
 Profile  
Reply with quote  
 Post subject: Re: Pixelbot Specific Skill
Thanked: 0 time(s)  Unread post Posted: Fri Mar 26, 2021 3:22 pm 
New User
New User



Joined: Fri Mar 26, 2021 1:05 pm
Posts: 3
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 16
Hi,

Thanks for replying and helping. When i tried to save the code there are some errors that i encountered :( already tried to remove specific line still the same


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixelbot Specific Skill
Thanked: 1 time(s)  Unread post Posted: Fri Mar 26, 2021 3:27 pm 
Active User
Active User
User avatar



Joined: Mon Feb 01, 2021 11:20 pm
Posts: 37
Been thanked: 8 time(s)
Has thanked: 9 time(s)
Contribution Points: 72
WF003775384 wrote:
Hi,

Thanks for replying and helping. When i tried to save the code there are some errors that i encountered :( already tried to remove specific line still the same


What error ? Maybe there is some line out place on my code i did write this on the cellphone.

EDIT: fixed the code for you and put BEM files if you want to import to bem, tell me if it works.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixelbot Specific Skill
Thanked: 0 time(s)  Unread post Posted: Fri Mar 26, 2021 4:43 pm 
New User
New User



Joined: Fri Mar 26, 2021 1:05 pm
Posts: 3
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 16
Hi,

Its working now. Btw do you encounter about having an error on gepard like it automatically close because you edit the sprite? how can we bypass it? and about adding a line to start/stop BEM because its so hard to alt+tab

Here's the error


Attachments:
123.png
123.png [ 2.6 KiB | Viewed 812 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Pixelbot Specific Skill
Thanked: 0 time(s)  Unread post Posted: Fri Mar 26, 2021 7:13 pm 
Active User
Active User
User avatar



Joined: Mon Feb 01, 2021 11:20 pm
Posts: 37
Been thanked: 8 time(s)
Has thanked: 9 time(s)
Contribution Points: 72
WF003775384 wrote:
Hi,

Its working now. Btw do you encounter about having an error on gepard like it automatically close because you edit the sprite? how can we bypass it? and about adding a line to start/stop BEM because its so hard to alt+tab

Here's the error


I don’t play on a server that have gepard but there are some ways to use BEM there, no need to modify sprites just use the monsters dominant color and set a range for the color in the click command, you will need to change the RGB in the code with the dominant rgb of the monster, of course it won’t be that accurate but it works (you can use investigator on bem, just open it and print screen with the monster on it and click on the color you want to see the rgb).

Or you can use this method by Nyl-: viewtopic.php?f=437&t=35521 (this take a lot of work because you will need to color every sprite from every monster).

To make BEM stop you can use the shortcut ctrl+alt+esc on your pc that it will stop executing the macro or you can set a trigger in BEM so you can press a key for it to stop.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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