summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authorHoraK-FDF <HoraK-FDF@web.de>2022-04-06 15:01:50 +0200
committerGitHub <noreply@github.com>2022-04-06 13:01:50 +0000
commit81f2dd6849b214dd5997fc5e2ea6b34ae385038e (patch)
treec3f8ca996b37dc0d1748672e89c35f8a1d219a86 /world/map/npc
parentc3e613403708f320e5105a69ade8625bc6932142 (diff)
downloadserverdata-81f2dd6849b214dd5997fc5e2ea6b34ae385038e.tar.gz
serverdata-81f2dd6849b214dd5997fc5e2ea6b34ae385038e.tar.bz2
serverdata-81f2dd6849b214dd5997fc5e2ea6b34ae385038e.tar.xz
serverdata-81f2dd6849b214dd5997fc5e2ea6b34ae385038e.zip
Chronos Fix (#607)
Minor fixes
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/099-7/chronos.txt16
1 files 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;