summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-03-15 14:00:04 -0400
committermekolat <mekolat@users.noreply.github.com>2016-03-30 11:22:57 -0400
commita99779828dd609f004a17048d72bbfeb484a81bd (patch)
treef3605c8bdded9dd1f89461001a316fbf2fb1be26 /world/map/npc/functions
parent8d9de1d4d43b4548aa544a995d402173e7e56af8 (diff)
downloadserverdata-a99779828dd609f004a17048d72bbfeb484a81bd.tar.gz
serverdata-a99779828dd609f004a17048d72bbfeb484a81bd.tar.bz2
serverdata-a99779828dd609f004a17048d72bbfeb484a81bd.tar.xz
serverdata-a99779828dd609f004a17048d72bbfeb484a81bd.zip
get rid of magic secrets, convert stranger quiz
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/quiz.txt5
-rw-r--r--world/map/npc/functions/strangerquiz.txt8
2 files changed, 5 insertions, 8 deletions
diff --git a/world/map/npc/functions/quiz.txt b/world/map/npc/functions/quiz.txt
index ea10a3c4..0f2f7c87 100644
--- a/world/map/npc/functions/quiz.txt
+++ b/world/map/npc/functions/quiz.txt
@@ -1,3 +1,8 @@
+// FIXME/TODO: some variables should be scoped, and some other variables
+// combined in an array, with a very specific name, to avoid
+// collisions. The script as a whole should be optimized to
+// take advangage of magic-v3
+
function|script|MultiQuiz
{
if((getarraysize(@quiz_answers$) != getarraysize(@quiz_questions$)) ||
diff --git a/world/map/npc/functions/strangerquiz.txt b/world/map/npc/functions/strangerquiz.txt
deleted file mode 100644
index 3427a0ee..00000000
--- a/world/map/npc/functions/strangerquiz.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-
-function|script|StrangerQuiz
-{
- // param @quizparam$$
- // return in @quizanswer$
- set @quizanswer$, (@quizparam$);
- return;
-}