diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-19 00:03:33 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-19 00:03:33 -0300 |
commit | 1cc2e3291bad188397f90e7c6e9492f406a1b21e (patch) | |
tree | acff6fa927622993d09ef387a62769f0374dfdd6 /npc/functions | |
parent | a97dcce0dce7dd24a4e68bab55911ff3d3c7aeca (diff) | |
download | serverdata-1cc2e3291bad188397f90e7c6e9492f406a1b21e.tar.gz serverdata-1cc2e3291bad188397f90e7c6e9492f406a1b21e.tar.bz2 serverdata-1cc2e3291bad188397f90e7c6e9492f406a1b21e.tar.xz serverdata-1cc2e3291bad188397f90e7c6e9492f406a1b21e.zip |
Unlock refine up to +15 after MK is slain.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/refine.txt | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt index 3baa477ea..fe10d8403 100644 --- a/npc/functions/refine.txt +++ b/npc/functions/refine.txt @@ -84,7 +84,11 @@ function script refineMaster { .@savior = true; // Max refining level: 10 - if (getequiprefinerycnt(.@it) >= (.@savior ? 12 : 10)) { + if ($WORLD_STORYLINE >= 5) + .@maxlv = (.@savior ? 12 : 10); + else + .@maxlv = (.@savior ? 15 : 12); + if (getequiprefinerycnt(.@it) >= .@maxlv) { mesn; mesq l("This item cannot be refined further."); return; @@ -94,13 +98,13 @@ function script refineMaster { .@price=(.@rlv+1)*1000; .@price-=min(.@price, getiteminfo(.@item, ITEMINFO_ELV) * 10); .@price=POL_AdjustPrice(.@price); - .@amount=(.@rlv/2)+1; // required item switch (.@rlv) { case 0: case 1: case 2: case 3: + .@amount=(.@rlv/2)+1; .@rg=Wurtzite; break; case 4: case 5: @@ -111,9 +115,16 @@ function script refineMaster { case 8: case 9: case 10: - default: .@amount=((.@rlv-8)/2)+1; .@rg=Arcanum; break; + case 11: + case 12: + case 13: + case 14: + case 15: + default: + .@amount=((.@rlv-8)/2)+2; + .@rg=Arcanum; break; } mesn; mesq l("This @@ is a nice stuff. I can refine it for @@ GP and @@ @@.", getitemlink(.@item), .@price, .@amount, getitemlink(.@rg)); |