summaryrefslogtreecommitdiff
path: root/npc/functions/refine.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-04 15:04:18 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-04 15:04:18 -0300
commit839a57cfff7f724b068f50b25f2f8b634afaa3c5 (patch)
tree9bd06a6cfab56da77d28067068febf755bd44858 /npc/functions/refine.txt
parent2db3c74fb76bd52e896f583a43415faffc7df1e3 (diff)
downloadserverdata-839a57cfff7f724b068f50b25f2f8b634afaa3c5.tar.gz
serverdata-839a57cfff7f724b068f50b25f2f8b634afaa3c5.tar.bz2
serverdata-839a57cfff7f724b068f50b25f2f8b634afaa3c5.tar.xz
serverdata-839a57cfff7f724b068f50b25f2f8b634afaa3c5.zip
Item may break more often while refining.
Diffstat (limited to 'npc/functions/refine.txt')
-rw-r--r--npc/functions/refine.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt
index 6275c042c..55d39c497 100644
--- a/npc/functions/refine.txt
+++ b/npc/functions/refine.txt
@@ -153,17 +153,6 @@ function script refineMaster {
mesc l("Weapons: +8 attack, +8 magic attack");
mesc l("Armors: +3~5 defense");
next;
- // Perhaps the item has broken? (~0.01% chance)
- } else if (rand2(10000) <= 1) {
- failedrefitem .@it;
- mesc l("*CRASH*");
- next;
- mesn;
- mesq l("Ops... I hammered this stuff too hard... It's junk now.");
- next;
- mesn;
- mesq l("Well, you were warned. Do you have any other stuff for me?");
- next;
// Item is weakened. (1% per refine level)
} else if (rand2(100) < .@rlv) {
downrefitem .@it, 1;
@@ -176,6 +165,17 @@ function script refineMaster {
mesn;
mesq l("I'm sure I could refine this again, if you bring me the payment and the reagents again.");
next;
+ // Perhaps the item has broken? (~0.1% chance/refine level)
+ } else if (rand2(10000) <= 10*(.@rlv+1)) {
+ failedrefitem .@it;
+ mesc l("*CRASH*");
+ next;
+ mesn;
+ mesq l("Ops... I hammered this stuff too hard... It's junk now.");
+ next;
+ mesn;
+ mesq l("Well, you were warned. Do you have any other stuff for me?");
+ next;
// Nothing happens
} else {
mesn;