Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Fri Nov 22, 2024 2:13 am

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
Chickens can talk
Dogs have 4 legs
Fish can swim
Elephants can fly
   

Topic review - ACT & SPR File for your Monster Pixel bot
Author Message
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
How to change the .act file?
I want to edit the movement of its death.
Quote:
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
Post Posted: Sat Jul 17, 2021 1:28 pm
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
JorgeCavalcanti wrote:
Hello Is there any difference in using a spr. and act. with pixels height and width bigger or it is better to use a small one ? Thanks for the thread nyl, i tested and worked like a charm, now the monster doesn't have a fucking ton of squares for each movement and when it dies it suddenly vanishes!


Hi, better to use the small one. So that it will easily click the monster.
Post Posted: Mon Feb 08, 2021 10:32 am
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
Hello Is there any difference in using a spr. and act. with pixels height and width bigger or it is better to use a small one ? Thanks for the thread nyl, i tested and worked like a charm, now the monster doesn't have a fucking ton of squares for each movement and when it dies it suddenly vanishes!
Post Posted: Sun Feb 07, 2021 1:55 pm
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
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!
Post Posted: Mon Jul 20, 2020 11:01 pm
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
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.
Post Posted: Mon Jul 20, 2020 10:54 pm
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
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
Post Posted: Sun Jun 14, 2020 4:01 am
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
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.
Post Posted: Wed May 13, 2020 4:03 pm
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
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")
Post Posted: Mon May 11, 2020 12:44 pm
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
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.
Post Posted: Fri May 08, 2020 4:29 pm
  Post subject:  Re: ACT & SPR File for your Monster Pixel bot  Reply with quote
Roan1234321 wrote:
You asked me for what I think is the right thing to do and I have given you my answer. But what did you reply you want me to prove my claims.
aren't you being to rude for someone who is asking.


Wow speaking of rude. Did anyone here came to someone elses thread claiming boldly that their used method in the thread is erroneous. Without showing the actual error log.

Roan1234321 wrote:
I would recommend not changing act files,
some monster have more act than common monsters which could cause error. If the game server request an act that is not on your grf file it would crash the game client.
I would rather recommend just editing the spr files you can just add more images in your spr files 150 images would be safe I have seen monster that has 78 images so I just double it you can make smaller image's if you want..


Oh, and I also asked what server you are getting those errors and also the error that you encounter. But seems like, we have selective approach. And just ignored the relevant question. I even asked for the details to figure something out of the problem.

Nyl- wrote:
Can you post the error you are getting? Server that you are trying to use it on? And the monsters you changed? We can think of a workaround to this if you can provide the necessary details.

One possible solution would be to pump up the act file with multiple acts with the same number of acts on the monster that is causing the error but have the same action in every frame of every animation.

I have a follow up question. So what do you think is the right thing to do when the bot randomly clicks on the screen because the pixels explodes when the monster dies? Example: Creamy monster that 0dr4ud3 mentioned in this thread.

Hoping to have your replies as soon as I can.


So tell me, who is rude again?
Post Posted: Fri May 08, 2020 2:07 am

All times are UTC


Jump to:  


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