Jump to content
  • 0

Item bonus effect script for weapons


Question

Posted

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

6 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted
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.

  • 0
Posted
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

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.

  • Recently Browsing   0 members

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