From eccac500742929097d1724d38a866c1bb0b3a120 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 May 2019 11:44:44 -0300 Subject: Add to apartment the option to forge items (in overall, TODO) --- npc/024-14/utils.txt | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) (limited to 'npc/024-14') diff --git a/npc/024-14/utils.txt b/npc/024-14/utils.txt index 4e58f8b7e..646493b2d 100644 --- a/npc/024-14/utils.txt +++ b/npc/024-14/utils.txt @@ -60,11 +60,33 @@ OnInit: 024-14,28,27,0 script Cauldron#RES_PPL NPC_NO_SPRITE,{ - mesc l("What will you brew today?"); - if (AlchemySystem(CRAFT_PLAYER)) - mesc l("Success!"), 3; - else - mesc l("That didn't work!"), 1; + select + l("Alchemy"), + l("Crafting"); + mes ""; + if (@menu == 1) { + do { + mesc l("What will you brew today?"); + if (AlchemySystem(CRAFT_PLAYER)) + mesc l("Success!"), 3; + else + mesc l("That didn't work!"), 1; + next; + mesc l("Try again?"); + } while (askyesno() == ASK_YES); + } + else if (@menu == 2) { + do { + mesc l("What will you craft today?"); + if (SmithSystem(CRAFT_PLAYER)) + mesc l("Success!"), 3; + else + mesc l("That didn't work!"), 1; + next; + mesc l("Try again?"); + } while (askyesno() == ASK_YES); + } + close; OnInit: -- cgit v1.2.3-60-g2f50