summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-06 21:47:40 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-06 21:47:40 -0300
commita9e533d65d6119944e19f28f388e8cab54c8c051 (patch)
treeaef04e0b6a74bc2837bfdf1b4da9905a6dc2ed9e /npc/functions/main.txt
parentd65f9cecbdec106b5abc60c400ab5c3585b928bd (diff)
downloadserverdata-a9e533d65d6119944e19f28f388e8cab54c8c051.tar.gz
serverdata-a9e533d65d6119944e19f28f388e8cab54c8c051.tar.bz2
serverdata-a9e533d65d6119944e19f28f388e8cab54c8c051.tar.xz
serverdata-a9e533d65d6119944e19f28f388e8cab54c8c051.zip
Interlude: Density option on recipe book
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 2bfb6e29a..95587aa70 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -12,6 +12,15 @@ function script menuimage {
return getarg(0) + "|" + getarg(1);
}
+function script dnext {
+ if (@dnext >= GSET_LONGMENU_DENSITY) {
+ @dnext=0;
+ next;
+ } else {
+ @dnext+=1;
+ }
+}
+
function script menuaction {
return "[" + getarg(0) + "]";
}