Why is there a space here: new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
Apart from that, i'll test the behavior and reply.
so i just made a behavior for a custom enemy and it shows red everywhere but i just can't find the Mistake
I know some idiots will probably leech this shitty behavior but idc tbh
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;
using wServer.realm;
using wServer.realm.entities;
using wServer.realm.entities.player;
namespace wServer.logic
{
partial class BehaviorDb
{
private _ Centaur = () => Behav()
.Init("Centaur God",
new State(
new DropPortalOnDeath("Event Paradise Portal", 80),
new State("fire",
new PlayerWithinTransition(8, "FireUp")
),
new State("FireUp",
new Taunt("U DARE TO CHALLENGE ME?"),
new Wander(.3),
new Shoot(10, projectileIndex: 0, count 10, shotAngle: 20 predictive: 1, cooldown: 1000, coolDownOffset: 1000),
new Shoot(10, projectileIndex: 0, count 2, shotAngle: 10 predictive: 0.5, cooldown: 2000, coolDownOffset: 2000),
new TimedTransition(4000, "Spawn")
),
new State("Spawn",
new TossObject("Cyclops Warrior", 5, 0, coolDown: 9999999, randomToss: false),
new Taunt("I can play unfair too morons"),
new TossObject("Cyclops Warrior", 5, 90, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 180, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 270, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 360, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 450, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 540, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 600, coolDown: 9999999, randomToss: false),
new HpLessTransition(.8, "Firedown")
),
new State("Firedown",
new Taunt("that doesn't stop you? no problem haha"),
new Shoot(10, 8, 20, projectileIndex: 0, predictive: 1, cooldown: 1000),
new Shoot(10, 2, 10, projectileIndex: 1, predictive: 0.5, coolDown 2000),
new Follow(1, range: 7),
new HpLessTransition(.5, "Rage")
),
new State("Rage",
new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
new Taunt("ok guess YOU LEAVE ME NO CHOICE"),
new Taunt("YOU HAVE MADE ME VERY ANGRY FEEL MY WRAITH"),
new TossObject("Cyclops Warrior", 5, 90, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 180, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 270, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 360, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 450, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 540, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 600, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 90, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 180, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 270, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 360, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 450, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 540, coolDown: 9999999, randomToss: false),
new TossObject("Cyclops Warrior", 5, 600, coolDown: 9999999, randomToss: false),
new TimedTransition(1500, "Few")
),
new State("Few",
new Shoot(10, 8, 20, projectileIndex: 0, predictive: 1, cooldown: 900),
new Shoot(10, 2, 10, projectileIndex: 1, predictive: 0.5, coolDown 1000),
new HpLessTransition(.2, "End")
),
new State("End",
new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
new Taunt("NO, you made me Weak agh"),
new Taunt("We will see us again"),
new Suicide()
)
),
new MostDamagers(5,
new ItemLoot("Potion of Attack"),
new ItemLoot("Potion of Speed")
),
new Threshold(0.05,
new TierLoot(8, ItemType.Weapon, 0.2),
new TierLoot(9, ItemType.Weapon, 0.175),
new TierLoot(10, ItemType.Weapon, 0.125),
new TierLoot(11, ItemType.Weapon, 0.05),
new TierLoot(8, ItemType.Armor, 0.2),
new TierLoot(9, ItemType.Armor, 0.175),
new TierLoot(10, ItemType.Armor, 0.15),
new TierLoot(11, ItemType.Armor, 0.1),
new TierLoot(12, ItemType.Armor, 0.05),
new TierLoot(4, ItemType.Ability, 0.15),
new TierLoot(5, ItemType.Ability, 0.1),
new TierLoot(5, ItemType.Ring, 0.05)
)
);
}
}
the spaces in invulnerable are because of mpgh
Last edited by UnknownRhapsody; 04-27-2018 at 08:12 AM.
Why is there a space here: new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
Apart from that, i'll test the behavior and reply.
One mistake I found:
new DropPortalOnDeath("Event Paradise Portal, 80"),
it should be:
new DropPortalOnDeath("Event Paradise Portal", 80),
and there you didn't close "
new ItemLoot("Potion of Attack"),
new ItemLoot("Potion of Speed")
UnknownRhapsody (04-27-2018)
"I can play unfair too morons" grammar error :P
haha so funny get off grammar nazi
congrats ive fixed it too