Results 1 to 9 of 9
  1. #1
    UnknownRhapsody's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Sleepy

    dunno whats wrong with the behavior

    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.

  2. #2
    HeavenRotMG's Avatar
    Join Date
    Feb 2018
    Gender
    male
    Posts
    53
    Reputation
    10
    Thanks
    6
    Why is there a space here: new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),

    Apart from that, i'll test the behavior and reply.

  3. #3
    UnknownRhapsody's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Sleepy
    Quote Originally Posted by HeavenRotMG View Post
    Why is there a space here: new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),

    Apart from that, i'll test the behavior and reply.
    its because of mpgh it wasnt intended from me

  4. #4
    sebastianfra12's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    361
    Reputation
    21
    Thanks
    75
    My Mood
    Inspired
    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")

  5. The Following User Says Thank You to sebastianfra12 For This Useful Post:

    UnknownRhapsody (04-27-2018)

  6. #5
    UnknownRhapsody's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Sleepy
    Quote Originally Posted by sebastianfra12 View Post
    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")
    fixed still everywhere red tho

  7. #6
    swankhawk's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    30
    My Mood
    Bored
    "I can play unfair too morons" grammar error :P

  8. #7
    UnknownRhapsody's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Sleepy
    haha so funny get off grammar nazi

  9. #8
    swankhawk's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    30
    My Mood
    Bored
    Quote Originally Posted by UnknownRhapsody View Post
    haha so funny get off grammar nazi
    atleast my behaviors work :P

  10. #9
    UnknownRhapsody's Avatar
    Join Date
    Mar 2018
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Sleepy
    congrats ive fixed it too

Similar Threads

  1. What is wrong with the dupe in this forum?
    By Fabianel in forum Realm of the Mad God Discussions
    Replies: 29
    Last Post: 12-19-2013, 01:10 PM
  2. what's wrong with the attachments on the site?
    By supercarz1991 in forum General
    Replies: 2
    Last Post: 11-10-2013, 11:32 PM
  3. [Discussion] What is the wrong with the game?------
    By H-C-L in forum CrossFire Discussions
    Replies: 16
    Last Post: 05-26-2013, 01:43 PM
  4. Replies: 2
    Last Post: 01-14-2013, 09:40 PM
  5. OK TELL ME WHATS WRONG WITH THE TWO CLANS lol
    By percept in forum Combat Arms Help
    Replies: 10
    Last Post: 08-28-2009, 12:34 PM