Code:
.Init("shtrs encounterchestspawner",
new State(
new State("Idle",
new ConditionalEffect(ConditionEffectIndex.Invincible, true)
),
new State("Spawn",
new Spawn("shtrs Encounter Chest", 1, 1),
new CopyLootState("shtrs Encounter Chest", 10),
new TimedTransition(5000, "Idle")
)
)
)
.Init("shtrs Encounter Chest",
new State(
new State("Idle",
new ConditionalEffect(ConditionEffectIndex.Invulnerable),
new TimedTransition(5000, "Bracer")
),
new State("Bracer")
),
new Threshold(0.1,
new TierLoot(11, ItemType.Weapon, 0.06),
new TierLoot(12, ItemType.Weapon, 0.05),
new TierLoot(6, ItemType.Ability, 0.05),
new TierLoot(12, ItemType.Armor, 0.06),
new TierLoot(13, ItemType.Armor, 0.05),
new TierLoot(6, ItemType.Ring, 0.06)
),
new LootState("obelisk",
new Threshold(0.32,
new ItemLoot("Potion of Attack", 1),
new ItemLoot("Potion of Defense", 0.5)
),
new Threshold(0.1,
new ItemLoot("Bracer of the Guardian", 0.005)
)
),
new LootState("archmage",
new Threshold(0.32,
new ItemLoot("Potion of Mana", 1)
),
new Threshold(0.1,
new ItemLoot("The Twilight Gemstone", 0.005)
)
),
new LootState("forgottenKing",
new Threshold(0.32,
new ItemLoot("Potion of Life", 1)
),
new Threshold(0.1,
new ItemLoot("The Forgotten Crown", 0.005)
)
)
)