Kakaroto Posted October 8, 2017 Share Posted October 8, 2017 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. Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted October 9, 2017 Share Posted October 9, 2017 [email protected] = getrefine()-11; if([email protected] >= 0) bonus bFixedCast,min([email protected] * 100, 500); 1 Quote Link to comment Share on other sites More sharing options...
0 Kakaroto Posted October 9, 2017 Author Share Posted October 9, 2017 18 hours ago, Secrets said: [email protected] = getrefine()-11; if([email protected] >= 0) bonus bFixedCast,min([email protected] * 100, 500); Does this bonus only work if the item is refined above +11? Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 10, 2017 Share Posted October 10, 2017 (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 October 10, 2017 by sader1992 1 Quote Link to comment Share on other sites More sharing options...
0 Kakaroto Posted October 26, 2017 Author Share Posted October 26, 2017 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 1 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 26, 2017 Share Posted October 26, 2017 (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 October 26, 2017 by sader1992 Quote Link to comment Share on other sites More sharing options...
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