Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wServer.realm;
using wServer.logic.attack;
using wServer.logic.movement;
using wServer.logic.loot;
using wServer.logic.taunt;
using wServer.logic.cond;
namespace wServer.logic
{
partial class BehaviorDb
{
static _ CubeGod = Behav()
.Init(0x0d59, Behaves("Cube God",
SimpleWandering.Instance(1, .5f),
new RunBehaviors(
Cooldown.Instance(750, PredictiveMultiAttack.Instance(25, 10 * (float)Math.PI / 180, 9, 1, projectileIndex: 0)),
Cooldown.Instance(1500, PredictiveMultiAttack.Instance(25, 10 * (float)Math.PI / 180, 4, 1, projectileIndex: 1)),
If.Instance(
IsEntityPresent.Instance(15, null),
OrderGroup.Instance(20, "Cube Minions", new SetKey(-1, 0)),
If.Instance(
IsEntityNotPresent.Instance(20, null),
OrderGroup.Instance(20, "Cube Minions", new SetKey(-1, 1))
)
)
),
IfNot.Instance(
Once.Instance(
new RunBehaviors(
SpawnMinionImmediate.Instance(0x0d5a, 5, 3, 4),
SpawnMinionImmediate.Instance(0x0d5b, 5, 5, 10),
SpawnMinionImmediate.Instance(0x0d5c, 5, 5, 10)
)
),
Rand.Instance(
Reproduce.Instance(0x0d5a, 4, 5000, 20),
Reproduce.Instance(0x0d5b, 20, 1000, 20),
Reproduce.Instance(0x0d5c, 20, 1000, 20)
)
),
loot: new LootBehavior(LootDef.Empty,
Tuple.Create(100, new LootDef(0, 5, 0, 8,
Tuple.Create(0.05, (ILoot)new ItemLoot("Dirk of Cronus")), //5% de chance de loot Cronus
Tuple.Create(0.05, (ILoot)new ItemLoot("Amulet of Resurrection")), //5% de chance de loot Ammy
Tuple.Create(0.05, (ILoot)new TierLoot(11, ItemType.Weapon)),
Tuple.Create(0.05, (ILoot)new TierLoot(12, ItemType.Armor)),
Tuple.Create(0.05, (ILoot)new TierLoot(5, ItemType.Ring)),
Tuple.Create(1.0, (ILoot)new StatPotionsLoot(1, 2))
))
)
))
.Init(0x0d5a, Behaves("Cube Overseer",
IfNot.Instance(
Circling.Instance(5, 25, 4, 0x0d59),
SimpleWandering.Instance(2)
),
new RunBehaviors(
Cooldown.Instance(1000, PredictiveMultiAttack.Instance(10, 5 * (float)Math.PI / 180, 4, 1, projectileIndex: 0)),
Cooldown.Instance(2000, PredictiveAttack.Instance(10, 1, projectileIndex: 1))
)
))
.Init(0x0d5b, Behaves("Cube Defender",
IfNot.Instance(
IfEqual.Instance(-1, 0,
Chasing.Instance(7, 20, 1, null),
IfNot.Instance(
Chasing.Instance(7, 25, 7.5f, 0x0d5a),
Circling.Instance(7.5f, 25, 7, 0x0d59)
)
),
SimpleWandering.Instance(5)
),
Cooldown.Instance(500, SimpleAttack.Instance(10))
))
.Init(0x0d5c, Behaves("Cube Blaster",
IfNot.Instance(
IfEqual.Instance(-1, 0,
Chasing.Instance(7, 20, 1, null),
IfNot.Instance(
Chasing.Instance(7, 25, 7.5f, 0x0d5a),
Circling.Instance(7.5f, 25, 7, 0x0d59)
)
),
SimpleWandering.Instance(5)
),
Cooldown.Instance(1000, new RunBehaviors(
SimpleAttack.Instance(10, projectileIndex: 1),
MultiAttack.Instance(10, 5 * (float)Math.PI / 180, 2, projectileIndex: 0)
))
));
}
}
We'll take only this part :
Code:
loot: new LootBehavior(LootDef.Empty,
Tuple.Create(100, new LootDef(0, 5, 0, 8,
Tuple.Create(0.05, (ILoot)new ItemLoot("Dirk of Cronus")), //5% de chance de loot Cronus
Tuple.Create(0.05, (ILoot)new ItemLoot("Amulet of Resurrection")), //5% de chance de loot Ammy
Tuple.Create(0.05, (ILoot)new TierLoot(11, ItemType.Weapon)),
Tuple.Create(0.05, (ILoot)new TierLoot(12, ItemType.Armor)),
Tuple.Create(0.05, (ILoot)new TierLoot(5, ItemType.Ring)),
Tuple.Create(1.0, (ILoot)new StatPotionsLoot(1, 2))
This line is For Cronus: