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/shroom.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/commands/shroom.txt') 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]); -- cgit v1.2.3-60-g2f50