summaryrefslogtreecommitdiff
path: root/npc/functions/magic.txt
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-01-10 04:52:20 -0700
committerFate <fate-tmw@googlemail.com>2009-01-10 04:52:20 -0700
commitd075f25617f1306ad2aef2b1e87567f6c683aa7f (patch)
treed4fab570fe1d560b3bcd10900d03f85736a38bec /npc/functions/magic.txt
parent2dd4918c51930301faa4eea5f0f88e9fc08162a8 (diff)
downloadserverdata-d075f25617f1306ad2aef2b1e87567f6c683aa7f.tar.gz
serverdata-d075f25617f1306ad2aef2b1e87567f6c683aa7f.tar.bz2
serverdata-d075f25617f1306ad2aef2b1e87567f6c683aa7f.tar.xz
serverdata-d075f25617f1306ad2aef2b1e87567f6c683aa7f.zip
Fixed broken function usage and menus
Diffstat (limited to 'npc/functions/magic.txt')
-rw-r--r--npc/functions/magic.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/functions/magic.txt b/npc/functions/magic.txt
index 470323c2..0094e94a 100644
--- a/npc/functions/magic.txt
+++ b/npc/functions/magic.txt
@@ -20,7 +20,7 @@ function script MagicGainBasic {
// ------------------------------------------------------------
// Initialise Menu for selecting a choice of things to ask about
// ------------------------------------------------------------
-function script MagicTalkOptionsSetup {
+function script MagicTalkOptionsSetup {
set @QQ_ELANORE, 1;
set @QQ_MANASEED, 2;
set @QQ_MANAPOTION, 3;
@@ -29,15 +29,17 @@ function script MagicTalkOptionsSetup {
set @QQ_AULDSBEL, 6;
set @QQ_IMP, 7;
set @QQ_OLDWIZ, 8;
+ return;
}
// ------------------------------------------------------------
// Print and run menu for choice of things to ask about
// Ignores the entry in @ignore
-// Returns the result in `@c, or `0'
+// Returns the result in @c, or returns 0 if there is no result
// ------------------------------------------------------------
-function script MagicTalkMenu {
+
+function script MagicTalkMenu {
setarray @choice$, "", "", "", "", "", "", "", "", "";
set @choices_nr, 0;
setarray @choice_idx, 0, 0, 0, 0, 0, 0, 0, 0, 0;
@@ -132,4 +134,5 @@ L_Q_post_imp:
set @menu, 0;
set @c, @choice_idx[@menu];
+ return @c;
}