Jump to content
  • 0

Item bonus effect script for weapons


ermit123

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   1
  • Joined:  11/22/12
  • Last Seen:  

Hello I want something new for item bonus effect on weapons but I don't know how to make it. Something like this

[ If equipped on Right Hand ]
HIT + 5.
Increase Axe Tornado damage by 15%.
Reduce cooldown of Axe Tornado by 0.5 seconds.
[ If equipped on Left Hand ]
INT + 3
Increase Venom Splasher damage by 10%.
Increase Poison Buster damage by 10%.

It's similar to BLAZE AND WHITE MAGIC RING a jRO item ring but in weapon. Thanks in advance

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  113
  • Reputation:   47
  • Joined:  06/02/12
  • Last Seen:  

Hello.

Go to \db\(pre-)re\item_db_equip.yml and find the weapon you want to have this new effect.

Then insert the following code in the Script: section

    Script: |
      .@p = getitempos();
      if (.@p == EQP_HAND_R) {
         bonus bHit,5;
         bonus2 bSkillAtk,"NC_AXETORNADO",15;
         bonus2 bSkillCooldown,"NC_AXETORNADO",-500;
      }
      if (.@p == EQP_HAND_L) {
         bonus bInt,3;
         bonus2 bSkillAtk,"AS_SPLASHER",10;
         bonus2 bSkillAtk,"SO_POISON_BUSTER",10;
      }

You can find all possible item bonus effects in \doc\item_bonus.txt

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   1
  • Joined:  11/22/12
  • Last Seen:  

Hello thanks for answering but I got error image.png.34d82154104fc2f014bc984206c17a6c.png

Edited by ermit123
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  113
  • Reputation:   47
  • Joined:  06/02/12
  • Last Seen:  

5 hours ago, ermit123 said:

Hello thanks for answering but I got error image.png.34d82154104fc2f014bc984206c17a6c.png

Is your rAthena up to date? This command is from february, so if your server is older than that it wont work.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   1
  • Joined:  11/22/12
  • Last Seen:  

I'm using anacondaq's Offline server 2022 so I don't know what date is the rAthena is it ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   3
  • Joined:  09/17/22
  • Last Seen:  

9 hours ago, ermit123 said:

I'm using anacondaq's Offline server 2022 so I don't know what date is the rAthena is it ?

You can go ingame and type command "@version" and it would show you the rathena commit version you are running and just go to official rathena github page and just match commit version

also i would recommend upgrading to latest rathena 

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   1
  • Joined:  11/22/12
  • Last Seen:  

I see my version of rathena and I don't know how to upgrade to latest rathena, did you know some tutorials? thanks

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
Answer this question...

×   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...