From a7074afe4d1b64b76136aea1d6f2fe8fc80588a5 Mon Sep 17 00:00:00 2001 From: Ledmitz Date: Tue, 2 May 2023 23:22:11 -0300 Subject: Added location info for labs --- client-data | 2 +- world/map/npc/011-1/alchemist.txt | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/client-data b/client-data index 22e2ed11..c48670c4 160000 --- a/client-data +++ b/client-data @@ -1 +1 @@ -Subproject commit 22e2ed11665d41f5a2e25bc48a14c3f6097c57f1 +Subproject commit c48670c4477517b1662d4f5229fc437138a55944 diff --git a/world/map/npc/011-1/alchemist.txt b/world/map/npc/011-1/alchemist.txt index ade035dd..3193100f 100644 --- a/world/map/npc/011-1/alchemist.txt +++ b/world/map/npc/011-1/alchemist.txt @@ -26,7 +26,8 @@ set @CHOICE_MANA_POTION, 5; set @CHOICE_SULPHUR_POWDER, 6; set @CHOICE_IRON_POWDER, 7; - set @CHOICE_ABORT, 8; + set @CHOICE_LAB, 8; + set @CHOICE_ABORT, 9; setarray @menuitems$, "", "", "", "", "", "", "", ""; set @c, 0; @@ -39,6 +40,10 @@ set @menuID[@c], @CHOICE_CONCENTRATION; set @c, @c + 1; + set @menuitems$[@c], "Alchemy lab locations."; + set @menuID[@c], @CHOICE_LAB; + set @c, @c + 1; + if (!(MAGIC_FLAGS & MFLAG_KNOWS_MANAPOTION)) goto L_post_mana_potion_c; set @menuitems$[@c], "Mana potion."; @@ -114,7 +119,8 @@ L_main_menu: @menuitems$[4], L_MenuItems, @menuitems$[5], L_MenuItems, @menuitems$[6], L_MenuItems, - @menuitems$[7], L_MenuItems; + @menuitems$[7], L_MenuItems, + @menuitems$[8], L_MenuItems; L_MenuItems: set @menu, @menu - 1; @@ -137,10 +143,31 @@ L_MenuItems: goto L_sulphur; if (@menuID[@menu] == @CHOICE_IRON_POWDER) goto L_iron_powder; + if (@menuID[@menu] == @CHOICE_LAB) + goto L_lab; if (@menuID[@menu] == @CHOICE_ABORT) goto L_abort; goto L_abort; +L_lab: + mes "[Rauk the Alchemist]"; + mes "\"There's a few labs around. From here, I'd either go to Asphodel Moor's store or Candor Island's lab. I so enjoy the ferry. If you travel to Tulimshar, visit the magic school. Some of the classrooms may still have some lab equipment.\""; + next; + menu + "Thanks a bunch.", L_abort, + "Where can one learn alchemy recipes?", L_recipes; + +L_recipes: + mes "[Rauk the Alchemist]"; + mes "\"So you wish to become an alchemist?\""; + mes "Rauk can't seem to hold back a smirk."; + mes "\"Trying to find alchemy recipes can be challenging. These are well guarded amongst my fellow tradesmen. Most that I've known have learned by experimenting on their own. It can be dangerous to fool with the unknown though.\""; + mes "He seems to consider something for a moment."; + mes "\"No... I just can't give away my secrets. Some alchemists, like Caul, have tried for years to learn my [@@567|@@] methods. I'd trade techniques with him, gladly, but he knows nothing of interest to me.\""; + mes "\"He keeps trying to exchange his [@@750|@@] formula for it, but they'll never move like iron potions do.\""; + mes "Rauk appears to look proud."; + close; + L_iron_powder: mes "[Rauk the Alchemist]"; mes "\"Iron powder? Hmm, I can extract some iron powder out of a chunk of iron ore, but that will require me to dissolve it. If you give me a chunk of iron ore and 100 GP for the acid, I can do it.\""; -- cgit v1.2.3-70-g09d2