summaryrefslogtreecommitdiff
path: root/npc/functions/refine.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-03 14:43:22 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-03 14:43:22 -0300
commit35f2d5a7866ecd4d1728d0741ae024d589f3663b (patch)
tree97ea7fccaf6f3e2639bd24ca70ce29f9f905215d /npc/functions/refine.txt
parentd36269b24c8a0105cb482c568c59b31615cbd89e (diff)
downloadserverdata-35f2d5a7866ecd4d1728d0741ae024d589f3663b.tar.gz
serverdata-35f2d5a7866ecd4d1728d0741ae024d589f3663b.tar.bz2
serverdata-35f2d5a7866ecd4d1728d0741ae024d589f3663b.tar.xz
serverdata-35f2d5a7866ecd4d1728d0741ae024d589f3663b.zip
Now, it is possible that nothing happens while refinining an item.
Item with high success chance break/downgrade more often than those with low chance.
Diffstat (limited to 'npc/functions/refine.txt')
-rw-r--r--npc/functions/refine.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt
index eb382e580..1936b5542 100644
--- a/npc/functions/refine.txt
+++ b/npc/functions/refine.txt
@@ -152,7 +152,7 @@ function script refineMaster {
mesc l("Armors: +3~5 defense");
next;
// Perhaps the item has broken?
- } else if (rand2(100) < .@rlv*2) {
+ } else if (rand2(100) < .@rlv) {
failedrefitem .@it;
mesc l("*CRASH*");
next;
@@ -163,7 +163,7 @@ function script refineMaster {
mesq l("Well, you were warned. Do you have any other stuff for me?");
next;
// Item is weakened.
- } else {
+ } else if (rand2(100) < .@rlv) {
downrefitem .@it, 1;
mesn;
mesq l("A masterpiece!... Whaaaat, this stuff got ##Bweaker##b??");
@@ -174,6 +174,14 @@ 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;
+ // Nothing happens
+ } else {
+ mesn;
+ mesq l("Well, I did my best, but this had been so refined, that it was difficult to find my way.");
+ next;
+ mesn;
+ mesq l("I'm sure I could refine this again, if you bring me the payment and the reagents again.");
+ next;
}
return;
}