Jump to content
  • 0

Fixed Level Limited Casting Bonus


Question

Posted

Hello everyone, I'm trying to create a script for an item, but I came across a pretty newbie question, how to create the script for an item limited to a certain level of refinement?

For example:

At each refine from +11 to +15:
Fixed casting -0.1s.


Can anyone help me with this? I thank you.

5 answers to this question

Recommended Posts

  • 0
Posted
18 hours ago, Secrets said:

.@r = getrefine()-11; if(.@r >= 0) bonus bFixedCast,min(.@r * 100, 500);

Does this bonus only work if the item is refined above +11?

  • 0
Posted (edited)

as i see yes

.@r is the refine -11

so when the refine 11 .@r will be 0

so at 11 is (0*100,500) = no bonus

at 12 (1*100,500) = 100

13 (2*100,500) = 200 etc

the [min] mean that it will take the minimum number so the last will be 16

16 (5*100,500) = 500

now 17 (6*100,500) = also 500 cuz 600 > 500

 

Edited by sader1992
  • Upvote 1
  • 0
Posted
On 10/10/2017 at 7:49 AM, sader1992 said:

as i see yes


.@r is the refine -11

so when the refine 11 .@r will be 0

so at 11 is (0*100,500) = no bonus

at 12 (1*100,500) = 100

13 (2*100,500) = 200 etc

the [min] mean that it will take the minimum number so the last will be 16

16 (5*100,500) = 500

now 17 (6*100,500) = also 500 cuz 600 > 500

 

 

But to remove the fixed cast, it should not be?

bonus bFixedCast,-min

  • Upvote 1
  • 0
Posted (edited)
2 hours ago, Kakaroto said:

 

But to remove the fixed cast, it should not be?

bonus bFixedCast,-min

well i didn't really notice that , and that's true i did look up for similar script and i found this item

Foxtail [0]   [Lower Head]   Item ID# 18536 (Foxtail)

MATK +10. Reduces fixed cast time by 0.1 seconds.

{ bonus bMatk,10; bonus bFixedCast,-100; },{},{}

 

Edited by sader1992

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