Hell Bosses timing problem !!!need some help

09/02/2010 09:01 dowhatuwant#16
You said this:
Code:
{
if Name == "Satan"
}
never works
dosnt work.
I wonder why? :rolleyes:(""brackets"")
should have been
Code:
if Name == "Satan"
{
//methode here
}
never works
and why you keep use Name.Contains?

use the one i posted.
Here is it:
Code:
                if (Name == "Satan")
                {
                    Char.CPs += 250;
                    Game.World.SendMsgToAll("Server", " Satan is Dead " + Char.Name + "'s Got 250 CPs For Killing Satan " + Char.Name + " is the hero of exampleCO ", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(12000, 14400));
                }
                    if (Name == "BeastSatan")
                {
                    Char.CPs += 250;
                    Game.World.SendMsgToAll("Server", " Satan is Dead " + Char.Name + "'s Got 250 CPs For Killing the Divel and Being A Hero", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(12000, 14400));
                }
                if (Name == "FurySatan")
                {
                    Char.CPs += 250;
                    Game.World.SendMsgToAll("Server", " Satan is Dead " + Char.Name + "'s Got 250 CPs For Killing the Divel and Being A Hero", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(12000, 14400));
                }
                if (Name == "Andrew")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Andrew   ", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                if (Name == "Peter")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Peter", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                if (Name == "Philip")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Philip", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                if (Name == "Timothy")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Timothy", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                if (Name == "Victoria")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Victoria", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                else if (Name == "Victoria")
                {
                    
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                if (Name == "Theodore")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Theodore", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                    
                }
                if (Name == "Daphne")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Daphne", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                if (Name == "Wayne")
                {
                    Char.CPs += 150;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + "  Just Killd Boss Wayne", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(4000, 5400));
                }
                if (Name == "Banshee")
                {
                    Char.CPs += 100;
                    Game.World.SendMsgToAll("Server", "" + Char.Name + " Got the reward is For Killing the Beast", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(3000, 5400));
                }
                if (Name == "FearlessBeast")
                {
                    Char.CPs += 100;
                    Game.World.SendMsgToAll("Server", " " + Char.Name + " Got the reward is For Killing the Beast", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(3000, 5400));
                }
                if (Name == "PurpleDevil")
                {
                    Char.CPs += 500;
                    Game.World.SendMsgToAll("Server", " PurpleDevil Is Dead " + Char.Name + "  is the hero of exampleCO " + Char.Name + " GOT THE 500 CPs For Killing The Beast", 2011, 0);
                    Loc = StartLoc;
                    World.Action(this, Packets.GeneralData(EntityID, 0, 0, 0, 135).Get);
                    Dissappeared = true;
                    RandomTime = (uint)(Rnd.Next(25000, 35000));
                    DI2.Info.ID = 1088000;
                    DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                    DI2.Info.CurDur = DI2.Info.MaxDur;
                }