From 81f2dd6849b214dd5997fc5e2ea6b34ae385038e Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Wed, 6 Apr 2022 15:01:50 +0200 Subject: Chronos Fix (#607) Minor fixes --- world/map/npc/099-7/chronos.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/world/map/npc/099-7/chronos.txt b/world/map/npc/099-7/chronos.txt index 9a68a089..062d452b 100644 --- a/world/map/npc/099-7/chronos.txt +++ b/world/map/npc/099-7/chronos.txt @@ -29,9 +29,8 @@ goto L_Close; L_GiveMedals: - // BUG, FIXME! 2 + 4 = 4 boss medals set #BOSS_MEDALS, #BOSS_MEDALS + @dif; - set #BOSS_MEDALS_AVAILABLE, @dif; + set #BOSS_MEDALS_AVAILABLE, #BOSS_MEDALS_AVAILABLE + @dif; mes "[Chronos]"; mes "\"For your deeds, I shall bestow upon you " + @dif + " Boss Medals. Use them wisely, they are the results of your hard effort."; mes "Boss Medals are earned each " + .price + " boss points. They are account-bound and cannot be given to other players, not even other versions of you."; @@ -165,12 +164,21 @@ L_rewards_choice: next; callfunc "ItemMenu$"; if(@item$ == "") goto L_Close; - mes ""; + mes ""; + mes "\"You really want the " + @item_names$[@index] + "?\""; + menu + "No", L_Close, + "Yes", L_Yes; + // to prevent fast key pressers and clickers from doing an error put No first as it's the highlighted item then. + // but its not able to handle if someone moves the mouse on the wrong menu item and double clicks. + +L_Yes: getinventorylist; if ((checkweight(@item$, 1) == 0) || (@inventorylist_count == 100)) goto L_InvFull; if ($CHRONOS_STOCK < 1) goto L_Maxed; + mes ""; mes "[Chronos]"; mes "\"Here's your " + @item_names$[@index] + ", good bye.\""; wgm "=> Player `"+strcharinfo(0) + "` obtained the following item from Chronos: "+ @item_names$[@index]; @@ -185,11 +193,13 @@ L_rewards_choice: L_Maxed: set @cur_date, 0; + mes ""; mes "[Chronos]"; mes "\"I'm afraid I don't have anything now, please wait until my next travel, or complete the Tree of Knowledge quest for my amusement.\""; goto L_Close; L_InvFull: + mes ""; mes "[Chronos]"; mes "\"Your inventory is full come again when you have some free space, good bye.\""; goto L_Close; -- cgit v1.2.3-60-g2f50