diff options
author | Wushin <pasekei@gmail.com> | 2015-05-17 12:24:35 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-05-17 12:24:35 -0500 |
commit | e2bd1bddf95056c892a489db1db05b460a1517bf (patch) | |
tree | 4da41044cb709cc8454ae0ee75cf793aff7c34d0 /world/map/npc/functions/superdebug.txt | |
parent | 634f721b87da570f54c6b4cb330a655c93f8ca3b (diff) | |
parent | 5a2da4becdc11df9e6400218ed2a449611ad85af (diff) | |
download | serverdata-e2bd1bddf95056c892a489db1db05b460a1517bf.tar.gz serverdata-e2bd1bddf95056c892a489db1db05b460a1517bf.tar.bz2 serverdata-e2bd1bddf95056c892a489db1db05b460a1517bf.tar.xz serverdata-e2bd1bddf95056c892a489db1db05b460a1517bf.zip |
Merge pull request #360 from mekolat/debugroom
revamp the GM lounge
Diffstat (limited to 'world/map/npc/functions/superdebug.txt')
-rw-r--r-- | world/map/npc/functions/superdebug.txt | 61 |
1 files changed, 61 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..b9f067de --- /dev/null +++ b/world/map/npc/functions/superdebug.txt @@ -0,0 +1,61 @@ +// 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, + "MOTD", L_MOTD, + "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: + gmlog strcharinfo(0) + " accessed the Xmas debug."; + callfunc "XmasDebug"; + end; + +L_HalloweenDebug: + gmlog strcharinfo(0) + " accessed the Halloween debug."; + callfunc "HalloweenDebug"; + end; + +L_Event: + if(getgmlevel() < 60) goto L_GM; + gmlog strcharinfo(0) + " accessed the GM event debug."; + callfunc "GmDebug"; + close; + +L_StoneBoard: + if (getgmlevel() < 30) goto L_GM; + callfunc "SBConfig"; + close; + +L_MOTD: + if (getgmlevel() < 40) goto L_GM; + callfunc "MOTDConfig"; + close; + +L_GM: + mes "[Numa]"; + mes "I'm awfully sorry."; + mes "You do not have the required GM level to perform this action."; + close; +} |