Jump to content

Release: Soul Link Modification - Script-based


Secrets

Recommended Posts


  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

Soul Link Modification - Script-based


Information

This source allows you to "script" additional bonuses on soul link buffs like an item script.
See db/soul_link.yml for example.

Q: Why this and not OnPCStatCalcEvent?
A: PCStatCalc is known to be buggy.

Alternate diff link: https://github.com/secretdataz/rathena/commit/6b91c4d18cc537e25a64f371ee3faf468b9dcc99.diff

THIS RELEASE IS SUBJECT TO GPLv3 LICENSE

Copyright © - Secrets <[email protected]> 2018 - All Rights Reserved

Take a look at my premade script list if you like my works or want one of my premade scripts. or

kofi2.png


 

Edited by Secrets
  • Upvote 1
  • Love 2
  • MVP 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Nice released @Secrets will this override the old soul link bonuses or its an additional bonus.?

while compiling my files, warning in that part.

status.cpp:14748:44: warning: ISO C++ forbids converting a string constant to char*’ [-Wwrite-strings]
  status_read_soullink_db("db/soul_link.yml");

Im using Ubuntu.

Edited by Radian
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

6 hours ago, Radian said:

Nice released @Secrets will this override the old soul link bonuses or its an additional bonus.?

while compiling my files, warning in that part.


status.cpp:14748:44: warning: ISO C++ forbids converting a string constant to char*’ [-Wwrite-strings]
  status_read_soullink_db("db/soul_link.yml");

Im using Ubuntu.

This will add, not override the old bonuses.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

@Secrets any way to fix this? or this is normal?

image.png.619f0818f35179a0b466acfc72e6c1f9.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

8 hours ago, Secrets said:

This will add, not override the old bonuses.

Thats cool.. thanks!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@Secrets

There's a warning when, I use reloadstatus command
 

[Warning]: status_read_soullink_db: Expected a constant with SL_ prefix, got Header.
[Info]: status_read_soullink_db: Done reading 15 custom soul links.

 

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  03/20/17
  • Last Seen:  

so can u use @reloaditemdb command to reload the scripts for this soul link mod? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

Is it possible to add soul links for ninja and gunslingers using this? (of course they'll be buffed using an item since Ninja/Gunslinger Spirit skills are not available)

ex:

SL_NINJA: |
    {
        bonus bStr,1;
    }

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

On 4/2/2018 at 7:22 PM, Quesooo said:

@Secrets any way to fix this? or this is normal?

image.png.619f0818f35179a0b466acfc72e6c1f9.png

@Secrets how to solve this please ^_^

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  101
  • Reputation:   3
  • Joined:  09/15/16
  • Last Seen:  

On 4/2/2018 at 7:22 PM, Quesooo said:

@Secrets any way to fix this? or this is normal?

image.png.619f0818f35179a0b466acfc72e6c1f9.png

@Secrets how to remove this warning in my server? tjanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

3 hours ago, iamkevin said:

@Secrets how to remove this warning in my server? tjanks

Try In status.cpp

find:

void status_read_soullink_db(char* file_name) {

change to:

void status_read_soullink_db(const char* file_name) {

 

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  101
  • Reputation:   3
  • Joined:  09/15/16
  • Last Seen:  

3 hours ago, Haikenz said:

Try In status.cpp

find:


void status_read_soullink_db(char* file_name) {

change to:


void status_read_soullink_db(const char* file_name) {

 

thanks sir, i was able to removed the warning sign with your help but i got this warning:
 

[Warning]: status_read_soullink_db: Expected a constant with SL_ prefix, got Header.
[Info]: status_read_soullink_db: Done reading 15 custom soul links.
 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   2
  • Joined:  09/13/18
  • Last Seen:  

hi,

 

tried and it doesnt work on my latest downloaded rathena file?

what else i am missing no error on recompile

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

On 9/20/2018 at 10:13 AM, dantemustdie said:

hi,

 

tried and it doesnt work on my latest downloaded rathena file?

what else i am missing no error on recompile

did you patch it to your server?

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   6
  • Joined:  12/10/11
  • Last Seen:  

Very nice update and it is working! Is this possible to reload when the server is  currently up?

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  148
  • Reputation:   21
  • Joined:  11/12/18
  • Last Seen:  

I dont get what was the meaning of those directories.. I was doing manual source update.. how to embed these source scripts?

On 6/15/2019 at 9:27 PM, DrKraken said:

follow the instruction. but there's a error in the code 

got it working now

On 6/16/2019 at 9:55 PM, DrKraken said:

how? can you teach me?

just follow the instructions

On 6/17/2019 at 3:18 PM, DrKraken said:

can you help me to solve the problem?

what error you got?

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

i try this and got no error while re compiling

 

but when i'm trying to put the effect and use the Soul link skill on character

 

id does not apply the bonuses

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   26
  • Joined:  11/20/11
  • Last Seen:  

@secrets how to remove bonuses when you die and revive at the same place, the bonus effects retain unless you get buff with another status.

solved. solution lies in status.cpp and pc.cpp

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

[Warning]: status_read_soullink_db: Expected a constant with SL_ prefix, got Header.
[Info]: status_read_soullink_db: Done reading 15 custom soul links.

 

Anyone manage to get rid of this warning? it's giving me Memory leaks.

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

To get rid of the warning, just comment the header in db/soul_link.yml

#Header: # Metadata for future use
#  Type: MOD_SECRET_SOUL_LINK
#  Version: 1

 

  • Love 1
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

Any updates on this?

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

Any update about this? 

 

getting error on latest rev.

image.thumb.png.5d9e5c63ed0c0204a91faf9940e1f417.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  92
  • Reputation:   4
  • Joined:  06/21/15
  • Last Seen:  

20 hours ago, Takuyakii said:

Any update about this? 

 

getting error on latest rev.

image.thumb.png.5d9e5c63ed0c0204a91faf9940e1f417.png

SAME ERROR HERE. ANY UPDATES?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

 

On 2/21/2020 at 5:20 PM, Takuyakii said:

Any update about this? 

 

getting error on latest rev.

image.thumb.png.5d9e5c63ed0c0204a91faf9940e1f417.png

Solved ❤️

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  04/20/17
  • Last Seen:  

On 3/3/2020 at 2:33 PM, Takuyakii said:

 

Solved ❤️

how did you fixed it?

 

Link to comment
Share on other sites

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.

×
×
  • Create New...