UltimaLive Lumber Harvesting

UltimaLive Lumber Harvesting 0.43

Q. What is the default graphic ID range for LumberHarvest?
A. Lumber Harvest uses 0x3BBD through 0x3CD5 by default. All full tree graphics are removed (Oak1.bmp, Pine1.bmp, etc)

Q. How do I use a different range of graphic ID's?
A. Edit HarvestableTrees.cs and change the graphic ID on each Graphic Asset.

e.g.
Code:
public class FallenOakTree : FallenTreePhase
  {
  public static void Configure() { RegisterHarvestablePhase(new FallenOakTree()); }

  public FallenOakTree()
  {
  HarvestResource logResource  = new HarvestResource(00.0, 00.0, 100.0, 1072540, typeof(Log));
  HarvestResource oakResource  = new HarvestResource(65.0, 25.0, 105.0, 1072541, typeof(OakLog));
  HarvestResource ashResource  = new HarvestResource(80.0, 40.0, 120.0, 1072542, typeof(AshLog));
  HarvestResource yewResource  = new HarvestResource(95.0, 55.0, 135.0, 1072543, typeof(YewLog));
  HarvestResource heartwoodResource = new HarvestResource(100.0, 60.0, 140.0, 1072544, typeof(HeartwoodLog));
  HarvestResource bloodwoodResource = new HarvestResource(100.0, 60.0, 140.0, 1072545, typeof(BloodwoodLog));
  HarvestResource frostwoodResource = new HarvestResource(100.0, 60.0, 140.0, 1072546, typeof(FrostwoodLog));

  PhaseResources.Add(0,  logResource);
  PhaseResources.Add(350, oakResource);
  PhaseResources.Add(751, ashResource);
  PhaseResources.Add(545, yewResource);
  PhaseResources.Add(436, heartwoodResource);
  PhaseResources.Add(339, bloodwoodResource);
  PhaseResources.Add(688, frostwoodResource);

  GraphicAsset asset1 = new GraphicAsset(0x3BC2, -1, 0);
  asset1.HarvestResourceBaseAmount = 10;

  GraphicAsset asset2 = new GraphicAsset(0x3BC3, -2, 0);
  asset2.HarvestResourceBaseAmount = 10;

  GraphicAsset asset3 = new GraphicAsset(0x3BC4, -3, 0);
  asset3.HarvestResourceBaseAmount = 10;

  GraphicAsset asset4 = new GraphicAsset(0x3BC5, -4, 0);
  asset4.HarvestResourceBaseAmount = 10;

  GraphicAsset asset5 = new GraphicAsset(0x3BC6, -5, 0);
  asset5.HarvestResourceBaseAmount = 10;

  GraphicAsset asset6 = new GraphicAsset(0x3BC7, -5, -1);
  asset6.HarvestResourceBaseAmount = 10;

  GraphicAsset asset7 = new GraphicAsset(0x3BC8, -4, -1);
  asset7.HarvestResourceBaseAmount = 10;

  GraphicAsset asset8 = new GraphicAsset(0x3BC9, -3, -1);
  asset8.HarvestResourceBaseAmount = 10;

  GraphicAsset asset9 = new GraphicAsset(0x3BCA, -2, -1);
  asset9.HarvestResourceBaseAmount = 10;

  GraphicAsset asset10 = new GraphicAsset(0x3BCB, -3, -2);
  asset10.HarvestResourceBaseAmount = 10;

  GraphicAsset asset11 = new GraphicAsset(0x3BCC, -5, 1);
  asset11.HarvestResourceBaseAmount = 10;

  GraphicAsset asset12 = new GraphicAsset(0x3BCD, -4, 1);
  asset12.HarvestResourceBaseAmount = 10;

  GraphicAsset asset13 = new GraphicAsset(0x3BCE, -3, 1);
  asset13.HarvestResourceBaseAmount = 10;

  GraphicAsset asset14 = new GraphicAsset(0x3BCF, -2, 1);
  asset14.HarvestResourceBaseAmount = 10;

  BaseAssetSets.Add(new GraphicAsset[] { asset1, asset2, asset3, asset4, asset5, asset6, asset7, asset8, asset9, asset10, asset11, asset12, asset13, asset14 });
  }

Q. How do I change the amount of resources given by a particular graphic?
A. Modify the graphic asset in the tree, and change the HarvestResourceBaseAmount. Each Graphic asset has numerous configurations that can be set. You can specify the base amount of the regular harvest resource to give the player, or you can even specify bonus resources according to wood type (hue).

e.g.
Code:
  GraphicAsset asset1 = new GraphicAsset(0x3BC2, -1, 0);
  asset1.HarvestResourceBaseAmount = 10;

GraphicAsset asset2 = new GraphicAsset(0x3BC3, -2, 0);
  asset2.HarvestResourceBaseAmount = 20;

Q. How do I assign bonus resources to a particular graphic?
A. Edit the Graphic Asset and set the bonus resources you want to be possible. Each asset has a set of bonus resources that is keyed by tree hue. This allows linking bonus resources according to wood type.

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back