Blue Eye Logo

Blue Eye Macro

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

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Fri Sep 02, 2011 9:03 am 
Active User
Active User



Joined: Fri Jul 29, 2011 6:29 pm
Posts: 42
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 868
Can someone help me ?

I am duplicating the code from Eden Eternal and I don't know if these lines are correct

Code:
// Check Crystal Saga Apps
Window.Bring to front("Aurora Point(Beta)-CRYSTAL SAGA at R2Games.com", "No")


Code:
function("HP")
     begin
          Memory.Get value("_Launcher", "_Launcher.exe+862E70,C,4", "4", "currentHP")
          Memory.Get value("_Launcher", "_Launcher.exe+862E70,C,48", "4", "maxHP")
          Macro.Pause("250")
          Variable.Evaluate (Math)("({currentHP} / {maxHP}) * 100", "percentage")
          if Variable.Is between (Math)("percentage", "0", "40")
               begin
                    Keyboard.Hold keys("8")
                    Macro.Pause("50")
                    Keyboard.Release keys("8")
                    Macro.Pause("50")
               end
     end
function


How do I know the Memory.Get value for Crystal Saga ? The one written above is Eden Eternal's


Top
 Profile  
Reply with quote  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Fri Sep 02, 2011 11:36 am 
Silver Contributor
Silver Contributor
User avatar



Joined: Sun Feb 07, 2010 9:11 pm
Posts: 207
Been thanked: 5 time(s)
Has thanked: 19 time(s)
Contribution Points: 5596
Hello :)

Is Crystal Saga a browser game?

If so you should use:
Code:
Window.Bring to front("chrome.exe", "No")


If you use chrome.

About the
Code:
Memory.Get value("", "", "", "")
you should use Cheat Engine to find the memory pointers for your game. It can be a difficult task sometimes, but I think you should take a look at: http://www.blueeye-macro.com/viewtopic.php?f=123&t=743 which is a really great video tutorial by Gigus. I'm sure that well help you out :) I'm not the right guy to ask help when it comes to memory pointers, because I'm not that good with Cheat Engine.

_________________
Code:
Martin

Full-time Macroholic


Top
 Profile  
Reply with quote  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Fri Sep 02, 2011 2:19 pm 
Active User
Active User



Joined: Fri Jul 29, 2011 6:29 pm
Posts: 42
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 868
Error: The window could not be found

Error: ` is not a valid key

Code:
 begin
     Variable.Set("Kill", "0")
     begin loop("-1")
          // Checks google chrome
          Window.Bring to front("chrome.exe", "No")
          // Checks Char HP and uses Char's Healing Potion
          Function.Execute("CharHP")
          // Checks Char MP and uses Char's Mana Potion
          Function.Execute("CharMP")
          // Checks Pet HP and uses Pet's Healing Potion
          Function.Execute("CharHP")
          // Checks Pet MP and Uses Pet's Mana Potion
          Function.Execute("CharMP")
          // Execute Buffs
          Function.Execute("Buffs")
          // Choose Target
          Function.Execute("Target")
          // Starts Attacking
          Function.Execute("Attacks")
          // Kill Counter
          Function.Execute("Counter")
     end
 end

function("CharHP")
     begin
          if  Color.At coordinate is not (RGB)("186", "18", "25", "181", "96")
               begin
                    Keyboard.Hold keys("Q")
                    Macro.Pause("100")
                    Keyboard.Release keys("Q")
                    Macro.Pause("100")
               end
     end
function

function("CharMP")
     begin
          if  Color.At coordinate is not (RGB)("20", "69", "183", "121", "109")
               begin
                    Keyboard.Hold keys("W")
                    Macro.Pause("100")
                    Keyboard.Release keys("W")
                    Macro.Pause("100")
               end
     end
function

function("PetHP")
     begin
          if  Color.At coordinate is not (RGB)("182", "18", "24", "120", "146")
               begin
                    Keyboard.Hold keys("E")
                    Macro.Pause("100")
                    Keyboard.Release keys("E")
                    Macro.Pause("100")
               end
     end
function

function("PetMP")
     begin
          if  Color.At coordinate is not (RGB)("19", "68", "181", "121", "159")
               begin
                    Keyboard.Hold keys("R")
                    Macro.Pause("100")
                    Keyboard.Release keys("R")
                    Macro.Pause("100")
               end
     end
function

function("Buffs")
     begin
          if  Color.At coordinate is not (RGB)("210", "40", "23", "286", "82")
               begin
                    Keyboard.Hold keys("2")
                    Macro.Pause("100")
                    Keyboard.Release keys("2")
                    Macro.Pause("100")
               end
     end
function

function("Target")
     begin
          if  Color.At coordinate is not (RGB)("180", "26", "33", "666", "88")
               Begin
                    Keyboard.Hold keys("`")
                    Macro.Pause("100")
                    Keyboard.Release keys("`")
                    Macro.Pause("100")
               end
     end
function

function("Attacks")
     begin
          while  Color.At coordinate is (RGB)("180", "26", "33", "666", "88")
               begin
                    Keyboard.Hold keys("1")
                    Macro.Pause("100")
                    Keyboard.Release keys("1")
                    Macro.Pause("100")
               end
     end
function

function("Counter")
     begin
          Macro.Pause("100")
          Window.Close("Message", "no")
          Macro.Pause("100")
          Variable.Increment (Math)("Kill")
          Macro.Pause("100")
          Variable.Evaluate (Text)("{Kill} Kills", "Num")
          Macro.Pause("100")
          Window.Display message box("{Num}", "no")
          Macro.Pause("100")
          Window.Bring to front("chrome.exe", "no")
     end
function
 


Top
 Profile  
Reply with quote  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Fri Sep 02, 2011 4:58 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2259
Location: USA
Been thanked: 535 time(s)
Has thanked: 38 time(s)
Contribution Points: 17741
Quote:
Error: ` is not a valid key
That's a special character; use the keyfinder or investigator to see what it's called for your keyboard.

_________________
----------------------------------------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  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Fri Sep 02, 2011 5:21 pm 


Thanks a lot.... I got it now ;)


Top
  
Reply with quote  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Fri Sep 02, 2011 5:23 pm 
Active User
Active User



Joined: Fri Jul 29, 2011 6:29 pm
Posts: 42
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 868
Upssss..... I was logged out

I will post version 0.1 for the macro


Top
 Profile  
Reply with quote  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Fri Sep 02, 2011 11:58 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
You need to pass the name of the tab inside the browser to bring it to front.

To find the correct memory pointers I suggest you go with cheat engine. (there is a tutorial in the tips and tricks section of the forum)

However - I am not sure if it makes it more difficult being a browser based game.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Sun Sep 04, 2011 4:53 pm 
New User
New User



Joined: Sun Sep 04, 2011 4:18 pm
Posts: 5
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 40
hi all
i have a problem using the latest plugin code for crystal saga.

im creating a new plugin and i c/p the code text.
i named and save it.
but when i press start! it dont target and hit the monsters it bring a small windows thats saying every 20s that the program works. example : total runtime : 20 seconds , 40s , 60s, .....

any help on that? what im doing wrong?

thx.


Top
 Profile  
Reply with quote  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Sun Sep 04, 2011 5:30 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2259
Location: USA
Been thanked: 535 time(s)
Has thanked: 38 time(s)
Contribution Points: 17741
@takator: You should probably ask your question under the thread for his bot; this isn't the code your talking about. He changed the counter in the other thread that would give you the results your talking about.

Did you follow his directions and make the changes to all the color/pixel coordinates? It sounds like they are different and it's skipping to the last function (the counter, which isn't dependent on coordinates) and that's why you only see that part happening. Your execution log will be able to tell you if it's finding the right color/pixel patterns.

You can't just copy/paste his code, you have to make those changes; Try that and see if it helps.

_________________
----------------------------------------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  
 Post subject: Re: Technical Questions
Thanked: 0 time(s)  Unread post Posted: Sun Sep 04, 2011 5:40 pm 
New User
New User



Joined: Sun Sep 04, 2011 4:18 pm
Posts: 5
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 40
oh! sry about posting at wrong section!
and thx for the infos! im working on :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next

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