summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-10 13:43:44 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-10 13:43:44 -0300
commit804576356b8726cbc52c7aaeab7804d002f28435 (patch)
tree5e51ecfaaa4407b53126528f8e426eab1b32d4a3 /npc
parent462c9dc750807e2edec0e219157204d86e231f48 (diff)
downloadserverdata-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')
-rw-r--r--npc/craft/options.txt5
-rw-r--r--npc/craft/smith.txt2
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);
}
}