summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-28 01:36:12 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-28 01:36:12 -0300
commit75479db52de54baba8056b3d548d624343a8bc9a (patch)
tree378a213efc9dc0302a7e5346cfb17f1227652244 /npc/commands
parent2079474e3cfd450e3f19f26904fbb9766dc593ca (diff)
downloadserverdata-75479db52de54baba8056b3d548d624343a8bc9a.tar.gz
serverdata-75479db52de54baba8056b3d548d624343a8bc9a.tar.bz2
serverdata-75479db52de54baba8056b3d548d624343a8bc9a.tar.xz
serverdata-75479db52de54baba8056b3d548d624343a8bc9a.zip
MAX_CYCLE_PC, a new constant for getunits
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/kami.txt4
-rw-r--r--npc/commands/shroom.txt2
2 files changed, 3 insertions, 3 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]);