Resource icon

Massive Random Animal Spawner 2016-10-11

No permission to download

arphile

Squire
Apr 24, 2014
167
36
28
31
www.arphile.net
www.arphile.net
Shard Name
Region1999
Donate
Donate money to this user
arphile submitted a new resource:

Massive Random Animal Spawner - Auto Generate Animal Spawner in Forests.

Just put it in your script folder and use this command.

[AnimalSpawnGen
for make spawners

and

[AnimalSpawnRem
for remove all animal spawners.

This Script checks the distance with other animal spawners and place it to forests. ( If a place which script want to place, script will check near 20 tiles. if spawner is exist, it'll not place a new spawner. )

Enjoy!
Read more about this resource...
 

AndréZ

Citizen
Mar 2, 2017
23
2
3
40
Error here:

Errors:
+ Custom/MassiveAnimalSpawn.cs:
CS0117: Line 82: `Server.Map' does not contain a definition for `Arsene'
CS0117: Line 118: `Server.Map' does not contain a definition for `Arsene'
CS0117: Line 214: `Server.Map' does not contain a definition for `Arsene'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Running lastest ServUO git till today. Any clue?
 

Visam

Squire
Mar 19, 2015
310
78
28
47
Based on a quick look at the script I think you would need to replace Arsene with the name of the map your wanting to add spawners to.
 

pall

Squire
Aug 20, 2014
207
8
18
31
Shard Name
Ultima Iberia / Renegados UO
and this for water npcs? its possible?
 

Aschnyder26

Squire
Jul 6, 2016
280
27
28
Atlanta, GA
Shard Name
Europa UO
arphile submitted a new resource:

Massive Random Animal Spawner - Auto Generate Animal Spawner in Forests.



Read more about this resource...
Can someone break this down for me? So for instance in case 0 below the first number according to the key should be the amount of spawns. Correct? So for the first spawner it will generate a spawner with 10 birds and a minDelay of 1 and a maxDelay of 3, 0 for the team, 0 for homeRange and then spawnrange is randomized between 22 and 30? But then the next line for the chicken is adding that creature to the same spawner? What is the number 4 at the end for? Is that how many chickens its allowing for this spawner?

C#:
//XmlSpawner(int amount, int minDelay, int maxDelay, int team, int homeRange, int spawnrange, string creatureName)
              XmlSpawner spawner = null;
              int MaxSpawn = 0;
              int Counter = 0;
              switch( Utility.Random(6) ) {
                  case 0:
                      spawner = new XmlSpawner( 10, 1, 3, 0, 0, Utility.RandomMinMax(22,30), "Bird" );
                       spawner.m_SpawnObjects.Add( new XmlSpawner.SpawnObject("Chicken", 4) );
                      spawner.m_SpawnObjects.Add( new XmlSpawner.SpawnObject("Eagle", 2) );
                      MaxSpawn = 12;
                      Counter = 3;
                      break;