• 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!

Spawn Lure Position - TFS 0.4

secondlife

Member
Joined
Aug 1, 2009
Messages
298
Reaction score
23
Hello guys,
How can i change the distance/sqms/radius to attract/lure monsters?
I searched in many files at the source and did not find
2d4eeace-5613-4769-b03e-53daa1e23a23
.
My interest is to decrease this distance lure was the same in the servers OldSchool (like a 8 sqms, for example).

dtMRQmI.jpg



Thank you!!!
 
Solution
@Xikini exactly, thank you!!

@Topic
Anyone else have any idea how to change this?

Thank you!
In map.h change these values to what you want (but like the comment says, not less than maxClientViewPort + 1)

C++:
        static const int32_t maxViewportX = 13; //min value: maxClientViewportX + 1
        static const int32_t maxViewportY = 13; //min value: maxClientViewportY + 1

I think this should be the range at which monsters start detecting nearby players.
Not tested, but give it a shot
I think its in monster .xml file.

Found this:
Code:
<flag targetdistance="11"/>

Different monster got different targetdistance, where 11 is highest.

You can set the value from -1 to 11.
 
Hi @slawkens , thank you for reply!
The <flag targetdistance="11"/> is the distance that the creature gets from the target, understand?

I would like to change the distance to attract the creature/monster, understand? Like a old servers.
Currently, the creature is attracted to 11 sqms distance to the target player..
 
Hi @slawkens , thank you for reply!
The <flag targetdistance="11"/> is the distance that the creature gets from the target, understand?

I would like to change the distance to attract the creature/monster, understand? Like a old servers.
Currently, the creature is attracted to 11 sqms distance to the target player..
You're correct, this is the attack radius.

You want config.lua:
Code:
-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

EDIT: No, I'm wrong. I read your post wrong.
 
@Taurus, thank you for reply too.
deSpawnRadius is the distance from the original position that the creature will disappear. =/

#UP Cmm =/
 
Last edited by a moderator:
To say it another way,

He doesn't want creatures to target/see the player unless they are X squares distance from the player.


-- As far as I know, this can't be changed through the lua files.
 
@Xikini exactly, thank you!!

@Topic
Anyone else have any idea how to change this?

Thank you!
In map.h change these values to what you want (but like the comment says, not less than maxClientViewPort + 1)

C++:
        static const int32_t maxViewportX = 13; //min value: maxClientViewportX + 1
        static const int32_t maxViewportY = 13; //min value: maxClientViewportY + 1

I think this should be the range at which monsters start detecting nearby players.
Not tested, but give it a shot
 
Solution
Back
Top