I get an error when i use my custom O4 behav, i only get the error when i put it to Public instead of Private { i get errors when this is private ==>private _ Oryx4 = () => Behav()}
#region
using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;
#endregion
namespace wServer.logic
{
partial class BehaviorDb
{
private _ Oryx4 = () => Behav()
.Init("Oryx the Mad God 4",
new State(
new State("idle",
new Wander(.05),
new Shoot(30, projectileIndex: 0, count: 10, shootAngle: 34, coolDown: 1000, coolDownOffset: 1000),
new Shoot(25, projectileIndex: 1, count: 16, shootAngle: 23, coolDown: 1250, coolDownOffset: 1250),
new Shoot(40, projectileIndex: 2, count: 8, shootAngle: 35, coolDown: 650, coolDownOffset: 650),
new Shoot(50, projectileIndex: 3, count: 20, shootAngle: 12, coolDown: 500, coolDownOffset: 500),
new Shoot(55, projectileIndex: 4, count: 4, shootAngle: 45, coolDown: 1500, coolDownOffset: 1500),
new Taunt(1, 10000, "Wow, you puny mortals actually have a kick to your hits, i needa brake! Let me send out my kids..."),
new HpLessTransition(.75, "OryxGO!")
),
new State("OryxGO!",
new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
new Spawn("Oryx the Mad God 1", 4, coolDown: 6000),
new EntitiesNotExistsTransition(9999, "NOOO", "Oryx the Mad God 1")
),
new State("NOOO",
new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
new Taunt(1, 6000, "How is this possible! You should have never been able to kill my kids!"),
new Taunt(1, 8000, "Get Ready TO PERISH!"),
new TimedTransition(10000, "DIE!")
),
new State("DIE!",
new Wander(.05),
new Shoot(30, projectileIndex: 0, count: 30, shootAngle: 34, coolDown: 1000, coolDownOffset: 1000),
new Shoot(25, projectileIndex: 1, count: 40, shootAngle: 23, coolDown: 1250, coolDownOffset: 1250),
new Shoot(40, projectileIndex: 2, count: 24, shootAngle: 35, coolDown: 650, coolDownOffset: 650),
new Shoot(50, projectileIndex: 3, count: 40, shootAngle: 12, coolDown: 500, coolDownOffset: 500),
new Shoot(55, projectileIndex: 4, count: 12, shootAngle: 45, coolDown: 1500, coolDownOffset: 1500),
new HpLessTransition(.20, "No, HOW!")
),
new State("No, How!",
new Follow(0.8, range: 5, duration: 55000, coolDown: 0),
new Taunt(1, 6000, "HAHAHA, ONCE I GET TO YOU, YOU WILL BE OBLITERATED!"),
new Shoot(30, projectileIndex: 0, count: 25, shootAngle: 34, coolDown: 1000, coolDownOffset: 1000),
new Shoot(25, projectileIndex: 1, count: 25, shootAngle: 23, coolDown: 1250, coolDownOffset: 1250),
new Shoot(40, projectileIndex: 2, count: 25, shootAngle: 35, coolDown: 650, coolDownOffset: 650),
new Shoot(50, projectileIndex: 3, count: 25, shootAngle: 12, coolDown: 500, coolDownOffset: 500),
new Shoot(55, projectileIndex: 4, count: 25, shootAngle: 45, coolDown: 1500, coolDownOffset: 1500),
new HpLessTransition(.05, "ILetYouDown"
),
new State("ILetYouDown",
new Taunt("I guess you were to strong for me... take some loot why don't you?")
)
)
)
);
}
}