diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-10 13:43:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-10 13:43:44 -0300 |
commit | 804576356b8726cbc52c7aaeab7804d002f28435 (patch) | |
tree | 5e51ecfaaa4407b53126528f8e426eab1b32d4a3 /npc/craft/options.txt | |
parent | 462c9dc750807e2edec0e219157204d86e231f48 (diff) | |
download | serverdata-804576356b8726cbc52c7aaeab7804d002f28435.tar.gz serverdata-804576356b8726cbc52c7aaeab7804d002f28435.tar.bz2 serverdata-804576356b8726cbc52c7aaeab7804d002f28435.tar.xz serverdata-804576356b8726cbc52c7aaeab7804d002f28435.zip |
Raise chance to get bonuses on new crafts from 45%~75% to 80%~110%
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r-- | npc/craft/options.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 0118180ab..a492b9f45 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -318,9 +318,10 @@ function script csys_Confirm { // Check if you'll have success in applying options or not // Returns true if you was successful, and also cleans previous options // If you only want cleaning, just disregard the output. -// csys_Check( invindex ) +// csys_Check( invindex{, base} ) function script csys_Check { .@id=getarg(0); + .@base=getarg(1, 40000); // Clear all five options setitemoptionbyindex(.@id, 0, 0, 0); @@ -330,7 +331,7 @@ function script csys_Check { setitemoptionbyindex(.@id, 4, 0, 0); // Base Success Rate is: 40% + 5% each craft skill level - .@base=4000+(getskilllv(TMW2_CRAFT)*500); + .@base+=(getskilllv(TMW2_CRAFT)*500); if (rand(10000) < .@base) return true; return false; |