diff options
Diffstat (limited to 'npc/functions/refine.txt')
-rw-r--r-- | npc/functions/refine.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt index 74f72857f..1936b5542 100644 --- a/npc/functions/refine.txt +++ b/npc/functions/refine.txt @@ -90,7 +90,7 @@ function script refineMaster { } mesn; mesq l("This @@ is a nice stuff. I can refine it for @@ GP and @@ @@.", getitemlink(.@item), .@price, .@amount, getitemlink(.@rg)); - mesc l("Success ratio is of aprox. @@ %", (100-(.@rlv*7))+rand(-6,6)); + mesc l("Success ratio is of aprox. @@ %", (100-(.@rlv*7))+rand2(-6,6)); next; if (askyesno() != ASK_YES) close; @@ -144,7 +144,7 @@ function script refineMaster { } // Were we successful? - if (getequippercentrefinery(.@it) > rand(100)) { + if (getequippercentrefinery(.@it) > rand2(100)) { successrefitem .@it; mesn; mesq l("HAHAHAHAH! Shiny as new, and stronger than ever! Have fun!"); @@ -152,7 +152,7 @@ function script refineMaster { mesc l("Armors: +3~5 defense"); next; // Perhaps the item has broken? - } else if (rand(100) < .@rvl*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; } |