Arkemis
Well-Known Member
TFS 1.3 (Nekiro Downgrade 8.6)
cip Client 8.6
So I finished downgrading my monster pack to 8.6 (my first big endeavor!) and it went really well. Now I've officially begun building my custom map and I built a test spawn. The spawn-time on each of the monsters is 1, but player blocks spawn.
I searched the forum and found some solutions for older TFS versions and it led me to this snippet of code in "src/spawn.cpp", but its a bit different than the instructions, and admittedly im just beginning to learn C++ and I'm not sure what to remove/edit to stop players blocking spawns.
cip Client 8.6
So I finished downgrading my monster pack to 8.6 (my first big endeavor!) and it went really well. Now I've officially begun building my custom map and I built a test spawn. The spawn-time on each of the monsters is 1, but player blocks spawn.
I searched the forum and found some solutions for older TFS versions and it led me to this snippet of code in "src/spawn.cpp", but its a bit different than the instructions, and admittedly im just beginning to learn C++ and I'm not sure what to remove/edit to stop players blocking spawns.
C++:
void Spawn::checkSpawn()
{
checkSpawnEvent = 0;
cleanup();
uint32_t spawnCount = 0;
for (auto& it : spawnMap) {
uint32_t spawnId = it.first;
if (spawnedMap.find(spawnId) != spawnedMap.end()) {
continue;
}
spawnBlock_t& sb = it.second;
if (OTSYS_TIME() >= sb.lastSpawn + sb.interval) {
if (!spawnMonster(spawnId, sb)) {
sb.lastSpawn = OTSYS_TIME();
continue;
}
if (++spawnCount >= static_cast<uint32_t>(g_config.getNumber(ConfigManager::RATE_SPAWN))) {
break;
}
}
}
Last edited: