Results 1 to 7 of 7
  1. #1
    awesomediamond's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    2
    My Mood
    Busy

    syntax error on behav need help

     
    #region

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using wServer.logic.transitions;
    using wServer.logic.behaviors;
    using wServer.logic.loot;

    #endregion

    namespace wServer.logic
    {
    partial class BehaviorDb
    {
    private _ landofexile = () => Behav()
    .Init("Liquid Ghast",
    new State(
    new State("idle",
    new PlayerWithinTransition(10, "Rage")
    ),
    new State("Rage",
    new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
    new Taunt("I Have Vanished from your Sight!!!"),
    new Shoot(25, projectileIndex: 0, count: 8, shootAngle: 25, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(25, projectileIndex: 1, count: 3, shootAngle: 10, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(25, projectileIndex: 2, count: 3, shootAngle: 10, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(10, projectileIndex: 3, count: 30, shootAngle: 10, coolDown: 10000, coolDownOffset: 10000),
    new Taunt(1, 10000, "LEAVE NOW"),
    new TimedTransition(25000, "check")
    ),
    new State("check",
    new Taunt("Hm Your Still Here Impossible"),
    new SpawnGroup("Liquid Blob", 15, coolDown: 7500),
    new Shoot(15, projectileIndex: 4, count: 15, shootAngle: 180, coolDown: 1500, coolDownOffset: 1500),
    new TimedTransition(20000, "attack1")
    ),
    new State("attack1",
    new Wander(0.6),
    new Shoot(15, projectileIndex: 5, count: 15, shootAngle: 30, coolDown: 900, coolDownOffset: 900),
    new Spawn("Conjured Warrior")
    )
    )
    )
    .Init("Liquid Blob",
    new State(
    new State("searching",
    new StayAbove(0.2, 50),
    new Prioritize(
    new Charge(2),
    new Wander(0.4)
    ),
    new Reproduce(densityMax: 5, densityRadius: 10),
    new PlayerWithinTransition(2, "creeping")
    ),
    new State("creeping",
    new Shoot(0, 10, 36, fixedAngle: 0),
    new Decay(0)
    )
    )
    )

    .Init("Conjured Wizard",
    new State(
    new State("Shoot",
    new Prioritize(
    new Wander(0.4),
    new StayCloseToSpawn(0.5, 10),
    new Shoot(15, projectileIndex: 0, count: 10, shootAngle: 36, coolDown: 600, coolDownOffset: 600),
    new TossObject("Water Bomb", 8, coolDown: 8000, coolDownOffset: 7000, randomToss: true),
    new TossObject("Water Bomb", 6, coolDown: 8000, coolDownOffset: 7000, randomToss: true),
    new TossObject("Water Bomb", 4, coolDown: 8000, coolDownOffset: 7000, randomToss: true),
    new TossObject("Water Bomb", 7, coolDown: 8000, coolDownOffset: 7000, randomToss: true),
    new TossObject("Water Bomb", 5, coolDown: 8000, coolDownOffset: 7000, randomToss: true),
    new HpLessTransition(0.2, "Suicide")
    ),
    new State("Suicide",
    new Suicide()
    )
    )
    )
    .Init("Protector of the Forest",
    new State(
    new State("Question",
    new Taunt("Why have you entered our land"),
    new TimedTransition(2500, "Protect")
    ),
    new State("Protect",
    new Shoot(15, projectileIndex: 0, count: 8, shootAngle: 45, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(15, projectileIndex: 1, count: 8, shootAngle: 40, coolDown: 1500, coolDownOffset: 1500),
    new Shoot(15, projectileIndex: 2, count: 8, shootAngle: 35, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(15, projectileIndex: 3, count: 8, shootAngle: 30, coolDown: 1500, coolDownOffset: 1500),
    new Shoot(15, projectileIndex: 4, count: 8, shootAngle: 25, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(15, projectileIndex: 5, count: 8, shootAngle: 20, coolDown: 1500, coolDownOffset: 1500),
    new Shoot(15, projectileIndex: 6, count: 8, shootAngle: 15, coolDown: 1000, coolDownOffset: 1000),
    new HpLessTransition(0.75, "Defense")
    ),
    new State("Defense",
    new Taunt("LEAVE THIS LAND AT ONCE"),
    new Shoot(20, projectileIndex: 7, count: 2, shootAngle: 180, coolDown: 2000, coolDownOffset: 2000),
    new Taunt(10000, "NEVER RETURN"),
    new HpLessTransition(0.5, "Final")
    ),
    new State("Final",
    new Taunt("IF YOU WILL NOT LEAVE YOU SHALL DIE"),
    new Shoot(15, projectileIndex: 0, count: 8, shootAngle: 45, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(15, projectileIndex: 1, count: 8, shootAngle: 40, coolDown: 1500, coolDownOffset: 1500),
    new Shoot(15, projectileIndex: 2, count: 8, shootAngle: 35, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(15, projectileIndex: 3, count: 8, shootAngle: 30, coolDown: 1500, coolDownOffset: 1500),
    new Shoot(15, projectileIndex: 4, count: 8, shootAngle: 25, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(15, projectileIndex: 5, count: 8, shootAngle: 20, coolDown: 1500, coolDownOffset: 1500),
    new Shoot(15, projectileIndex: 6, count: 8, shootAngle: 15, coolDown: 1000, coolDownOffset: 1000),
    new Shoot(20, projectileIndex: 7, count: 2, shootAngle: 180, coolDown: 2000, coolDownOffset: 2000),
    new Shoot(20, projectileIndex: 8, count: 20, shootAngle: 18, coolDown: 10000, coolDownOffset: 10000),
    new HpLessTransition(0.35, "Regenerate")
    ),
    new State("Regenerate",
    new ConditionalEffect(ConditionEffectIndex.Healing),
    new Taunt("I am UNSTOPPALBE"),
    new Spawn("Conjured Warrior"),
    new Shoot(10, projectileIndex: 9, count: 10, shootAngle: 36, coolDown: 4000, coolDownOffset: 4000),
    new TimedTransition(20000, "Death")
    ),
    new State("Death",
    new Taunt("At Last I Have Benn Bested"),
    new Suicide(
    )
    )
    ),
    new MostDamagers(3,
    new ItemLoot("Potion of Life", 1),
    new TierLoot(11, ItemType.Weapon, 1)
    ),
    new MostDamagers(2,
    new ItemLoot("Potion of Mana", 1)
    ),
    new Threshold(0.15,
    new ItemLoot("Protector's Spell", 0.02),
    new ItemLoot("Robe of the Protector", 0.015)
    ),
    new Threshold(0.08,
    new ItemLoot("Staff of the Protector", 0.024),
    new ItemLoot("Crown of the Protector", 0.011)
    )
    )
    )
    )
    )
    )
    )
    )
    )
    )
    )
    )
    )
    )
    )
    )
    ;
    }
    }

  2. #2
    Invader_Zim's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Atlas 2
    Posts
    546
    Reputation
    10
    Thanks
    300
    My Mood
    Tired
    Please try to fix the problem first before posting for help, try to look to see what is wrong. The problem is that your rage phase has a space on the invulnerable part.

    My weapon is a backpack.

  3. #3
    awesomediamond's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    2
    My Mood
    Busy
    https://imgur.com/a/cGFiM no it pasted weird i still get errors

  4. #4
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by awesomediamond View Post
    https://imgur.com/a/cGFiM no it pasted weird i still get errors
    https://prntscr.com/ex3nbq you need to add more parameters to this lmfao

  5. #5
    awesomediamond's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    2
    My Mood
    Busy
    Quote Originally Posted by MikeRaarupBirk View Post
    https://prntscr.com/ex3nbq you need to add more parameters to this lmfao
    https://imgur.com/a/dw1Rz added more parameters still receiving it i followed the cube god behav am i still missing something

  6. #6
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by awesomediamond View Post
    https://imgur.com/a/dw1Rz added more parameters still receiving it i followed the cube god behav am i still missing something
    why does it say new Suicide( and not new Suicide() ????????????

    maybe post the error message
    Last edited by MikeRaarupBirk; 04-16-2017 at 09:38 AM.

  7. #7
    toby2449's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    The Ocean
    Posts
    281
    Reputation
    10
    Thanks
    21
    My Mood
    Inspired
    Dude you have way too many closing parentheses at the end of the file. There is 15 in total.
    Last edited by toby2449; 04-16-2017 at 11:33 AM.

Similar Threads

  1. huge DLL error i really need help
    By BlackshadesNET in forum Combat Arms Help
    Replies: 3
    Last Post: 11-19-2012, 02:38 AM
  2. [Help Request] need help with retarded syntax errors
    By .:MUS1CFR34K:. in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 15
    Last Post: 05-17-2011, 12:19 PM
  3. [Help Request] Need Help With A.V.A Error
    By ch1025 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 7
    Last Post: 05-14-2011, 09:15 AM
  4. Need help with my mod, syntax error!!!
    By Varmperonsplitt in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 21
    Last Post: 10-30-2010, 10:25 AM
  5. Error code 40- NEED HELP
    By warrick983 in forum Combat Arms Hacks & Cheats
    Replies: 0
    Last Post: 08-28-2008, 03:14 PM