summaryrefslogtreecommitdiff
path: root/npc/commands/event.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-03-03 20:58:18 -0300
committerjesusalva <cpntb1@ymail.com>2018-03-03 20:58:18 -0300
commit697ec91d5a999310fbbdf5bace6d928b5c27d698 (patch)
tree2984da7f209362a0e7f8d9f82e7d75f7fa72585d /npc/commands/event.txt
parent85e148f67639453bfaf49a1e65c203fe63f6c465 (diff)
downloadserverdata-697ec91d5a999310fbbdf5bace6d928b5c27d698.tar.gz
serverdata-697ec91d5a999310fbbdf5bace6d928b5c27d698.tar.bz2
serverdata-697ec91d5a999310fbbdf5bace6d928b5c27d698.tar.xz
serverdata-697ec91d5a999310fbbdf5bace6d928b5c27d698.zip
Easter event control.
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r--npc/commands/event.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 898db8331..4d98dd002 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -28,6 +28,22 @@ function script GlobalEventMenu {
return;
}
+ function seasonManagement {
+ clear;
+ mes l("Current event: @@", $EVENT$);
+ menu
+ l("Disable event"), -,
+ l("Enable Easter"), -;
+
+ switch (@menu)
+ {
+ case 1: set $EVENT$, ""; logmes "Disabled events.", LOGMES_ATCOMMAND; break;
+ case 2: set $EVENT$, "Easter"; logmes "Enabled EASTER event.", LOGMES_ATCOMMAND; break;
+ }
+
+ return;
+ }
+
do
{
clear;
@@ -39,6 +55,7 @@ function script GlobalEventMenu {
select
l("Experience Rate management"),
l("Drop Rate management"),
+ l("Change Season Event"),
rif(getarg(0,0), menuimage("actions/home", l("Return to Super Menu")));
//.@c = getarg(0,0) ? 2 : 1; // 1 = back to event menu, 2 = back to super menu
@@ -47,6 +64,7 @@ function script GlobalEventMenu {
{
case 1: rateManagement; break;
case 2: dropManagement; break;
+ case 3: seasonManagement; break;
default: return;
}