diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-29 00:25:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-29 00:25:49 -0300 |
commit | 8dc80ccdb7b0916aab47f8d24306c6c865ad4dfc (patch) | |
tree | ec33ef42c2a3125a3e875864b43ad1a7c65bef51 /npc/017-4/refine.txt | |
parent | 8071ddde86666c1495c5119b3927f5718b690f60 (diff) | |
parent | d6358d0d127ffac94f243d29eccc6793567e9c60 (diff) | |
download | serverdata-8dc80ccdb7b0916aab47f8d24306c6c865ad4dfc.tar.gz serverdata-8dc80ccdb7b0916aab47f8d24306c6c865ad4dfc.tar.bz2 serverdata-8dc80ccdb7b0916aab47f8d24306c6c865ad4dfc.tar.xz serverdata-8dc80ccdb7b0916aab47f8d24306c6c865ad4dfc.zip |
Merge branch 'master' into testserver
Conflicts solved with -X theirs
Diffstat (limited to 'npc/017-4/refine.txt')
-rw-r--r-- | npc/017-4/refine.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/npc/017-4/refine.txt b/npc/017-4/refine.txt index 874cc6c99..4c3e472d7 100644 --- a/npc/017-4/refine.txt +++ b/npc/017-4/refine.txt @@ -20,12 +20,52 @@ OnInit: 017-4,23,23,0 script Fusus NPC_FUSUS,{ showavatar NPC_FUSUS; + select + l("Repair items"), + l("Compact forge stones"); + mes ""; + if (@menu == 2) + goto L_Fusus; @menu=0; do { repairMaster(); } while (getbrokencount() >= 0); +L_Fusus: + inventoryplace Iten, 1; + mesn; + mesq l("I can fuse an @@ and 20 @@, besides @@ GP, into 3~5 @@.", getitemlink(CopperIngot), getitemlink(SilkCocoon), 500, getitemlink(Wurtizite)); + mesc l("5 @@ can be fused in a @@", getitemlink(Wurtizite), getitemlink(Graphene)); + mesc l("5 @@ can be fused in a @@", getitemlink(Graphene), getitemlink(Arcanum)); + select + rif(Zeny >= 500, l("I want the Wurtizite")), + rif(countitem(Wurtizite) >= 5, l("I want Graphene")), + rif(countitem(Graphene) >= 5, l("I want Arcanum")), + l("Do nothing"); + mes ""; + switch (@menu) { + case 4: + close; + case 1: + if (!transcheck(CopperIngot, 1, SilkCocoon, 20)) + close; + Zeny -= 500; + getitem Wurtizite, any(3,3,4,4,4,5); // 3: ~33%. 4: =50%. 5: ~17%. AVG: 3.8 + break; + case 2: + delitem Wurtizite, 5; + getitem Graphene, 1; + break; + case 3: + delitem Graphene, 5; + getitem Arcanum, 1; + break; + } + mesc l("Done!"), 2; + next; + goto L_Fusus; + OnInit: .sex=G_MALE; .distance=5; |