From 08ce3c40fec3291409526457366a9867c41705d0 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 29 Nov 2009 09:44:17 -0700 Subject: Fix injured mouboo to have a cancel option on give --- npc/012-1_Woodland_Hills/injured-mouboo.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'npc/012-1_Woodland_Hills/injured-mouboo.txt') diff --git a/npc/012-1_Woodland_Hills/injured-mouboo.txt b/npc/012-1_Woodland_Hills/injured-mouboo.txt index 1967711e..3b0bd240 100644 --- a/npc/012-1_Woodland_Hills/injured-mouboo.txt +++ b/npc/012-1_Woodland_Hills/injured-mouboo.txt @@ -101,9 +101,9 @@ L_give: setarray @items$, "CactusDrink", "CactusPotion", "ChocolateBar", "Milk", "OrangeCupcake", "RedApple", "Beer", "BottleOfWater", "TinyHealingPotion", "SmallHealingPotion", "MediumHealingPotion", "LargeHealingPotion"; setarray @itemeat, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0; - setarray @menuItems$, "", "", "", "", "", "", "", "", "", "", "", ""; + setarray @menuItems$, "", "", "", "", "", "", "", "", "", "", "", "", ""; set @choices_nr, 0; - setarray @menuNames$, "", "", "", "", "", "", "", "", "", "", "", ""; + setarray @menuNames$, "", "", "", "", "", "", "", "", "", "", "", "", ""; setarray @choice_eat, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0; set @n, 0; @@ -125,6 +125,8 @@ L_nloop_skip: if (@n < @items_nr) goto L_nloop; + set @menuItems$[@ct], "Nevermind"; + menu @menuItems$[0], -, @menuItems$[1], -, @menuItems$[2], -, @@ -136,9 +138,13 @@ L_nloop_skip: @menuItems$[8], -, @menuItems$[9], -, @menuItems$[10], -, - @menuItems$[11], -; + @menuItems$[11], -, + @menuItems$[12], -; set @menu, @menu - 1; + + if (@menu == @ct) goto L_menu; + set @choice$, @menuNames$[@menu]; set @verb$, "drinks"; if (@choice_eat[@menu]) -- cgit v1.2.3-60-g2f50