Code:
using System;
using wServer.logic.loot;
using static wServer.logic.BehaviorDb;
namespace wServer.logic.db
{
partial class BehaviorDb
{
static _ TopChest = Behav()
.Init(0x251f, Behaves("Top Chest", new RunBehaviors(
Once.Instance(SetConditionEffect.Instance(ConditionEffectIndex.Invulnerable)), //this blue shield...
Once.Instance(new SetKey(-1, 0)),
IfEqual.Instance(-1, 0,
new QueuedBehavior(CooldownExact.Instance(5000), //after 5 sec your chest unset Invulnerable (blue shield)
UnsetConditionEffect.Instance(ConditionEffectIndex.Invulnerable),
new SetKey(-1, 1)
))
),
loot: new LootBehavior(LootDef.Empty,
Tuple.Create(100, new LootDef(0, 5, 0, 8,
Tuple.Create(0.05, (ILoot)new TierLoot(6, ItemType.Ability)),
Tuple.Create(0.05, (ILoot)new TierLoot(13, ItemType.Armor)),
Tuple.Create(0.05, (ILoot)new TierLoot(12, ItemType.Weapon)),
Tuple.Create(0.2, (ILoot)new TierLoot(5, ItemType.Ring))
)))));
private static object Behav()
{
throw new NotImplementedException();
}
private static object Behaves(string v, RunBehaviors runBehaviors, LootBehavior loot)
{
throw new NotImplementedException();
{
} }
}
}
Please help me.