diff options
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; |