Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Mon Sep 24, 2018 7:31 pm

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Digimon Links Nox Macro Farming Bot
Thanked: 3 time(s)  Unread post Posted: Fri May 18, 2018 2:59 pm 
New User
New User



Joined: Tue Apr 24, 2018 12:33 pm
Posts: 7
Location: South Africa
Been thanked: 5 time(s)
Has thanked: 4 time(s)
Contribution Points: 22
Hey All!

So I Joined BEM to use it for Digimon Links Farming due to the hectic requirement Bamco Puts on players to get any decent Digimon, Not to Mention the Event Chip mechanic creating one of the most toxic communities in any game I've Played (C=Cancer anyone?).

I've come across clawruxz Post for the macro he created (that I'm currently using) which you can find here:
http://www.blueeye-macro.com/viewtopic.php?f=304&t=30942

I have updated it a bit to allow for instances where his macro stops working
But All credit goes to Clawryxz so please go to his post and give him a thank you!

Anyway, I'll just explain to any beginners how to set it up and what to do since it took some time to understand for myself.

Also, Due to Botters having a bad name in links (because of using skill every turn and wasting AP) I plan to update it constantly to allow for better play with other players as I grow understand with BEM More and learn new things. Also i'll try to update for the weekly events and best settings for each event and Digimon you use.

So the first thing you want to do is Download and install BEM & Nox android emulator, make a BEM account and get your free months pass.
Once that's Done install Links from the App Store and sign in to your links account.


Now, clawruxz, macro uses keyboard bindings (which is best for links imo) so Be prepared to bind certain keys to various spaces on the screen (Nox allows for this in the version out at the time of this post). The area encircled on the image is where you find the button to Bind a key to that position on Nox. The pic following that is and example of how my keyboard is bound to my screen to coincide with clawruxz macro

Image

The following pic is an example of how my keyboard is bound to my screen to coincide with clawruxz macro.

Image

Bindings are for the following areas on links:
    A - "Close (X)" for digivolve booster pack when you start up links.
    B - Any area on "win", "plugins received" & "Exp& friendship received" Screens
    C - The red "Prep OK" button in a room
    E - "Normal Attack" button in battle & "Explore" button on digifarm
    K - "intense (hardest difficulty)" You want to grind
    L - "Legacy skill" in battle
    M - "Event?Advent" tab that you want to grind
    N - "Join" button to join rooms
    P - "Leave" button to exit a room
    Q - "Skill" button in Battle & Coop Button to Join rooms
    R - "Refresh" Button in lobby to join rooms
    V - "Close" button when rooms are full or disbanded & "Repeat" Button after completing a run & "retry" button for when authentication fails or connectivity is too weak
    X - "Close" button when owners connection is lost
    1 - The position for the first room to join in the lobby


Now the next step is to open the investigator on BEM This will allow you take take screen shots of your screen (by pressing print screen)

Image

Here you can get the rgb(pixel color) and coordinates (x; y) of an image on your screen. as in the pic below
Image

Make sure that nox is in full screen mode, and take screen shots of the following (Areas I encircle is where you should Click on the investigator for rgb and coordinates):
* Nox android home screen
Image

* Digimon Links Start screen
Image

* Digivolve booster pack & notification screen
Image

* Digifarm
Image

* Explore (screen with events, advents normal quests etc)
Image

* Event Screen (where you choose easy, medium, hard, etc difficulties)
Image

* Solo/Coop Screen
Image

* Recruit/Join Screen
Image

* Lobby with rooms to join
Image

* Lobby without rooms to join
Image

* Screen when room is full/disbanded
Image

* Inside a room (with your character unprepared)
Image

* During coop gameplay when the team has AP
Image

* Coop Win Screen
Image

* Bytes and data received screeen
Image

* Exp and friendship received screen
Image

* Friend request screen
Image

* Repeat Screen
Image

* Join/Recruit screen
Image

These 3 I did not have time to or the patience to get screenshots of again, but they are important to allow the macro to run while you're not there/sleeping and there are connectivity problems
* Screen when Owner loses connection (Get the white area of the "L" in the word "Close")
* Screen When owner retires the battle (Get the white area of the "L" in the word "Close" Which is the same as above)
* Screen When Authentification error or your connection is bad (Get the white area of the "!"(exclamation mark) in the warning symbol

NB!!! The areas I circled I chose because There are various assets, shapes and colours that move around in the background that changes the RGB of various pixels, the areas I've circle had little to no variance in the RGB

What I've added to the code view is to allow BEM to click on the Digimon Links icon If Nox happens to bomb out of the game and back to the home screen, to click the screen on the links start up screen and to close the digivolve booster pack&notification popups. Also if there are Authentication errors. This is as follows:

Code:
     // RGB IF GAME EXITED TO HOME SCREEN
     if  Color.At coordinate is (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
          begin loop()
               Keyboard.Hold keys("D")
               Function.Execute("Human Pause")
               Keyboard.Release keys("D")
               // Same co ordinates of the previous check
               if  Color.At coordinate is not (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
                    begin
                         Macro.Restart("no")
                    end
          end

     // RGB IF GAME EXITED TO HOME SCREEN LINKS START UP SCREEN
     if  Color.At coordinate is (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
          begin loop()
               // Spam KEYBOARD KEY FOR PREP OK
               if  Color.At coordinate is not (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
                    begin
                         Keyboard.Hold keys("X")
                         Function.Execute("Human Pause")
                         Keyboard.Release keys("X")
                    end
               // Same co ordinates of the previous check
               if  Color.At coordinate is not (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
                    begin
                         Macro.Restart("no")
                    end
          end
     // IF OWNER RETIRES
     if  Color.At coordinate is (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
          begin loop()
               Keyboard.Hold keys("X")
               Function.Execute("Human Pause")
               Keyboard.Release keys("X")
               // Same co ordinates of the previous check
               if  Color.At coordinate is not (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
                    begin
                         Macro.Restart("no")
                    end
          end
     // IF AUTHENTIFICATION FAILURE
     if  Color.At coordinate is (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
          begin loop()
               Keyboard.Hold keys("V")
               Function.Execute("Human Pause")
               Keyboard.Release keys("V")
               // Same co ordinates of the previous check
               if  Color.At coordinate is not (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
                    begin
                         Macro.Restart("no")
                    end
          end
     // IF BOOSTER PACK POPUP
     if  Color.At coordinate is (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
          begin loop()
               Keyboard.Hold keys("A")
               Function.Execute("Human Pause")
               Keyboard.Release keys("A")
               // Same co ordinates of the previous check
               if  Color.At coordinate is not (RGB)("RRR", "GGG", "BBB", "XXX", "YYY")
                    begin
                         Macro.Restart("no")
                    end
          end



NBBB!!! You will get the RGB and the X-Y coordinate for your screen from the investigator. that is why all the screen shots are needed. So insert your RGB value and X-Y coordinates in the area of clawruxz code that refers to the Digimon Links screen you're on.
I Hope this helps anyone that struggled with setting this macro up... It's fairly simple but i struggled and wondered why it wasn't working well at the beginning (because I'm a noob) so I hope this helps anyone else struggling

There's lots of room for improvement in this macro so I'm going to try to get on that as I'm learning more about BEM.

My goals for the macro are:
* First Set the macro to Save AP if Other digimon in the room has higher attack or Sp. Attack than your digimon. ie you'd do all the skills if you have the highest attack in the group
* Then Set the macro For your Digimon to Save AP If the other digimon are Awakened to +4 and hits for weakness
* Finally to set the macro up to use a skill or normal attack when The leader/host of the party emotes to use "skill" or "save AP" respectively.
* To make various macros for begginners with weaker digimon to use
* To make macros for any event that comes out, and allow for optimal farming

Ps the images aren't loading on my pc when i view this post on the forum. but I'm able to right click and view the image in a new tab, so if you're having the same problem, try that.

_________________
Let's play it by ear?!


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 1 time(s)  Unread post Posted: Sat May 19, 2018 12:07 pm 
Silver Contributor
Silver Contributor



Joined: Sat May 19, 2018 11:38 am
Posts: 109
Been thanked: 31 time(s)
Has thanked: 27 time(s)
Contribution Points: 93
does it works?


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 1 time(s)  Unread post Posted: Sat May 19, 2018 12:11 pm 
New User
New User



Joined: Tue Apr 24, 2018 12:33 pm
Posts: 7
Location: South Africa
Been thanked: 5 time(s)
Has thanked: 4 time(s)
Contribution Points: 22
It does.... Really well. Just gotta set it up properly. Which I tried to explain above... Any questions about the macro I think I'll be able to answer it, if you can't get through to crawruxz

_________________
Let's play it by ear?!


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 1 time(s)  Unread post Posted: Sat May 19, 2018 12:15 pm 
Silver Contributor
Silver Contributor



Joined: Sat May 19, 2018 11:38 am
Posts: 109
Been thanked: 31 time(s)
Has thanked: 27 time(s)
Contribution Points: 93
Ongbak wrote:
It does.... Really well. Just gotta set it up properly. Which I tried to explain above... Any questions about the macro I think I'll be able to answer it, if you can't get through to crawruxz

so it works i mean the anti macro only i m intersted with a 90% answear of the time?


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 0 time(s)  Unread post Posted: Wed Jul 25, 2018 2:53 am 
New User
New User



Joined: Wed Jul 25, 2018 2:46 am
Posts: 3
Been thanked: 0 time(s)
Has thanked: 2 time(s)
Contribution Points: 14
I'll be giving this one a try I think. I've never ran a script or macro for a game before, so hopefully I can figure it all out lol


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 0 time(s)  Unread post Posted: Wed Jul 25, 2018 3:29 pm 
New User
New User



Joined: Wed Jul 25, 2018 3:15 pm
Posts: 1
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 10
New to the forums here so maybe I am not doing it right, but I can not see any of the images from Ongbak's post. What am I doing wrong?


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 0 time(s)  Unread post Posted: Tue Sep 18, 2018 1:14 am 
New User
New User



Joined: Tue Sep 18, 2018 12:27 am
Posts: 2
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 13
Hi Ongbak

Thanks for sharing and the explanations on the variables that clawruxz created.

Following your guide, the automation works fine. I was now trying to modify clawruxz code so that the automation can run (not exactly in background) on one screen and does not interfere my work on another screen.

The following code is what I have written so far where "R" is a key that bind to a space on NoxPlayer (exactly the same as what you did i.e. "Refresh" Button in lobby to join rooms).

Code:
 begin
     Window.Send hold keys("NoxPlayer", "yes", "0", "R")
     Function.Execute("Human Pause")
     Window.Send release keys("NoxPlayer", "yes", "0", "R")
 end

function("Human Pause")
     begin
          Variable.Set random number("HumanTime", "50", "100")
          Macro.Pause("{HumanTime}")
     end
function


When I ran it in the lobby to join rooms and NoxPlayer simply did not respond. Then, I tried to ran it in the chat box of the game and it indeed captured the "R" from BEM. It seemed to me that BEM only supply the letter "R" to the chatbox and not as an input to Nox. So, do you happen to know how I could modify the code so that the automation could run at the same time I use the PC?


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 0 time(s)  Unread post Posted: Fri Sep 21, 2018 9:26 am 
New User
New User



Joined: Wed Mar 11, 2015 4:20 pm
Posts: 9
Been thanked: 0 time(s)
Has thanked: 2 time(s)
Contribution Points: 31
are that scrip work ar bem 2.5 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 0 time(s)  Unread post Posted: Fri Sep 21, 2018 4:43 pm 
New User
New User



Joined: Sun Sep 16, 2018 4:35 pm
Posts: 12
Location: Brasil
Been thanked: 0 time(s)
Has thanked: 4 time(s)
Contribution Points: 34
Really good macro, but it need some adjustments, like when the owner disconect the macro stucks.


Top
 Profile  
Reply with quote  
 Post subject: Re: Digimon Links Nox Macro Farming Bot
Thanked: 0 time(s)  Unread post Posted: Mon Sep 24, 2018 7:08 am 
New User
New User



Joined: Tue Jun 19, 2012 6:49 am
Posts: 14
Location: Malaysia
Been thanked: 4 time(s)
Has thanked: 2 time(s)
Contribution Points: 29
hye Ongbak...

You did very well with the codes..
Im sorry im not so active in here..
I also not really good with the coding but i really glad that my script give some idea for those needed.

You still can explore more and go for more detail but need a couple of run to see it happen.

like in my script..this script will allow us to choose at which AP our digimon will skill (so we are not cheap bot who know spam AP only)

but for event purpose..i had made more detail which is u need to set 2-3 more condition before trigger the action
Here below my idea

1. for non boss digimon enemy in wave 1-3
-if enemy health bar is below 40% (up to u) during our turn our digimon will use normal hit regardless how many AP we have in team

2. Save AP when there is only 1 enemy live before we go to the next wave or boss wave
- u need to use logic 'and' so let say only middle enemy left...so u can set if right enemy "AND" left enemy died, ur digimon will use normal hit only or ur digimon will use skill if AP reach 12 or 15 only

I did this 2 above detail for event script only..as they need more time to set up..for advent i will use my aoe digimon and spam AP if Ap have 6 at wave 1-2 and skill if AP have 3 during the boss wave

Hope this give u some idea to create smart bot script

Farewell
-clawruxz-


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