Resource icon

Horde Spawner: aka Horde of Rats 2016-07-13

Author
RedBeard
Downloads
60
Views
1,862
First release
Last update
Rating
0.00 star(s) 0 ratings
No permission to download Join the discussion More information

More resources from RedBeard

Here is the Horde System released some time ago on RunUo.

I made some simple adjustments to work on ServUo.
Originally this package included just a pack of ratmen and orcs, I've added Brigands as well.
What it does: It places a spawner 1 of 3 types. Ratmen, Orc, Brigand,
in the form of melee, ranged, mage. You can specify the # to spawn in the main script, distance they can spawn from your chosen location. The horde waits hidden either near the road or in the woods (specify in scripts). When an unsuspecting player rolls up on the scene, they jump out and try to kill, steal and loot. After a set time (adjust in scripts) they return to hidding, to do it all over again.

HordeSystem.cs: this is where all adjustments can be made. Find this section-

//==Spawn location==//

public virtual bool AlwaysInForest{ get{ return false; } }
public virtual bool AlwaysNearARoad{ get{ return true; } }

both of these cannot be true for this to work, if you want to set them both to true, you will then need to set the override in each script: orc, brigand, and or Rat script to only allow one choice to be true
reguardless of how you use this, AlwaysInForest & AlwaysNearRoad cannot be set to the same value.

as you can see below I commented the overrides out in each script so it works all the same and drag & drop. meaning currently they all spawn near the road.
#region Overrides

//public override double Type_1_ratio{ get{ return 0.5; } }
//public override double Type_2_ratio{ get{ return 0.5; } }
//public override double Type_3_ratio{ get{ return 1.0; } }
//public override int m_minCount{ get{ return 3; } }
//public override int m_maxCount{ get{ return 12; } }
//public override int m_HordeHomeRange{ get{ return 200; } }
//public override int m_ThiefHomeRange{ get{ return 20; } }
//public override TimeSpan m_HordeSpawnDelay{ get{ return TimeSpan.FromHours(1);} }
//public override TimeSpan m_VanishAfterCombat{ get{ return TimeSpan.FromMinutes(3);} }

//public override bool AlwaysInForest{ get{ return true; } }
//public override bool AlwaysNearARoad{ get{ return true; } }

//public override bool ShowNames{ get{ return false; } }
#endregion

==Other thoughts==
AlwaysInForest never seemed like a location for theives IMO. I considered making a Horde of wolves or other animals with pack instincts, to surprise a player who has gotten off the beaten-path, your choice. If anyone decides to make more horde scripts to share with this, please feel free to post them here for others to enjoy.
  • Like
Reactions: Archaaz and gametec

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back