• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua How to set, if monster walk over magic fields

Fermantor

Active Member
Joined
Dec 16, 2009
Messages
209
Solutions
4
Reaction score
34
Location
Germany
Hello everyone.
I try to script some monsters, and I have a little problem. Monster like dragons or so, should walk over firefield without walking around them... No problem I just set <immunity fire="1"/>
But some monsters (Orc Warlord with Fire & energy, War Golems with energy, etc.) are ignoring these "rule" and walk over every field, even if they get damage. Now I want to know, if there is some parameters I can change, to set every monster, if they ignore, getting damage by fields or not.
Hope you understand my problem cause my english isn't the best :/
 
I think this problem lies in the source code. Perhaps in
Code:
Monsters::onThink
but I am not sure.
 
It might be because those monsters are strong against these elements.
Which server version are you using?
 
I'm using the latest TFS 0.2.14. I tried nearly everything now, but can't understand it :/
An Orc Walord walks over all fields. A rat, with the same attack parameters, elementPercents, etc. doesn't walk over them :/
 
Back
Top