Jump to content

Recommended Posts

Posted
5 minutes ago, Remix_ said:

@ManokStreZ, I suggest you apply the codes manually, applying multiple custom patches will affect the code structures inside your server files. I'm just finalizing the autoattack and add it to pull request so the co-devs can inspect the codes before it merges as an official update.

i did manually, later i post here the error i got

Posted
2 hours ago, Remix_ said:

Hello @Frost Diver, I updated the diff attached to my post, I forgot to add the timer_func and unordered set to contain the monsterID. It should work now. 🙂
@ManokStreZ, I suggest you apply the codes manually, applying multiple custom patches will affect the code structures inside your server files. I'm just finalizing the autoattack and add it to pull request so the co-devs can inspect the codes before it merges as an official update.

thank you sir. it work like a charm now ^^

  • Like 1
  • 2 weeks later...
Posted
On 3/14/2024 at 8:36 PM, Remix_ said:

I was reading this topic yesterday and discovered that most of the requests were not added. Therefore, I am making my debut here to share with you the updated @autoattack function.

Added Commands:
@autoattack - display all @autoattack commands.
@autoattack on/off
@autoattack list
@autoattack +monsterID
@autoattack -monsterID


#Edit
If you use [ @autoattack on ] without adding monster targets will attack all the monsters (DEFAULT setting.)


Auto-attack can be toggled on or off using the @autoattack on/off command.
Specific mobs can be added or removed from the target list using @autoattack +<mobID> or @autoattack -<mobID> respectively.

Since I'm using the latest version, applying the patch shouldn't be a problem.(I also removed the struct warnings from the map_session_data).

image.png.2c49a440358ceed88f6f9ce3d8d5a19c.pngimage.png.6f8cf006cf9c69397a26a7ef65833894.png

Attached(Updated):

atcommand[remix] 6.94 kB · 23 downloads

Hello, this is not working on old emulator . im using early 2020 emu rA

  • 4 weeks later...
Posted
On 4/28/2024 at 11:21 AM, Louis T Steinhil said:

I fixed this issue by removing static on this part

from this static TIMER_FUNC(autoattack_timer) {

to this TIMER_FUNC(autoattack_timer) {

can you create diff or patch file for lastest rathena.

Posted
9 minutes ago, Louis T Steinhil said:

 

yes

I try to patch it but I get an error timer something, is there a latest diff for this?

  • 1 month later...
Posted (edited)

It working.

But it walk like a dumb.

Anyone can modify it to make it walk straight until it stuck and then try another path? Or make it choose more further point. Not random walking around same point.

This is my diff for last rA I just pull yesterday.

I'm not a coder. Just combined everything I read from this topic and read the code then apply it manually. I just googled how to made this patch file and want to share.

I can read the code to analysis how it work but can't write the code by myself. xD

@tack.patch

Edited by PercyNPC
  • 1 month later...
  • 1 month later...
Posted
On 3/14/2024 at 7:36 PM, Remix_ said:

I was reading this topic yesterday and discovered that most of the requests were not added. Therefore, I am making my debut here to share with you the updated @autoattack function.

Added Commands:
@autoattack - display all @autoattack commands.
@autoattack on/off
@autoattack list
@autoattack +monsterID
@autoattack -monsterID


#Edit
If you use [ @autoattack on ] without adding monster targets will attack all the monsters (DEFAULT setting.)


Auto-attack can be toggled on or off using the @autoattack on/off command.
Specific mobs can be added or removed from the target list using @autoattack +<mobID> or @autoattack -<mobID> respectively.

Since I'm using the latest version, applying the patch shouldn't be a problem.(I also removed the struct warnings from the map_session_data).

image.png.2c49a440358ceed88f6f9ce3d8d5a19c.pngimage.png.6f8cf006cf9c69397a26a7ef65833894.png

Attached(Updated):

atcommand[remix] 6.94 kB · 91 downloads

thank you for your code. but i have a bit question. when a character list a monster into the target list. why other player also get the same list? i mean the list become global, not personal. something wrong with the script?

  • 3 weeks later...
Posted
On 3/14/2024 at 8:36 PM, Remix_ said:

I was reading this topic yesterday and discovered that most of the requests were not added. Therefore, I am making my debut here to share with you the updated @autoattack function.

Added Commands:
@autoattack - display all @autoattack commands.
@autoattack on/off
@autoattack list
@autoattack +monsterID
@autoattack -monsterID


#Edit
If you use [ @autoattack on ] without adding monster targets will attack all the monsters (DEFAULT setting.)


Auto-attack can be toggled on or off using the @autoattack on/off command.
Specific mobs can be added or removed from the target list using @autoattack +<mobID> or @autoattack -<mobID> respectively.

Since I'm using the latest version, applying the patch shouldn't be a problem.(I also removed the struct warnings from the map_session_data).

image.png.2c49a440358ceed88f6f9ce3d8d5a19c.pngimage.png.6f8cf006cf9c69397a26a7ef65833894.png

Attached(Updated):

atcommand[remix] 6.94 kB · 101 downloads

how to apply this patch?

 

Posted (edited)
On 9/4/2024 at 5:31 AM, MicromeX said:

how to apply this patch?

 

rename the file with .patch extention

right click on the file pick review/apply single patch

image.png.a44c9cd603a4cebb3127e567d8e2bfcc.png

 

go to your rathena server root folder and select it

image.png.4cec609072ac099176c588fa77f54321.png

 

but for this patch file i check have issue like this

image.thumb.png.95326ee3416846537450c044d44d2fc6.png

 

try @PercyNPC file, show like this, click on path all items and then save, last recompile your rathena
image.thumb.png.b080883d2f7089375ce5401b8a007990.png

 

Edited by hendra814

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...