Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Nov 28, 2020 8:26 pm

All times are UTC




Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re: ACT & SPR File for your Monster Pixel bot
Thanked: 1 time(s)  Unread post Posted: Fri May 08, 2020 4:29 pm 
New User
New User
User avatar



Joined: Wed Apr 22, 2020 1:04 am
Posts: 24
Been thanked: 11 time(s)
Has thanked: 14 time(s)
Contribution Points: 51
I still don't understand why it is not recommended to change the .act files, since so far I have had no problem editing these files, and I did this on several monsters. I believe that to automate some things in the game through macros, there is no other way than to change these files.

Anyway, as to what we were discussing, in relation to Anti-Ks. I am using the file that Nyl provided and it is working together with some adaptations that I made in the attack macro that Roan provided. The macro consists of attacking, in addition to the yellow blocks, also the purple ones (when a monster attacks), which are only in a defined area, close to the character in the center of the screen.

Sometimes it crashes and does not attack the monsters that are attacking the character, but most of the time it works perfectly.

Here is the macro code for this action, for those are interested:
Code:
function("Attack2")
     begin
          Color.Limit area of interest to coordinates("585", "324", "116", "101")
          if  Color.Can be located on screen (RGB)("165", "66", "132", "0")
               begin
                    Mouse.Click at color closest to coordinate (RGB)("165", "66", "132", "0", "582", "324", "left")
                    Mouse.Move to coordinate("997", "43")
                    if  Color.Can be located on screen (RGB)("165", "66", "132", "0")
                         begin loop()
                              Mouse.Move to coordinate("997", "43")
                              if  Color.Can not be located on screen (RGB)("165", "66", "132", "0")
                                   begin
                                        Humanly.Pause("400", "500")
                                        Color.Unlimit area of interest()
                                        Function.Execute("Loot")
                                        Macro.Break from loop("yes")
                                   end
                         end
               end
          Color.Unlimit area of interest()
     end
function

As I haven't had any problems with editing the .act files so far, I just have to thank you, Nyl. For me it was a great contribution to improve the needs of the macro I am using.


Top
 Profile  
Reply with quote  
 Post subject: Re: ACT & SPR File for your Monster Pixel bot
Thanked: 0 time(s)  Unread post Posted: Mon May 11, 2020 12:44 pm 
Contributor
Contributor



Joined: Mon Mar 30, 2020 12:58 pm
Posts: 71
Been thanked: 6 time(s)
Has thanked: 4 time(s)
Contribution Points: 127
0dr4ud3 wrote:
I still don't understand why it is not recommended to change the .act files, since so far I have had no problem editing these files, and I did this on several monsters. I believe that to automate some things in the game through macros, there is no other way than to change these files.

Anyway, as to what we were discussing, in relation to Anti-Ks. I am using the file that Nyl provided and it is working together with some adaptations that I made in the attack macro that Roan provided. The macro consists of attacking, in addition to the yellow blocks, also the purple ones (when a monster attacks), which are only in a defined area, close to the character in the center of the screen.

Sometimes it crashes and does not attack the monsters that are attacking the character, but most of the time it works perfectly.

Here is the macro code for this action, for those are interested:
Code:
function("Attack2")
     begin
          Color.Limit area of interest to coordinates("585", "324", "116", "101")
          if  Color.Can be located on screen (RGB)("165", "66", "132", "0")
               begin
                    Mouse.Click at color closest to coordinate (RGB)("165", "66", "132", "0", "582", "324", "left")
                    Mouse.Move to coordinate("997", "43")
                    if  Color.Can be located on screen (RGB)("165", "66", "132", "0")
                         begin loop()
                              Mouse.Move to coordinate("997", "43")
                              if  Color.Can not be located on screen (RGB)("165", "66", "132", "0")
                                   begin
                                        Humanly.Pause("400", "500")
                                        Color.Unlimit area of interest()
                                        Function.Execute("Loot")
                                        Macro.Break from loop("yes")
                                   end
                         end
               end
          Color.Unlimit area of interest()
     end
function

As I haven't had any problems with editing the .act files so far, I just have to thank you, Nyl. For me it was a great contribution to improve the needs of the macro I am using.


Yes sometimes it will not attack the monster, coz 1 of the frame of the monster is different set of RGB. If it detect the RGB aside from your attack config it will not engage. Sometimes it will do if other frame will load with the RGB you set from your attack.

and by the way is this the only attack function in youre config?

I tested it, due to the color limit of interest, it wont do much attacking inside the game coz even though there is a lot of monster around, but due to the range was limited because of this code :
Quote:
Color.Limit area of interest to coordinates("585", "324", "116", "101")


Top
 Profile  
Reply with quote  
 Post subject: Re: ACT & SPR File for your Monster Pixel bot
Thanked: 0 time(s)  Unread post Posted: Wed May 13, 2020 4:03 pm 
New User
New User



Joined: Sun May 10, 2020 4:22 pm
Posts: 11
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 25
0dr4ud3 wrote:
Nyl- wrote:
0dr4ud3 wrote:
Thanks again man!

Regarding the AutoPot macro, I managed to make it work, I just had to change the x and y coordinates. I don't know if because of the screen resolution I'm using, but the ones you passed didn't work here for me. However, I used BEM's Investigator and got the right coordinates for my client, and it works!

The TeleportOnMonsterSkill macro did not work, I believe because of the coordinates as well. I tried to use the investigator to see the coordinates closest to the character (I don’t know if it’s those coordinates I should look for, correct me if I’m wrong) however, he continues to teleport when the skill is used on other players (in other corners of the screen).

Anyway, we are on the right path, thank you for the help you have given me so far, I am managing to improve my macro more and more. I think with a few adjustments it will work 100%.


Did you used my code and just changed the x and y coordinates? I'm sorry if it didnt work, i forgot to ask you if your pixel searching setting searches relative to the desktop or the app window. I should also indicate that the ragnarok app should be placed in 0,0 coordinates for it to match. Got overexcited helping you. Haha.

I am not yet good in coding with BEM since I dont have it on my computer. But somehow I think that this line of codes doesnt come together.
Code:
Color.Limit area of interest to coordinates("331", "575", "135", "135")
          if  Color.Can be located on screen (RGB)("250", "0", "0", "0")

It has limit command and then a screen searching command.
I guess someone have to clarify this for us to better improve your bot.



Sorry for the delay in replying, I was a little busy.
Anyway, I really believe that it is not the best way to "write" this macro. What I realized is that using it in the same macro as my other actions (autoattack, autoloot, etc.), the character was limited to just killing / looting in that area that we delimited.

However, I managed to solve this by creating a separate macro file for each of these actions that we limited the area. A macro for AutoPot, and another for TeleportOnMonsterSkill. So, I started them together with my main macro (autoattack / autoloot) and it worked, despite showing errors in the Errorlog.

Anyway, until I can figure out the correct way to write the code, I will keep it that way. It is proving to be very functional.
I appreciate all the attention you have given me so far!
Soon I bring other challenges, because I'm having other ideas to implement in the macro, ahahaha.

As for the use of the .act files that you have made available, so far I have had no problems, only improvements. Now my character is no longer clicking on the yellow square even though the monster is already dead.

Thanks again



Is it possible for you to share you code? I can't seem to get my autoattack to work because editing the sprite on my server is not allowed. I tried multiple times with the .spr editing but ultimately failed. A little help will go a long way mate.


Top
 Profile  
Reply with quote  
 Post subject: Re: ACT & SPR File for your Monster Pixel bot
Thanked: 0 time(s)  Unread post Posted: Sun Jun 14, 2020 4:01 am 
New User
New User



Joined: Wed Jun 10, 2020 4:04 pm
Posts: 4
Been thanked: 1 time(s)
Has thanked: 0 time(s)
Contribution Points: 14
Nyl- wrote:
What is an ACT file?

The monsters in Ragnarok are programed to do several movements to create animation specific to what they are intended to do. They have animation to walk, in some monsters they are just up and down movement. They also have the animation they do when they are being hit.

Usually when we create our bots, we only change the SPR file or the sprite of the monster for our pixel bot. But what happens is that the act of the monster is still the same. They have the same actions but the only thing different is the sprite.

Since most of you are using the spr file of your own or the the spr file that Roan1234321 provided, I find it a little bit cluttered when only changing the spr file of the monster. Let me just give you an example of this:

Without changing the ACT file
Image
You can see multiple square boxes layering on each other.

With changing the ACT file
Image
You can see a single box representing the monster

To get this effect, use my ACT & SPR File for your monster to attack or evade.


You can also check if you did it right by going to your grf editor. Search for the monster you want to change then
1.) Click on the act file then,
2.) Click on animation preview and lastly,
3.) Select what animation would you like to see.
Look at this example:

Image

Colors used in SPR file
Yellow = RGB( 255, 255, 00)
Pink = RGB( 224, 32, 128)

Here are some additional methods you can use to modify or add my sprite/act files to your ragnarok.

1. Download zdata.rar and extract it.
2. Open zdata.grf and the navigate to monster.act and monster.spr
3. Rename monster.act and monster.spr to the desired mob by right clicking on the file and click rename or just click the file and then press F2
Image

After these 3 steps you have 2 options. You can either merge the grf or edit the data.ini

Merging GRFs
Follow the procedure in my signature or you can click in this link
http://www.blueeye-macro.com/viewtopic. ... 35&t=35306

Data.ini edit
1. Navigate to your Ragnarok folder.
2. Copy your edited zdata.grf to your Ragnarok folder
3. Open data.ini in your Ragnarok folder.
4. Edit it like this image below.
Image


Hi sir, im new on grf editing, would you mind telling me how and where i can save the monsters to attack file? i managed to change the color of monster sprite but Im confused on where to put the monster to attack. thank you very much


Top
 Profile  
Reply with quote  
 Post subject: Re: ACT & SPR File for your Monster Pixel bot
Thanked: 0 time(s)  Unread post Posted: Mon Jul 20, 2020 10:54 pm 
New User
New User



Joined: Mon Jul 20, 2020 10:48 pm
Posts: 4
Been thanked: 3 time(s)
Has thanked: 1 time(s)
Contribution Points: 116
0dr4ud3 wrote:
Nyl- wrote:
0dr4ud3 wrote:
The monster is Sea Otter. I will be grateful if you can try something. :mrgreen:

Okay, I found one way to do it. Please check on the image.

Image

I noticed that whenever they cast a skill on you, a circle appears on the ground so I just changed it into a solid pixel. I will upload the file after my work. Just tried it on my lunch break. Is that okay with you or do I have to make it smaller?
-
Edit: Okay, I've made more samples for you to choose from. I suggest that you use the red color cause when the monster cast the skill it always blink to red color.
Image

I've also seen the downside of using this. Cause whenever you are using a skill that has also the same like water ball. You will also have the same circle for the mob. Example:
Image


I've searched the internet far and wide for how to change the cast targeting circle, but to no avail. I've been through ever folder and looked at every file in the grf.... please sir, teach me your ways. The file mentioned wasn't attached, nor where to throw it (data/effect?). As I dive more and more into BEM, modifying already provided scripts to meet my demands, this has eluded me. Could you provide the circle file, preferably the magenta 6-sided star? And tell me where to slap it? Thanks in advance!

Thank you very much, that's exactly what I needed. As for the use of other similar skills, I believe that for my use there will be no problem.

As for the color red, the only thing I'm afraid of is that I use an autopot macro, which is not very functional, because it starts exactly when the HP bar is red. It just had to be a different red than the red on the HP bar.

(This is another thing I would like to clarify, is there any other way to use potion except when the HP is already red?)

Thanks again for all the effort.


Top
 Profile  
Reply with quote  
 Post subject: Re: ACT & SPR File for your Monster Pixel bot
Thanked: 0 time(s)  Unread post Posted: Mon Jul 20, 2020 11:01 pm 
New User
New User



Joined: Mon Jul 20, 2020 10:48 pm
Posts: 4
Been thanked: 3 time(s)
Has thanked: 1 time(s)
Contribution Points: 116
Nyl- wrote:
0dr4ud3 wrote:
The monster is Sea Otter. I will be grateful if you can try something. :mrgreen:

Okay, I found one way to do it. Please check on the image.

Image

I noticed that whenever they cast a skill on you, a circle appears on the ground so I just changed it into a solid pixel. I will upload the file after my work. Just tried it on my lunch break. Is that okay with you or do I have to make it smaller?
-
Edit: Okay, I've made more samples for you to choose from. I suggest that you use the red color cause when the monster cast the skill it always blink to red color.
Image

I've also seen the downside of using this. Cause whenever you are using a skill that has also the same like water ball. You will also have the same circle for the mob. Example:
Image


I've searched the internet far and wide for how to change the cast targeting circle, but to no avail. I've been through ever folder and looked at every file in the grf.... please sir, teach me your ways. The file mentioned wasn't attached, nor where to throw it (data/effect?). As I dive more and more into BEM, modifying already provided scripts to meet my demands, this has eluded me. Could you provide the circle file, preferably the magenta 6-sided star? And tell me where to slap it? Thanks in advance!


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

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