From 75479db52de54baba8056b3d548d624343a8bc9a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 28 Oct 2019 01:36:12 -0300 Subject: MAX_CYCLE_PC, a new constant for getunits --- npc/commands/kami.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/commands/kami.txt') 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; -- cgit v1.2.3-70-g09d2