summaryrefslogtreecommitdiff
path: root/npc/commands/event.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r--npc/commands/event.txt41
1 files changed, 32 insertions, 9 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index a01162e2..3253702a 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -1,17 +1,40 @@
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.");
- if (getarg(0,0))
+ function rateManagement {
+ clear;
+ mes l("To get the current rate:");
+ mes col(" @exprate", 7);
+ next;
+ mes l("To set the exp rate:");
+ mes col(" @exprate ##Brate##b hours", 7);
+ next;
+ mes l("To reset back to normal:");
+ mes col(" @exprate default", 7); // note to translators: any non-numerical value will reset so "default" is safe to translate
+ next;
+ return;
+ }
+
+ do
{
+ clear;
+ setnpcdialogtitle l("Event Management");
+ mes l("This menu allows you to manage events and gives access to event-related tools.");
+ mes "";
+ mes l("What do you want to access?");
+
select
- menuimage("actions/home", l("Return to Super Menu"));
- }
+ l("Rate management"),
+ 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
+
+ switch (@menu)
+ {
+ case 1: rateManagement; break;
+ default: return;
+ }
- return;
+ } while (true);
}