Full Version : Help XML Smart Spawner
xmlspawner >>XMLSpawner - Discussion >>Help XML Smart Spawner
<< Prev | Next >>
Erica- 07-14-2006
Hi ArteGordon ive been using your system for a while now. Now i do have the 313 one you released the thing is i had 312 then updated to 313 now the smart spawners are awesome but i cant seem to find a command just so all npc in towns and animals that are in town to not use the smart spawner i was only wanted only dungeons and out of town areas to use only the smart spawner ive tryed a few commands but no luck is there a command for all the npcs and animals that are in town to not be using the smart spawner thanks.
ArteGordon- 07-15-2006

QUOTE (Erica @ July 14, 2006 09:55 pm)
Hi ArteGordon ive been using your system for a while now. Now i do have the 313 one you released the thing is i had 312 then updated to 313 now the smart spawners are awesome but i cant seem to find a command just so all npc in towns and animals that are in town to not use the smart spawner i was only wanted only dungeons and out of town areas to use only the smart spawner ive tryed a few commands but no luck is there a command for all the npcs and animals that are in town to not be using the smart spawner thanks.

the easiest thing to do is to use a command like
[area set smartspawning false where xmlspawner
and then target the area around your town and it will turn off smartspawning on all of the xmlspawners there.
Erica- 07-15-2006
Ahh ok would be cool if you made a script that if you sayed one command and would do that hehe that would mean ill have to go all around the maps town would take forever unless if there was another way you could add something on the xml spawners when activing the smart spawners oh well i guess ill have to just leave it like this to much work to go all over the world to just get theses towns of npc and animals to be targeted thanks tho.
ArteGordon- 07-15-2006
you could try making this simple mod to the optimalsmartspawning command around line 4100 in xmlspawner2.cs

QUOTE
[Usage("OptimalSmartSpawning [max spawn/homerange diff]")] [Description("Activates SmartSpawning on XmlSpawners that are well-suited for use of this feature.")] public static void OptimalSmartSpawning_OnCommand(CommandEventArgs e) { int maxdiff = 1;
if (e.Arguments.Length > 0)
{
try
{
maxdiff = int.Parse(e.Arguments[0]);
}
catch { }
}
int count = 0;
int maxcount = 0;
foreach (Item item in World.Items.Values)
{
if (item is XmlSpawner)
{
XmlSpawner spawner = (XmlSpawner)item;
// determine whether this spawner is a good candidate
if (spawner.Deleted) continue;
// no smartspawning in towns
if (Region.Find(spawner.Location, spawner.Map) is Regions.TownRegion) continue;

and then run the [optimalsmartspawning command again.
Erica- 07-15-2006
Ok i edited the script like you said and said that command after reboot i went to brit to moonglow and some other towns said the command you said to say and i looked at those spawners like bankers animaltrainers exc exc and they still say true to smart spawning when i double clicked those so that didnt work.Also when i said that command saw this message--->Configured 2193 XmlSpawners for SmartSpawning using maxdiff of 1 Estimated item/mob reduction is 13779.
ArteGordon- 07-15-2006
if they were true before, then they will remain true after you run the command. The mod just skips spawners in town, it doesnt set them to false.
try this first
[global set smartspawning false where xmlspawner
and then run the
[optimalsmartspawning
command.
Erica- 07-15-2006
Ok tryed what you said then did the [optimalsmartspawning now when i said that everything stills stays false in dungeons .
ArteGordon- 07-15-2006
when you use the
[smartstat
command. How many spawners does it say that it configured for smartspawning?
Erica- 07-15-2006
ok before using [optimalsmartspawner i did the [smartstat says this 4619 XmlSpawners then 4579 are configured for smartspawner then says 4566 are currently inactived then says 292328 sectors being monitored current spawn count is 164 then current spawn reduction is 29310 maximum possible saves is 99% current savings 99%. now its after doing what you told me first is reduction is up now and all the other numbers as well.
ArteGordon- 07-16-2006
so that means they all have smartspawning set to true.
If you want to set them to false, you need to run the command
[global set smartspawning false where xmlspawner
then run the [optimalsmartspawning command after that.
Erica- 07-16-2006
Thats exactly what i meant ArteGordon i did all that but all the xml spawners now stays false i can say [optimalsmartspawning after what you told me to do and the ones outta the town regions in dungeons they stay false when it should go true.
ArteGordon- 07-16-2006

QUOTE (Erica @ July 16, 2006 07:53 am)
Thats exactly what i meant ArteGordon i did all that but all the xml spawners now stays false i can say [optimalsmartspawning after what you told me to do and the ones outta the town regions in dungeons they stay false when it should go true.

try easing the restrictions on homerange and spawnrange difference with
[optimalsmartspawning 100
and then do a [smartstat and see what it says
Erica- 07-16-2006
Ok looks like that did it the [optimalsmartspawning 100 then i did this [smartstat and this what it said ,4619 XmlSpawners , 3270 are configured for smartspawning 3150 are currently inactivated , 292378 sectors being monitored Maximum possibles spawn reduction is 19116, Current spawn count is 1831, CURRENT SPAWN REDUCTION IS 18715 ,Maximum possible savings is 64% , Current savings is 63%. so is this good was it only the dungeons now have smart spawners on ?
ArteGordon- 07-16-2006
that mod wouldnt restrict it to dungeons, it would just exclude towns.
Erica- 07-20-2006
One more question ArteGordon ok everything is smartspawning to be true for dungeons now it should of set it up the map Wildlife as well the regulars pets out of town has smartspawning set to false is there a way i can use the command [xmlfind and set all those maps on that gump as set true for smartspawning thanks.