summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-11-29 09:44:17 -0700
committerJared Adams <jaxad0127@gmail.com>2009-11-29 09:44:17 -0700
commit08ce3c40fec3291409526457366a9867c41705d0 (patch)
treebdcace0815f94f92bf796b883cd685c498841470 /npc
parentc55b8a59a7c2e1485cbd88f63d8a2c450696bb7c (diff)
downloadserverdata-08ce3c40fec3291409526457366a9867c41705d0.tar.gz
serverdata-08ce3c40fec3291409526457366a9867c41705d0.tar.bz2
serverdata-08ce3c40fec3291409526457366a9867c41705d0.tar.xz
serverdata-08ce3c40fec3291409526457366a9867c41705d0.zip
Fix injured mouboo to have a cancel option on give
Diffstat (limited to 'npc')
-rw-r--r--npc/012-1_Woodland_Hills/injured-mouboo.txt12
1 files changed, 9 insertions, 3 deletions
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])