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

Monster movement problem

QuickLearner

New Member
Joined
Mar 20, 2018
Messages
21
Reaction score
2
Hi,

I have problem with my TFS engine.

The problem is that some monsters which are immune to some elements ( fire, poiso etc. ) are avoiding them.

For example dragon won`t step into fire field if he have clear path, without fire fields, to player.
If he won`t have clear path then he will step into fire field so that''s ok.

Anyone had similar problem? Or in which file should I look to find monster movement?

movement.cpp?
event.cpp?
creature.cpp?
 
Solution
You might not have to implement this manually (I don't remember how old that 1.2 for 8.6 was), you can check in monsters.cpp for "canwalkonfire", if it's there then all you need to do is just add the flags to the monster's xml, otherwise you'll need to follow the source edits on this commit.
5. Incomplete Problem Description:
- Post as much useful information as possible. If the problem is about something on your server, post the server version and client version. Also always post the errors you get and the scripts with the problems.
 

Forgotten Server version : 1.2
Tibia 8.6

I won`t include the script with the problem because I`ve asked where I can find script in which problem could be.
 
You might not have to implement this manually (I don't remember how old that 1.2 for 8.6 was), you can check in monsters.cpp for "canwalkonfire", if it's there then all you need to do is just add the flags to the monster's xml, otherwise you'll need to follow the source edits on this commit.
 
Solution
Ok, so I do not have any canwalkonfire in monster.cpp.
I've found in TFS github commit "Fix monsters walking over fields.".

Clone repository with this commit hash and now my Tibia is for 10.98 :D

So I assume that I need to manually copy this files from commit into my working 8.6 engine?


--Edit--
I've debuged files which was responsible for monster movements and it turned out that on my <monster_name>.XML some monster didn`t had immunities filled correctly so for example Dragon was not immune to fire so he was avoiding fire fields.

After fixing xml files everything is working as it should.

Thank you Delusion for you help!
 
Last edited:
Back
Top