summaryrefslogtreecommitdiff
path: root/npc/003-5/jeweler.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-12 02:30:51 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-12 02:30:51 -0300
commit2c21685abb8c12e3540b10126bab44d9ffde340d (patch)
tree3ac1190cb65c69d8d8466e12bb29ad717d171d24 /npc/003-5/jeweler.txt
parent3ec144cc67358664a0ef2c392690fb15b8afef71 (diff)
downloadserverdata-2c21685abb8c12e3540b10126bab44d9ffde340d.tar.gz
serverdata-2c21685abb8c12e3540b10126bab44d9ffde340d.tar.bz2
serverdata-2c21685abb8c12e3540b10126bab44d9ffde340d.tar.xz
serverdata-2c21685abb8c12e3540b10126bab44d9ffde340d.zip
First (and wrong) approach removing gemstone from rings
Diffstat (limited to 'npc/003-5/jeweler.txt')
-rw-r--r--npc/003-5/jeweler.txt36
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;