[help] Code gives internal error 08-27-2015, 02:00 AM
#1
so I code additions for a private server in ROTMG, and usually don't need to ask for help, but this addition gives me errors and I have no idea why/
here is the code:
I can't figure out why it won't work plz halp mi.
here is the code:
Spoiler:
Code:
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Text;
Using WServer.Logic.Behaviors;
Using WServer.Logic.Loot;
Using WServer.Logic.Transitions;
Namespace WServer.Logic
{
Partial Class BehaviorDb
{
Private _ GrandSphinx = () => Behav()
.Init("Grand Sphinx",
New State(
New Spawn("Horrid Reaper", MaxChildren: 8, InitialSpawn: 1),
New State("BlindAttack",
New Wander(0.0005),
New StayCloseToSpawn(0.5, 8),
New Taunt("You Hide Like Cowards... But You Can't Hide From This!"),
New State("1",
New Shoot(10, ProjectileIndex: 1, Count: 10, ShootAngle: 10, FixedAngle: 0),
New Shoot(10, ProjectileIndex: 1, Count: 10, ShootAngle: 10, FixedAngle: 180),
New TimedTransition(1500, "2")
),
New State("2",
New Shoot(10, ProjectileIndex: 1, Count: 10, ShootAngle: 10, FixedAngle: 270),
New Shoot(10, ProjectileIndex: 1, Count: 10, ShootAngle: 10, FixedAngle: 90),
New TimedTransition(1500, "1")
),
New TimedTransition(10000, "Ilde")
),
New State("Ilde",
New ConditionalEffect(ConditionEffectIndex.Invulnerable),
New Flash(0xff00ff00, 0.01, 50),
New TimedTransition(2000, "ArmorBreakAttack")
),
New State("ArmorBreakAttack",
New Wander(0.0005),
New StayCloseToSpawn(0.5, 8),
New Shoot(0, ProjectileIndex: 2, Count: 8, ShootAngle: 5, CoolDown: 300),
New TimedTransition(10000, "Ilde2")
),
New State("Ilde2",
New ConditionalEffect(ConditionEffectIndex.Invulnerable),
New Flash(0xff00ff00, 0.01, 50),
New TimedTransition(2000, "WeakenAttack")
),
New State("WeakenAttack",
New Wander(0.0005),
New StayCloseToSpawn(0.5, 8),
New Shoot(10, ProjectileIndex: 3, Count: 3, ShootAngle: 120, CoolDown: 900),
New Shoot(10, ProjectileIndex: 2, Count: 3, ShootAngle: 15, FixedAngle: 40, CoolDown: 1600, CoolDownOffset: 0),
New Shoot(10, ProjectileIndex: 2, Count: 3, ShootAngle: 15, FixedAngle: 220, CoolDown: 1600, CoolDownOffset: 0),
New Shoot(10, ProjectileIndex: 2, Count: 3, ShootAngle: 15, FixedAngle: 130, CoolDown: 1600, CoolDownOffset: 800),
New Shoot(10, ProjectileIndex: 2, Count: 3, ShootAngle: 15, FixedAngle: 310, CoolDown: 1600, CoolDownOffset: 800),
New TimedTransition(10000, "Ilde3")
),
New State("Ilde3",
New ConditionalEffect(ConditionEffectIndex.Invulnerable),
New Flash(0xff00ff00, 0.01, 50),
New TimedTransition(2000, "BlindAttack")
)
),
New Threshold(0.05,
New ItemLoot("Potion Of Vitality", 1),
New ItemLoot("Potion Of Wisdom", 1)
),
New Threshold(0.05,
New ItemLoot("Helm Of The Juggernaut", 0.005)
)
)
.Init("Horrid Reaper",
New State(
New Shoot(Radius: 25, ShootAngle: 10 * (Float)Math.PI / 180, Count: 1, ProjectileIndex: 0, CoolDown: 1000),
New State("Idle",
New StayCloseToSpawn(0.5, 15),
New Wander(0.5)
),
New State("Go Away",
New TimedTransition(5000, "I AM OUT"),
New Taunt("OOaoaoAaAoaAAOOAoaaoooaa!!!")
),
New State("I AM OUT",
New Decay(0)
)
)
);
}
}I can't figure out why it won't work plz halp mi.
Devon | Kik: Hurry




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
