diff options
-rw-r--r-- | npc/craft/options.txt | 5 | ||||
-rw-r--r-- | npc/craft/smith.txt | 2 |
2 files changed, 4 insertions, 3 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; diff --git a/npc/craft/smith.txt b/npc/craft/smith.txt index 0e8437119..9843cac26 100644 --- a/npc/craft/smith.txt +++ b/npc/craft/smith.txt @@ -53,7 +53,7 @@ function script SmithSystem { delinventorylist(); // Needed, because we'll rely on rfind() getinventorylist(); .@index=array_rfind(@inventorylist_id, .@it); - if (csys_Check(.@index)) { + if (csys_Check(.@index, 75000)) { csys_Apply(.@index); } } |