i found it in the source,
I think its here..
spawn.cpp line 187 -
bool Spawn::findPlayer(const Position& pos)
SpectatorVec list;
g_game.map.getSpectators(list, pos, false, true);
for (Creature* spectator : list) {
if (!spectator->getPlayer()->hasFlag(PlayerFlag_IgnoredByMonsters)) {
return true;
}
spawn.cpp line 252 -
spawnBlock_t& sb = it.second;
if (OTSYS_TIME() >= sb.lastSpawn + sb.interval) {
if (findPlayer(sb.pos)) {
sb.lastSpawn = OTSYS_TIME();
continue;
}
But i wouldnt have any idea what too do with it.