Jump to content
  • 0

Can anyone help me with scripting? Increases the direct damage of an item


Question

Posted (edited)

I want to create script of potions that directly damage such as 20 physical damage point and 20 magic point. If my damage is 1000 per hit, when using potions it increases to 1020 per hit. I can't find this script on rathena/doc/item_bonus.txt

I'm trying to use a script. 

bonus2 bAddClass,Class_All,x;

bonus2 bMagicAddClass,Class_All,x;

or

bonus2 bSkillAtk,sk,n;

bonus bShortAtkRate,n;

bonus bLongAtkRate,n;

But the value of "x" and "n" is a percentage.

 

I'm still new to this.
my english is not good. 
If I use the wrong term I'm really sorry.
Thanks in advance for any comments.

Edited by nomeen

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
Quote

 1,000 -> 1020 = 2%

bonus2 bAddClass,Class_All,2; bonus2 bMagicAddClass,Class_All,2;

 

thanks for your help But I want fixed damage that is not calculated from the initial damage.
because of this script If I deal damage per hit at 200 it becomes 204.
Not sure what I really need is a script to add MasteryATK.
https://irowiki.org/wiki/ATK#ExtraATK

My Atk for potions will not appear in the character status window. But it directly increases the damage when I perform physical and magical attacks. and is a fixed damage

I'm still new to this.
my english is not good. 
If I use the wrong term I'm really sorry.
Thanks in advance for any comments.

Edited by nomeen

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