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

[SOLVED] Make monster walk only on item id x.

Exoltes

Novia OTserv Developer
Joined
Jul 2, 2009
Messages
563
Reaction score
47
Location
Belgium
What I'm looking for is a way to make certain monsters only walk on desert floors for example.
 
I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).

I'm willing to edit everything as long as people don't need to get a custom client to play.
 
I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).

I'm willing to edit everything as long as people don't need to get a custom client to play.

I need your use explained a little more.
For example, are you going to just have a Grass area with Wolves, then a Desert area with Rotworms, but you don't want the Wolves to go in the Desert, and you don't want the Rotworms to go in the Grass?
 
Ya, should work like that.
My idea now is just basic: I have a seagull on my beach and I don't want it to leave there.
But if I can figure out a way to make it work i can use it in a lot of different ways.
 
It is actually really hard to do the way you want it to be done.

I am working on something that would allow this but I haven't finished it yet.

You have a few choices:
  1. Make a "barrier" between the beach and the next area, like a mountain, fence, trees, etc -- easiest way
  2. Make a "Walkback" move event that will block creatures when walking on it or teleport them back to their spawn position.
  3. Edit the sources in a way that you can choose what tiles are un-walkable to each creature.
 
Option 3 is what I'm looking for but if you are working on something related to this I'd be glad to wait :)
Just let me know once u'r finished :)


Btw shouldn't it be possible to make some kind of invisible wall that still allows players to walk over it but blocks monsters like protection zones. So instead of making monsters allow to walk only certain sqm's we could try something with invisible borders? Just an idea ofc :D


Or invisible furniture but this would only work for lesser creatures which can be trapped.
 
Last edited:
Option 3 is what I'm looking for but if you are working on something related to this I'd be glad to wait :)
Just let me know once u'r finished :)


Btw shouldn't it be possible to make some kind of invisible wall that still allows players to walk over it but blocks monsters like protection zones. So instead of making monsters allow to walk only certain sqm's we could try something with invisible borders? Just an idea ofc :D


Or invisible furniture but this would only work for lesser creatures which can be trapped.

My way of doing it is going to be in the Map Editor. There is going to be a new Drop-Down selection below Houses called "Locations" and you will "paint" the locations the same way you do houses, and name them.

For Example:
For a house you'd usually choose the house tool, click "Add" and make all the tiles for a house blue, then click "Exit" and put down the splash and name the house, and choose the rent.
But with a "Location" you will choose the "Location tool", click "add" and make all the tiles for the Location by painting them, then name it. (No exit or rent needed).

That way, when you load the map, You will have "Thais Beach", and "Thais Orc Mountain" and "Thais East Grassland" then any creature you put into that location, will be bound to it. So if you put a Seagull on "Thais Beach" they cannot leave that area.

Of course you will be able to turn this feature off in the monsters.xml
<flags bindCreatureLocation="1"/>
 
Yup fixed it with invisible path blocking items :) But if you work something out that works on creatures which can't be trapped by boxes let me know.
-> disadvantage of this is that you can't push players onto these sqms.

Must say that your idea also gives some nice perspective. Thanks for the help man :)
 
Last edited:
Back
Top