Jump to content
  • 0

Fixed Level Limited Casting Bonus


Kakaroto

Question


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  638
  • Reputation:   95
  • Joined:  05/11/12
  • Last Seen:  

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.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  588
  • Reputation:   438
  • Joined:  01/26/16
  • Last Seen:  

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

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  638
  • Reputation:   95
  • Joined:  05/11/12
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1691
  • Reputation:   716
  • Joined:  12/21/14
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  638
  • Reputation:   95
  • Joined:  05/11/12
  • Last Seen:  

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

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1691
  • Reputation:   716
  • Joined:  12/21/14
  • Last Seen:  

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