Jump to content
  • 0

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


nomeen

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.01
  • Content Count:  8
  • Reputation:   1
  • Joined:  08/23/22
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  928
  • Reputation:   170
  • Joined:  04/05/13
  • Last Seen:  

1000 -> 1020 = 2%

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.01
  • Content Count:  8
  • Reputation:   1
  • Joined:  08/23/22
  • Last Seen:  

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