Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Oct 17, 2018 2:56 pm

All times are UTC




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
Options:
BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Please click and drag the 2 correct statements to the right hand side.
Please click and drag the 2 correct statements to the right hand side.
Please select the options below to the correct list to avoid automated registrations.
Statements
2 correct statements
Dogs have 4 legs
Fish can swim
Chickens can talk
Elephants can fly
   

Topic review - Florensia bot for CM
Author Message
  Post subject:  Re: Florensia bot for CM  Reply with quote
BIG UPDATE!

Now the code is totally screen-free, it only uses memory cells: to find out when you're targeting a mob (and not a player), to find out when the mob is dead and to find out when there is still something to loot.

Furthermore, I added a new attack system that randomly choose a way to attack. At the moment there are only 3 attack combos available, but I'm gonna work on them.

And there is a new function, approach_target: it could be useful in some attack combo.

NEED HELP:
I would really appreciate if someone could check this two pointer on their machines:
- FlorensiaEn.bin+0071DF8C,28,28 (4 bytes): should be 256 when you're targeting a player (including yourself) and should be 0 if you're targeting a mob or a NPC.
- FlorensiaEn.bin+0071DEE4,C,790,0,C,3C,0,4FC (4 bytes): should be 1+"number of lootable items on the floor".
Thank you for your help!
Post Posted: Mon Jun 18, 2018 8:53 pm
  Post subject:  Re: Florensia bot for CM  Reply with quote
This script makes the character to fight mobs 1v1 so you can modify it easily (just few lines of code) to adapt to all the classes.
The things you have to change are basically two:
- the buffs functions
- the attack part
- (delete the looting part if you're using a loot pet)

Note that this code has still few lines based on taking color from screen, so you have to use the screen size in the "requirements".
But on Monday I'm gonna release a new update of the code to make it totally memory based.

If you need any help to adapt the code to your character, feel free to ask.
Post Posted: Sat Jun 16, 2018 8:57 pm
  Post subject:  Re: Florensia bot for CM  Reply with quote
Hi :) first of all thanks for ur contribution. Ive got a question btw: does this script works even for cm or sniper? (i mean u cant aoe with this script but at least u can leave afk and let them farm 1vs1 right?)
Post Posted: Fri Jun 15, 2018 8:01 am
  Post subject:  Re: Florensia bot for CM  Reply with quote
Quote:
Anyway it's not such a big problem, my purpose is to modify the algorithm to work only with memory read and not with graphic read.
That's the best way to go...but you still shouldn't be getting that error, especially not at full screen with only one monitor. I'll talk to the developer and see what he says.
Post Posted: Thu Jun 14, 2018 3:39 pm
  Post subject:  Re: Florensia bot for CM  Reply with quote
- I am using only one monitor.
- I'm not using a virtual machine.
- The only other window is Blue Eye Macro.
- I do not get any pop-up.

I'm already using Florensia at full screen.
Once I stopped the macro after only a minute, and I got the error: I can assure you that nothing strange happened.

So I really don't know what to do.
Anyway it's not such a big problem, my purpose is to modify the algorithm to work only with memory read and not with graphic read.
Post Posted: Wed Jun 13, 2018 1:49 pm
  Post subject:  Re: Florensia bot for CM  Reply with quote
I'm trying to duplicate the problem, but I haven't been able to yet...except for Florensia not being on top.

The only thing I can think of right now is that your Florensia window is not at the front when your getting this error;
- How many monitors are your using?
- Are you using a virtual machine?
- How many other windows are open when running the macro and do they ever come forward above your game?
- Do you get pop-ups while running the macro?

I would say run your macro full screen and see if it still happens (you may need to make some adjustments to your coordinates to do so)...or watch it and make sure nothing pops-up.

It looks like you bring Florensia to the front at the beginning, but then goes into a loop so it doesn't look like it ever brings it to the front again. Which is fine as long as it stays there. Are you sure it's the top most window when your getting this error? That's usually the only thing that can cause this (besides checking for coordinates outside the primary window (dual monitors or VM) and not running DirectX capture).
Post Posted: Wed Jun 13, 2018 1:15 pm
  Post subject:  Re: Florensia bot for CM  Reply with quote
Syrifina, I used the bot all the day to test it: the error is back (using directX has not solved it). Here is the error log:


Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,98, Length: 4, To variable: maxMP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,94, Length: 4, To variable: maxHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,64,10, Length: 4, To variable: currentMP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Aborting function: Wait for pixel grey, since the total execution time of the function exceeds 20000 ms.
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,98, Length: 4, To variable: maxMP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,64,10, Length: 4, To variable: currentMP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,64,10, Length: 4, To variable: currentMP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,23C, Length: 4, To variable: currentHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,94, Length: 4, To variable: maxHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,64,10, Length: 4, To variable: currentMP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,23C, Length: 4, To variable: currentHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,23C, Length: 4, To variable: currentHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,94, Length: 4, To variable: maxHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,23C, Length: 4, To variable: currentHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

[cutted 28 lines]

Aborting function: Wait for pixel grey, since the total execution time of the function exceeds 20000 ms.
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

Executing: Memory.Get value(Process/Window name: FlorensiaEn.bin, Memory Address: FlorensiaEn.bin+71DF48,23C, Length: 4, To variable: currentHP)
Error: Color sample could not be retrieved. Please make sure you are not trying to retrieve the color of an area outside the PRIMARY monitor

[other 12 lines]


I think that the line just before the error is the last executed code line before the error (?)
Post Posted: Tue Jun 12, 2018 3:57 pm
  Post subject:  Re: Florensia bot for CM  Reply with quote
Update: added restore function.
I had some trouble with comma instead of dot for float.

Code:
function("restore")
     // check HP and MP and restore them if they are less than 50%
     begin
          Memory.Get value("FlorensiaEn.bin", "FlorensiaEn.bin+71DF48,23C", "4", "currentHP")
          Memory.Get value("FlorensiaEn.bin", "FlorensiaEn.bin+71DF48,94", "4", "maxHP")
          Memory.Get value("FlorensiaEn.bin", "FlorensiaEn.bin+71DF48,64,10", "4", "currentMP")
          Memory.Get value("FlorensiaEn.bin", "FlorensiaEn.bin+71DF48,98", "4", "maxMP")
          Variable.Evaluate (Text)("HP: {currentHP}/{maxHP} - MP: {currentMP}/{maxMP}", "text")
          Function.Execute setting 1 variable("msg", "text", "{text}")
          Variable.Evaluate (Math)("{currentHP}/{maxHP}", "ratioHP")
          Variable.Evaluate (Math)("{currentMP}/{maxMP}", "ratioMP")
          Function.Execute setting 1 variable("msg", "text", "{ratioHP}")
          Function.Execute setting 1 variable("msg", "text", "{ratioMP}")
          if  Variable.Is less than (Math)("ratioHP", "0,5")
               begin
                    Keyboard.Press key("9")
               end
          if  Variable.Is less than (Math)("ratioMP", "0,5")
               begin
                    Keyboard.Press key("0")
               end
     end
function


I am supposing HP potions on 9 and MP potions on 0.
Post Posted: Sun Jun 10, 2018 8:47 pm
  Post subject:  Re: Florensia bot for CM  Reply with quote
sounds good; keep us posted!
Post Posted: Fri Jun 08, 2018 2:32 am
  Post subject:  Re: Florensia bot for CM  Reply with quote
At the moment it looks like to work, thank you!

Now I'm gonna work on the next two steps:
1- Pointer system to check my own HP and MP, and restore them when needed.
2- A more sophisticated attack system.

When I complete those, I will reply to update and notify the changes!
Post Posted: Thu Jun 07, 2018 9:01 pm

All times are UTC


Jump to:  


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