Not sure if this is actually a bug or not, but in cstats, the NPC Wander value will fluctuate.
If they are walking around and you cstats them, it will be 3 or whatever it should be.
If they have stopped walking when they wander into another npc and you cstats them, it will be 0.
I would assume the value would always be 3 or whatever it is in the spawn.dfn, but maybe I misunderstand.
Like maybe its the 'current wander state' of 3 and then when they get stuck, that state is 0, etc.
I have set npcwander 0 on npcs just to have them start walking around again.
Also I am not sure how to confirm, but having npcwander set > 0 seems to void scripted walkto. I have a script to walkto different coordinates every hour, but the npc just seems to wander in the original location, never going to the scripted locations.
Or maybe the problem is I'm experimenting on these npcs created by spawn.dfn instead of adding my own from scratch? I guess that will be the next step to try.
Thanks!
NPC Wander
-
Mindless Automaton
- UOX3 Apprentice
- Posts: 189
- Joined: Wed May 10, 2006 3:48 am
- Has thanked: 0
- Been thanked: 1 time
- Contact:
NPC Wander
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Mmm that seems related to a change I did in an attempt to resolve some pathfinding issues with NPCs who get blocked by other NPCs. I temporarily set their npcwander flag to 0 for a short time to stop them repeatedly attempting to pathfind to a blocked location. Then after a few seconds they try again, with npcwander setting being returned to the original one. However, I think maybe this might have been a mistake, as it might conflict with any scripts that check or try to adjust the npcwander settings.
I'll do a second pass on it and use some other way of stopping the NPCs from moving for a bit instead of force-changing their npcwander value
I'll do a second pass on it and use some other way of stopping the NPCs from moving for a bit instead of force-changing their npcwander value
-= Ho Eyo He Hum =-