This is just an event I made.. not hard...
I got the xml halfway thru this so thats why some projectile Id's are missing.
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;
using wServer.logic.attack;
using System;
namespace wServer.logic
{
partial class BehaviorDb
{
static _ Tridorno = Behav()
.Init(0x0b9b, Behaves("Tridorno",
new RunBehaviors(
SetConditionEffect.Instance(ConditionEffectIndex.Invulnerable),
Once.Instance(IsEntityPresent.Instance(22, null)),
UnsetConditionEffect.Instance(ConditionEffectIndex.Invulnerable),new SetKey(-1, 1)),
IfEqual.Instance(-1, 1,
new RunBehaviors(
Once.Instance(new SimpleTaunt("Get ready for me to toss your salad!")))
),
HpLesserPercent(0.6f,
new RunBehaviors(
Chasing.Instance(8/3, 30, 1, null),
Once.Instance(new SimpleTaunt("YOU HAVE TOSSED MY SALAD!!!! I WILL GET MY REVENGE SOME DAY AND TOSS YOURS! MAWAHAHAHAHAH!!!!!!!! ;")),
CooldownExact.Instance(2000, MultiAttack.Instance(7, 15 * (float)Math.PI / 180, 8, 0, projectileIndex: _)),
CooldownExact.Instance(4500, MultiAttack.Instance(15, 10 * (float)Math.PI / 180, 7, 0, projectileIndex: _))
)),
HpLesserPercent(0.4f,
new RunBehaviors(
Once.Instance(new SimpleTaunt("KEEP TOSSING MY SALAD AND I WILL HAVE ORYX TOSS YOURS!")), new SetKey(-1, 2))
),
IfEqual.Instance(-1, 2,
new RunBehaviors(
InfiniteSpiralAttack.Instance(180, 5, 1, projectileIndex: _), new SetKey(-1, 3))
),
IfEqual.Instance(-1, 3,
new State("Alot of fucking Simple ATtacks",
Once.Instance(new SimpleTaunt(" YOU HAVE TOSSED MY SALAD!!!! I WILL GET MY REVENGE SOME DAY AND TOSS YOURS! MAWAHAHAHAHAH!!!!!!!! ;)")),
Cooldown.Instance(500, SimpleAttack.Instance(30, projectileIndex: 1)),
Cooldown.Instance(760, SimpleAttack.Instance(30, projectileIndex: 1)),
Cooldown.Instance(500, SimpleAttack.Instance(20, projectileIndex: 1)),
Cooldown.Instance(760, SimpleAttack.Instance(20, projectileIndex: 1)),
Cooldown.Instance(1000, RingAttack.Instance(8, 6, 0, projectileIndex: 4)),
Cooldown.Instance(300, MultiAttack.Instance(10, 12 * (float)Math.PI / 180, 5, 0, projectileIndex: 3))
)),
HpLesserPercent(0.1f,
new RunBehaviors(
Swirling.Instance(30, 5),
Once.Instance(new SimpleTaunt("NOOOOOOOOOOOO YOU TOSS MY SALAD! BUT YOU ARE NOW THEE SALAD TOSSER FOOL! YOU ADVENTUREOUS REALMERS SHALL NEVER LEARN MAWHAHA")),
Cooldown.Instance(500, SimpleAttack.Instance(30, projectileIndex: 1)),
Cooldown.Instance(760, SimpleAttack.Instance(30, projectileIndex: 1)),
Cooldown.Instance(500, SimpleAttack.Instance(20, projectileIndex: 1)),
Cooldown.Instance(760, SimpleAttack.Instance(20, projectileIndex: 1)),
Cooldown.Instance(1500, RingAttack.Instance(8, 6, 0, projectileIndex: 4)),
Cooldown.Instance(300, MultiAttack.Instance(10, 12 * (float)Math.PI / 180, 5, 0, projectileIndex: 3))
)),
loot: new LootBehavior(LootDef.Empty,
Tuple.Create(100, new LootDef(0, 8, 0, 8,
Tuple.Create(0.001, (ILoot)new TierLoot(4, ItemType.Ability)),
Tuple.Create(0.005, (ILoot)new TierLoot(5, ItemType.Ability)),
Tuple.Create(0.03, (ILoot)new ItemLoot("Shiftrye Armor")),
Tuple.Create(0.5, (ILoot)new StatPotionLoot(StatPotion.Att)),
Tuple.Create(0.5, (ILoot)new StatPotionLoot(StatPotion.Def))
))
))
);
}
}
Please note that thee xml was not made because Omni told me he would make it based on the behavior