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

NPC Problems

Exoltes

Novia OTserv Developer
Joined
Jul 2, 2009
Messages
563
Reaction score
47
Location
Belgium
I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).

Since it I can't seem to find a way to make it impossible for my NPC's to stop walking over furniture, to not stop moving if they get pushed out of their spawn zone.

I was hoping if someone knows how to make it so that NPC's can no longer be pushed by players and that players are able to walk-through NPC's. Or ofc an other solution to the previous mentioned problems is welcome too.

Thanks in advance.
 
Usually their walk distance is based on their spawn tile in RME. Smaller spawn = smaller walk distance.
SDumoaI.png

Not sure how to change the walkthrough ability, but you could try adding flags to the npc's, like this, to stop them from being pushed.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Radcliffe" script="data/npc/scripts/addons/assassin.lua" walkinterval="500" floorchange="0">
   <health now="100" max="100"/>
   <look type="152" head="116" body="95" legs="95" feet="95" addons="3"/>
   <flags>
     <flag pushable="0"/>
   </flags>
</npc>
i51BXcq.png

If the RME spawn limit doesn't work (I think it was changed in 0.3), you could also throw in some simple movement scripts to prevent the npcs from wandering too far.
(Place the aid on tiles in a doorway, depot entrance, edge of boat.. et cetera)

Code:
function onStepIn(cid, item, position, fromPosition)
   if isNpc(cid) then
     doTeleportThing(cid, fromPosition, false)
   end
   return true
end

Well hopefully that helps.

Cheers,

Xikini
 
Last edited:
crash server :( after push furniture under npc
Too late here, but if you don't want your pc to move and be pushed, just edit spawns.xml of your world and set the radius to 0.

i.e:


<spawn centerx="32666" centery="31676" centerz="15" radius="0">
<npc name="Demon Skeleton NPC" x="0" y="0" z="15" spawntime="30"/>
</spawn>
 
Back
Top