• 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 walking so fast and dont saying bye (otxserver2)

qben360

Member
Joined
Feb 20, 2015
Messages
170
Solutions
1
Reaction score
12
Look the npc likes crazy, they walking so fast at normal. How i can change this?

Video:
bandicam 2017-03-09 15-09-58-238

And i have problem when player say hi to npc he respond and player can buy items, and can say bye, but if player didint say bye, npc dont say bye , then noobs can block npc

About npc dont saying bye when player is afk not respond, i found something in npchandler.lua
function NpcHandler:setMaxIdleTime(newTime)
self.idleTime = newTime

what i need change? to work npc responding "Good bye" when player is AFK.

OK i change respond goodbye but i need change this speed walking npc
 
Last edited by a moderator:
In your npc .xml file, you have this line:
<npc name="Npc" walkinterval="1000" speed="100" walkradius="7" floorchange="0">

'walkinterval' is time between every step npc takes. Set up to 1000 means, npc will take step each second.
Change to whatever time you want.
 
. try to test atleast? reduce increase the interval....
for the other problem add talkradius to the npcs that aare giving trouble
if are them too much do it via npc library
check othire npc or others distro and change files
 
guys someone know where i can change this in lib? , becasue i have a lot of npc and i think i can edit this in library but need help

[SOLVED] please close thread
 
Last edited by a moderator:
guys someone know where i can change this in lib? , becasue i have a lot of npc and i think i can edit this in library but need help

[SOLVED] please close thread

Please read the rules; Rules for the Support board
#2, #7, #8

In your npc .xml file, you have this line:


'walkinterval' is time between every step npc takes. Set up to 1000 means, npc will take step each second.
Change to whatever time you want.

How to display CODE properly in your post
 
Back
Top