summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/superdebug.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-01 13:44:27 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-12 07:02:36 -0400
commite0834f290b1225bc3090e3d43f18ec1047868cf9 (patch)
tree50ae683a16c36f6e85a33e69eb8bb283697bf2fc /world/map/npc/functions/superdebug.txt
parentda0f4578b83cc2f9df249dc1bb5bb33d720cb7a8 (diff)
downloadserverdata-e0834f290b1225bc3090e3d43f18ec1047868cf9.tar.gz
serverdata-e0834f290b1225bc3090e3d43f18ec1047868cf9.tar.bz2
serverdata-e0834f290b1225bc3090e3d43f18ec1047868cf9.tar.xz
serverdata-e0834f290b1225bc3090e3d43f18ec1047868cf9.zip
revamp the GM lounge
Diffstat (limited to 'world/map/npc/functions/superdebug.txt')
-rw-r--r--world/map/npc/functions/superdebug.txt52
1 files changed, 52 insertions, 0 deletions
diff --git a/world/map/npc/functions/superdebug.txt b/world/map/npc/functions/superdebug.txt
new file mode 100644
index 00000000..8bb9350a
--- /dev/null
+++ b/world/map/npc/functions/superdebug.txt
@@ -0,0 +1,52 @@
+// all-in-one debug
+// author: meko
+
+function|script|SuperDebug
+{
+ goto L_Main;
+
+L_Main:
+ mes "[Numa]";
+ mes "How may I help you?";
+ next;
+ menu
+ "Announcements", L_StoneBoard,
+ "Holiday debug", L_Holiday,
+ "Event debug", L_Event;
+ // todo: generic npcs (in a future PR)
+ // todo: map list (in a future PR)
+ // todo: quest log debug (in a future PR)
+
+L_Holiday:
+ if(getgmlevel() < 40) goto L_GM;
+ mes "[Numa]";
+ mes "What holiday do you want to debug?";
+ next;
+ menu
+ "Xmas.", L_XmasDebug,
+ "Halloween.", L_HalloweenDebug;
+
+L_XmasDebug:
+ callfunc "XmasDebug";
+ end;
+
+L_HalloweenDebug:
+ callfunc "HalloweenDebug";
+ end;
+
+L_Event:
+ if(getgmlevel() < 60) goto L_GM;
+ callfunc "GmDebug";
+ close;
+
+L_StoneBoard:
+ if (getgmlevel() < 30) goto L_GM;
+ callfunc "SBConfig";
+ close;
+
+L_GM:
+ mes "[Numa]";
+ mes "I'm awfully sorry.";
+ mes "You do not have the required GM level to perform this action.";
+ close;
+}