diff options
Diffstat (limited to 'npc/003-5/jeweler.txt')
-rw-r--r-- | npc/003-5/jeweler.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/npc/003-5/jeweler.txt b/npc/003-5/jeweler.txt index 8d5d57331..3b362b60e 100644 --- a/npc/003-5/jeweler.txt +++ b/npc/003-5/jeweler.txt @@ -26,6 +26,7 @@ L_Menu: l("I want to shop."), -, l("I want to craft rings."), L_Craft, rif(countitem(GoldenRing) >= 1 || countitem(SilverRing) >= 1, l("I want to create polished gemstones.")), L_Gemstone, + l("I want to remove all stuff applied to my ring!"), L_Clear, l("Nothing, sorry."), L_Close; openshop; @@ -120,6 +121,41 @@ L_BlackPearl: goto L_Menu; */ +L_Clear: + mesn l("Inya, the Jeweler"); + mesq l("Oh... Of course! I'll even do this for free!"); + next; + mesn l("Inya, the Jeweler"); + mesq l("But be warned, if you have multiple rings, I can pick the wrong one..."); + mesq l("...so if you have multiple rings, better put the others on the storage!"); + next; + mes "##B" + l("Drag and drop an item from your inventory.") + "##b"; + .@item = requestitem(); + + // Check if we received an item + if (.@item != GoldenRing && .@item != SilverRing) { + mesn; + mesq l("Well, that's not a ring."); + next; + goto L_Menu; + } + + // The easiest way to get rid is not the best one. + // failedremovecardsindex() is the right approach + if (!checkbound(.@item)) { + delitem .@item, 1; + getitem .@item, 1; + mesn; + mesq l("Well... Here you go! Uh... Warn me if the gem is still there %%a"); + next; + } else { + mesn; + mesq l("I don't work with bound items."); + next; + } + + goto L_Menu; + L_Close: closedialog; goodbye; |