summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/kami.txt4
-rw-r--r--npc/commands/shroom.txt2
-rw-r--r--npc/functions/weather.txt4
3 files changed, 5 insertions, 5 deletions
diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt
index 01a28aff5..54dfbdec8 100644
--- a/npc/commands/kami.txt
+++ b/npc/commands/kami.txt
@@ -20,7 +20,7 @@ OnServMsg:
.@request$ = strcharinfo(0)+": ";
.@request$ += implode(.@atcmd_parameters$, " ");
// This can be slow, beware
- .@c = getunits(BL_PC, .@players, 40);
+ .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], .@request$);
}
@@ -28,7 +28,7 @@ OnServMsg:
OnBuff:
// Disabled command, used for debug purposes
- .@c = getunits(BL_PC, .@players, 40);
+ .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
attachrid(.@players[.@i]);
sc_start SC_INCMHPRATE, 300000, 100;
diff --git a/npc/commands/shroom.txt b/npc/commands/shroom.txt
index 041027424..1b05bbcf8 100644
--- a/npc/commands/shroom.txt
+++ b/npc/commands/shroom.txt
@@ -29,7 +29,7 @@ OnShroom:
.@gmId=monster("boss", 45, 45, strcharinfo(0), .@gmType, 1);
// Max 40 connected players for this to work
- .@c = getunits(BL_PC, .@players, 40);
+ .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
debugmes "@shroom: Attach account %d to spawn %d %s (%d)", .@players[.@i], .@mobAm, .@mobName$, .@mobId;
attachrid(.@players[.@i]);
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 4294b7d3d..592949dd9 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -193,7 +193,7 @@ OnMinute45:
// It's 2 messages every 3 hours. (r7.5)
// Player might be on cave, and this will help them tracking time.
if (is_night() && !$@WEATHER_NIGHT) {
- .@c = getunits(BL_PC, .@players, 20);
+ .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The night falls.");
}
@@ -202,7 +202,7 @@ OnMinute45:
donpcevent("@exprate::OnReload");
donpcevent("@droprate::OnReload");
} else if (!is_night() && $@WEATHER_NIGHT) {
- .@c = getunits(BL_PC, .@players, 20);
+ .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The day rises.");
}