diff options
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", |