Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 7:39 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Selling macro [Based on Gipsys' Macro]
Thanked: 0 time(s)  Unread post Posted: Thu Feb 16, 2012 3:55 pm 
New User
New User



Joined: Wed Feb 01, 2012 1:46 pm
Posts: 15
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 150
I wanna emphasize some things.
1st. This macro is not my creation, is a rip from gipsy's with some modifications.
2nd. If it fails to sell, is because of the RBG range. if u see my and Gipsy's post, u will see that the RBG range is changed. Gipsys' was set to the grey colour of the background in the seller vendor and mine is set to Yellow.
3rd. The only reason i post this alone is cause i use another macro to craft cause for a reason all the crafting attempts with blue-eye failed miserably.

How to work:
Alt + 2 to start selling the item that is placed on the 3rd position.
Escape to cancel the selling but keep the macro active, meaning you can repeat step 1.

If it doesn't work, try changing the RGB value.
Here is a tool to help you indentify what value to set.

Code:
http://www.mathsisfun.com/hexadecimal-decimal-colors.html




Code:
 begin
     Window.Get location("Soma Mythological Biography", "No", "no", "WinX", "WinY")
     Window.Wait for window to appear("soma mythological biography", "no")
 
     begin loop()
          Keyboard.Wait for keys to be held down("{<alt>}")
          if  Keyboard.Key is held down("2")
               begin
                    Function.Execute("Sell_Item_In_Seller")
               end

function("ExitFunction")
               begin
                    if  Keyboard.Keys has been pressed within (ms)("{<esc>}", "{input}")
                         begin
                              Macro.Restart("Yes")
                         end
               end
function

function("Sell_Item_In_Seller")
               begin
                    Variable.Evaluate (Math)("{WinX} + 95", "x")
                    Variable.Evaluate (Math)("{WinY} + 265", "y")
                    while  Color.At coordinate is not within (RGB range)("255", "255", "49", "10", "{x}", "{y}")
                         begin
                              Variable.Evaluate (Math)("{WinX} + 90", "xx1")
                              Variable.Evaluate (Math)("{WinY} + 265", "yy1")
                              Mouse.Set coordinate("{xx1}", "{yy1}")
                              Function.Execute setting 1 variable("ExitFunction", "input", "2000")
                              Mouse.Click("Left")
                              Function.Execute setting 1 variable("random_pause", "input", "95")
                              Variable.Evaluate (Math)("{WinX} + 215", "xx2")
                              Variable.Evaluate (Math)("{WinY} + 270", "yy2")
                              Mouse.Set coordinate("{xx2}", "{yy2}")
                              Function.Execute setting 1 variable("random_pause", "input", "95")
                              Function.Execute setting 1 variable("ExitFunction", "input", "2000")
                              Mouse.Click("Left")
                              Function.Execute setting 1 variable("random_pause", "input", "95")
                         end
                    Macro.Pause("250")
               end
function

function("random_pause")
               begin
                    Variable.Evaluate (Math)("{input}*3/2", "varRandom2")
                    Variable.Set random number("rnd", "{input}", "{varRandom2}")
                    Macro.Pause("{rnd}")
               end
function
     end
 end


Top
 Profile  
Reply with quote  
 Post subject: Re: Selling macro [Based on Gipsys' Macro]
Thanked: 0 time(s)  Unread post Posted: Mon Feb 20, 2012 10:56 pm 
Lifetime VIP Contributor
Lifetime VIP Contributor



Joined: Sun Sep 05, 2010 10:13 am
Posts: 47
Been thanked: 2 time(s)
Has thanked: 3 time(s)
Contribution Points: 3417
If you have any idea on how to get the code improved, just post it! ;)

_________________
Programming is like sex, one mistake and you have to support it for the rest of your life. ~ Michael Sinz


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