summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-26 02:34:23 -0300
committerJesusaves <cpntb1@ymail.com>2022-01-26 02:34:23 -0300
commit5631ff5bc1a468c34e95b71de044db8adee778ca (patch)
tree2a67a192d0cedcec380b8485f225db6019c427b0
parent63766192598762a06e4255f7a9e27d64a58a757e (diff)
downloadserverdata-5631ff5bc1a468c34e95b71de044db8adee778ca.tar.gz
serverdata-5631ff5bc1a468c34e95b71de044db8adee778ca.tar.bz2
serverdata-5631ff5bc1a468c34e95b71de044db8adee778ca.tar.xz
serverdata-5631ff5bc1a468c34e95b71de044db8adee778ca.zip
New permission set to @event and a new toolset for it as well
-rw-r--r--npc/commands/event.txt44
1 files changed, 6 insertions, 38 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index db5781d1f..45c1d9910 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -110,34 +110,6 @@ function script GlobalEventMenu {
return;
}
- 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;
- }
-
- function dropManagement {
- clear;
- mes l("To get the current rate:");
- mes col(" @rates", 7);
- next;
- mes l("To set the drop rate:");
- mes col(" @droprate ##Brate##b hours", 7);
- next;
- mes l("To reset back to normal:");
- mes col(" @droprate default", 7); // note to translators: any non-numerical value will reset so "default" is safe to translate
- next;
- return;
- }
-
// :>
function superSpawn {
mesc l("Monster ID, 0 to cancel");
@@ -386,10 +358,8 @@ function script GlobalEventMenu {
mes l("What do you want to access?");
select
- l("Experience Rate management"),
- l("Drop Rate management"),
l("Reset Crazyfefe Fight"),
- l("Change Season Event"),
+ rif(is_master(), l("Change Season Event")),
rif(is_gm(), l("Spawn customized boss")),
rif(getarg(0,0), menuimage("actions/home", l("Return to Super Menu"))),
l("Close");
@@ -397,12 +367,10 @@ function script GlobalEventMenu {
//.@c = getarg(0,0) ? 2 : 1; // 1 = back to event menu, 2 = back to super menu
switch (@menu) {
- case 1: rateManagement; break;
- case 2: dropManagement; break;
- case 3: resetCandor(); break;
- case 4: seasonManagement; break;
- case 5: superSpawn(); break;
- case 7: close; break;
+ case 1: resetCandor(); break;
+ case 2: seasonManagement(); break;
+ case 3: superSpawn(); break;
+ case 5: close; break;
default: return;
}
@@ -419,7 +387,7 @@ OnCall:
end;
}
- GlobalEventMenu;
+ GlobalEventMenu();
closedialog;
end;
}