Jump to content
  • 0

(Solved) Increase stats by %


boonpal2

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

Hello guys, 

I have just recently started to learn about scripting  and editing my offline server, so. Let's get to the point

is there anyway i can make an equipment that would give, let's say, 4% str or if refined 7 or more would give 5% str based on base str 

Thank you for your help,

Have a good day !

Edited by boonpal2
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  355
  • Reputation:   34
  • Joined:  02/09/12
  • Last Seen:  

Use Str variable and multiply it by 0.X, 1 meaning 100% and sum it to the total Str

 

like 

 

bonus bStr,bStr*0.24;

 

Meaning that it will increase Str by 24%

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

bonus bStr,readparam(bStr)*11/100;

 

It will give STR + 11%

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

Thank you so much ! @Dissidia and @M45T3R 

I appreciate all your help !!

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