• 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 1.X+ TFS 1.3 (OTservBR) NPC unable to walk over items

Joriku

Working in the mines, need something?
Premium User
Joined
Jul 16, 2016
Messages
1,141
Solutions
15
Reaction score
432
Location
Sweden
Is it possible to make an npc not being able to walk over items, unless it's gold coins etc.?
If so, how would this be made?

The Idea/Point is that I want it like old school 7.4 when NPC's couldn't walk over things like Naji (Thais Depot)
 
Solution

You can try setting ignoreheight to false I guess.

C++:
ignoreHeight = true;
to
C++:
ignoreHeight = false;
which is just the standard value.
this should also be changeable in XML for individual cases, example:

XML:
<npc name="A Dragon Mother" script="A Dragon Mother.lua" walkinterval="2000" floorchange="0" ignoreheight="0">

Otherwise you can add your own set of values where the npc can and cannot walk here.
Not really sure what you are asking for.

Should players be able to block the npc by placing items around him?
Yes, and it shoudn't be able to walk up on items such as
b62cd76a8a0b0684382561c75837691b.png
 

You can try setting ignoreheight to false I guess.

C++:
ignoreHeight = true;
to
C++:
ignoreHeight = false;
which is just the standard value.
this should also be changeable in XML for individual cases, example:

XML:
<npc name="A Dragon Mother" script="A Dragon Mother.lua" walkinterval="2000" floorchange="0" ignoreheight="0">

Otherwise you can add your own set of values where the npc can and cannot walk here.
 
Last edited:
Solution
Back
Top