![]() |
|
[help] Code gives internal error - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: C, C++, & Obj-C (https://sinister.li/Forum-C-C-Obj-C) +--- Thread: [help] Code gives internal error (/Thread-help-Code-gives-internal-error) |
[help] Code gives internal error - Sin_mybb_import13631 - 08-27-2015 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: 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. RE: [help] Code gives internal error - iRemix - 08-28-2015 There are methods like debugging or posting the error. RE: [help] Code gives internal error - Sin_mybb_import13631 - 08-28-2015 (08-28-2015, 03:03 PM)iRemix Wrote: There are methods like debugging or posting the error.When I rebuild the server it doesn't give an error, it gives an internal error in the console, and then the console crashes without giving me time to read the error. RE: [help] Code gives internal error - Versified - 08-30-2015 I have a vague idea why it's crashing. It's probably because of something in the xmls. Just look carefully at the Sphinx's XML. I mean, I don't know exactly but it's what I believe is causing this error. |