diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-03 14:40:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-03 14:40:37 -0300 |
commit | d36269b24c8a0105cb482c568c59b31615cbd89e (patch) | |
tree | e69a6c5ecdeb166ec5ffba0a3df1fb01d9aeb12e | |
parent | f22972d60744253272f3f8dc73c080c74bf5b409 (diff) | |
download | serverdata-d36269b24c8a0105cb482c568c59b31615cbd89e.tar.gz serverdata-d36269b24c8a0105cb482c568c59b31615cbd89e.tar.bz2 serverdata-d36269b24c8a0105cb482c568c59b31615cbd89e.tar.xz serverdata-d36269b24c8a0105cb482c568c59b31615cbd89e.zip |
Fix a typo on refine master, move to rand2()
-rw-r--r-- | npc/functions/refine.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt index 74f72857f..eb382e580 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*2) { failedrefitem .@it; mesc l("*CRASH*"); next; |