• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X how enable monsters spawn, if player stay in spawn point?

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
46
how enable monsters spawn, if player stay in spawn point?
tfs 0.4
 
Solution
spawn.cpp

in:
C++:
void Spawn::checkSpawn()
search for:
C++:
if (OTSYS_TIME() >= sb.lastSpawn + sb.interval) {
and under it, delete or comment if (findPlayer(sb.pos)), delete/comment this:
C++:
             if (findPlayer(sb.pos)) {
                sb.lastSpawn = OTSYS_TIME();
                continue;
            }

In C++ you comment /* text */ , ex:
C++:
/*
text in comment (script ignores it)
*/
spawn.cpp

in:
C++:
void Spawn::checkSpawn()
search for:
C++:
if (OTSYS_TIME() >= sb.lastSpawn + sb.interval) {
and under it, delete or comment if (findPlayer(sb.pos)), delete/comment this:
C++:
             if (findPlayer(sb.pos)) {
                sb.lastSpawn = OTSYS_TIME();
                continue;
            }

In C++ you comment /* text */ , ex:
C++:
/*
text in comment (script ignores it)
*/
 
Solution
Back
Top