|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Nov 2004
Age: 20
Posts: 86
|
My dad had an interesting question the other day.....Do NPC's/monsters move when there are no players around? For instance, I found that the spawner I have puts large amounts of NPC's in the woods, but do they move if no one is around? Just curious about that.
|
|
|
|
|
|
#3 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
by default, the creature AI is turned off as soon as players move out of range. This is determined by the setting of the PlayerRangeSensitive property in BaseCreature.cs
Code:
public virtual bool PlayerRangeSensitive{ get{ return true; } }
You can reduce that cpu load by using something like the smartspawning that Redskull mentioned. You can also use the PlayerRangeSensitive mod (see the xmlspawner2 thread for a link to it) that enables the AI to remain active for some specified period of time after players go out of range even when PlayerRangeSensitive is true.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#4 (permalink) | |
|
RunUO Forum Moderator
|
Quote:
I just want to add my opinion of those "smart" spawners. Having tons of npcs will increase your save time but won't effect lag. Having "smart" spawners will decrease save time a bit and increase lag a lot. Personally I prefer longer saves with less lag...
__________________
I always try to help
![]() Sometimes, I don't know how.... ![]() My Web Page Forum Rules ------------------------------------------------------------- Extensive OWLTR System | Token System | World Teleporters ------------------------------------------------------------- |
|
|
|
|
|
|
#5 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
But if you have PlayerRangeSensitive set to false, then anything that reduces the number of active spawns will have a very significant impact on cpu usage and lag.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#6 (permalink) | |
|
RunUO Forum Moderator
|
Quote:
I just can't think of any reason to set it to false ![]()
__________________
I always try to help
![]() Sometimes, I don't know how.... ![]() My Web Page Forum Rules ------------------------------------------------------------- Extensive OWLTR System | Token System | World Teleporters ------------------------------------------------------------- |
|
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
It is a good thing to set it false at the dungeon entrance spawns, because they are usually surrounded by the allured monsters and getting into the dungeon means in most cases being instantly killed.
__________________
Angels are falling the very last time, down they're burning in hate and decline, unfaithful and violent we're breaking the spell, we're god, we're scissor, in heaven and hell! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|