• 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 Spawn Monster even with players on screen

warriorfrog

Active Member
Joined
Jul 29, 2015
Messages
334
Reaction score
35
I don't want to players block monsters spawn...
What do i need to change to on 0.4 spawn monsters even with players on spawn screen?
Is it possible to add a teleport effect to when monster spawn?
 

Is this on spawn.cpp, right?
I did 3 changes there, but got some errors to compile...

Could you help me?

my: spawn.cpp now:
hastebin

before:
https://raw.githubusercontent.com/Fir3element/3777/master/src/spawn.cpp

Code:
spawn.cpp:286:6: error: prototype for ‘bool Spawn::spawnMonster(uint32_t, MonsterType*, const Position&, Direction, int16_t, bool)’ does not match any in class ‘Spawn’
 bool Spawn::spawnMonster(uint32_t spawnId, MonsterType* mType, const Position& pos, Direction dir, int16_t t,
      ^~~~~
In file included from spawn.cpp:21:0:
spawn.h:100:8: error: candidate is: bool Spawn::spawnMonster(uint32_t, MonsterType*, const Position&, Direction, bool)
   bool spawnMonster(uint32_t spawnId, MonsterType* mType, const Position& pos, Direction dir, bool startup = false);
        ^~~~~~~~~~~~
Makefile:33: recipe for target 'spawn.o' failed
make: *** [spawn.o] Error 1
 
Back
Top