diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-08-11 15:47:19 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-09-01 12:09:00 -0400 |
commit | 62a697d27a014ba0173256e124f65bbbfe9433d0 (patch) | |
tree | 515d1395064bf1892269114a3d13b3781210b19f /npc | |
parent | aa4efeac07618fe54696b5fed26bb79c2d8df8d6 (diff) | |
download | serverdata-62a697d27a014ba0173256e124f65bbbfe9433d0.tar.gz serverdata-62a697d27a014ba0173256e124f65bbbfe9433d0.tar.bz2 serverdata-62a697d27a014ba0173256e124f65bbbfe9433d0.tar.xz serverdata-62a697d27a014ba0173256e124f65bbbfe9433d0.zip |
add placeholder event menu
Diffstat (limited to 'npc')
-rw-r--r-- | npc/commands/event.txt | 31 | ||||
-rw-r--r-- | npc/commands/numa.txt | 2 | ||||
-rw-r--r-- | npc/scripts.conf | 5 |
3 files changed, 35 insertions, 3 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt new file mode 100644 index 00000000..ed40c184 --- /dev/null +++ b/npc/commands/event.txt @@ -0,0 +1,31 @@ +function script GlobalEventMenu { + clear; + setnpcdialogtitle l("Event Management"); + mes l("This menu allows you to manage events and gives access to event-related tools."); + mes ""; + mes l("There is no event available right now."); + menuint + rif(getarg(0,0), menuimage("actions/home", l("Return to Super Menu"))), 1, + menuimage("actions/exit", l("Close")), 2; + + if (@menuret == 1) + { + return; + } + + closedialog; +} + + + +- script @event 32767,{ + end; + +OnCall: + GlobalEventMenu; + closedialog; + end; + +OnInit: + bindatcmd "event", "@event::OnCall", 4, 99, 0; +} diff --git a/npc/commands/numa.txt b/npc/commands/numa.txt index 0083a677..5ab58812 100644 --- a/npc/commands/numa.txt +++ b/npc/commands/numa.txt @@ -19,7 +19,7 @@ function script SuperMenu { { //case 1: StoneBoard 1; break; case 2: MOTDConfig 1; break; - //case 3: GlobalEventMenu 1; break; + case 3: GlobalEventMenu 1; break; //case 4: GlobalDebugMenu 1; break; default: return; } diff --git a/npc/scripts.conf b/npc/scripts.conf index 425268fa..c66cb1af 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -36,8 +36,9 @@ "npc/commands/music.txt", "npc/commands/warp.txt", "npc/commands/zeny.txt", -"npc: npc/commands/motd.txt", -"npc: npc/commands/numa.txt", +"npc/commands/motd.txt", +"npc/commands/event.txt", +"npc/commands/numa.txt", // config script "npc/config/hairstyle_config.txt", |