We fly. Server time: [time

This commit is contained in:
xavier 2012-11-10 16:31:51 +00:00
parent 754877f880
commit bca9a25c75
28 changed files with 61 additions and 3 deletions

View file

@ -0,0 +1,19 @@
using System;
namespace Server.Commands
{
public class Time
{
public static void Initialize()
{
CommandSystem.Register( "Time", AccessLevel.Player, new CommandEventHandler( Time_OnCommand ) );
}
[Usage( "Time" )]
[Description( "Returns the server's local time." )]
private static void Time_OnCommand( CommandEventArgs e )
{
e.Mobile.SendMessage( DateTime.UtcNow.ToString( "MMM ddd d HH:mm yyyy" ) );
}
}
}

View file

@ -50,7 +50,7 @@ namespace Server.Engines.Events
{ {
m_TotalZombieLimit = 200; m_TotalZombieLimit = 200;
m_DeathQueueLimit = 200; m_DeathQueueLimit = 200;
m_QueueDelaySeconds = 2; m_QueueDelaySeconds = 120;
m_QueueClearIntervalSeconds = 1800; m_QueueClearIntervalSeconds = 1800;
DateTime today = DateTime.Now; DateTime today = DateTime.Now;
@ -91,13 +91,18 @@ namespace Server.Engines.Events
m_ReAnimated.Clear(); m_ReAnimated.Clear();
m_DeathQueue.Clear(); m_DeathQueue.Clear();
if( DateTime.Now <= HolidaySettings.FinishHalloween )
{
m_ClearTimer.Stop();
}
} }
private static void Timer_Callback() private static void Timer_Callback()
{ {
PlayerMobile player = null; PlayerMobile player = null;
if( DateTime.Now < HolidaySettings.FinishHalloween ) if( DateTime.Now <= HolidaySettings.FinishHalloween )
{ {
for( int index = 0; m_DeathQueue.Count > 0 && index < m_DeathQueue.Count; index++ ) for( int index = 0; m_DeathQueue.Count > 0 && index < m_DeathQueue.Count; index++ )
{ {
@ -132,6 +137,9 @@ namespace Server.Engines.Events
else else
{ {
m_Timer.Stop(); m_Timer.Stop();
} }
} }

View file

@ -197,6 +197,8 @@ namespace Server.Items
Hue = Utility.RandomSlimeHue(); Hue = Utility.RandomSlimeHue();
else if( m_Type == MonsterStatuetteType.RedDeath ) else if( m_Type == MonsterStatuetteType.RedDeath )
Hue = 0x21; Hue = 0x21;
else if( m_Type == MonsterStatuetteType.HalloweenGhoul )
Hue = 0xF4;
} }
public override bool HandlesOnMovement{ get{ return m_TurnedOn && IsLockedDown; } } public override bool HandlesOnMovement{ get{ return m_TurnedOn && IsLockedDown; } }

View file

@ -43,6 +43,7 @@ namespace Server.Mobiles
public override int Meat{ get{ return 1; } } public override int Meat{ get{ return 1; } }
public override MeatType MeatType{ get{ return MeatType.Bird; } } public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override FoodType FavoriteFood{ get{ return FoodType.GrainsAndHay; } } public override FoodType FavoriteFood{ get{ return FoodType.GrainsAndHay; } }
public override bool CanFly { get { return true; } }
public override int Feathers{ get{ return 25; } } public override int Feathers{ get{ return 25; } }

View file

@ -49,6 +49,7 @@ namespace Server.Mobiles
public override MeatType MeatType{ get{ return MeatType.Bird; } } public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override int Feathers{ get{ return 36; } } public override int Feathers{ get{ return 36; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Fish; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Fish; } }
public override bool CanFly { get { return true; } }
public Eagle(Serial serial) : base(serial) public Eagle(Serial serial) : base(serial)
{ {

View file

@ -53,6 +53,7 @@ namespace Server.Mobiles
public override int Meat{ get{ return 1; } } public override int Meat{ get{ return 1; } }
public override MeatType MeatType{ get{ return MeatType.Bird; } } public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override int Feathers{ get{ return 36; } } public override int Feathers{ get{ return 36; } }
public override bool CanFly { get { return true; } }
public Phoenix( Serial serial ) : base( serial ) public Phoenix( Serial serial ) : base( serial )
{ {

View file

@ -61,6 +61,7 @@ namespace Server.Mobiles
public override Poison PoisonImmune{ get{ return Poison.Regular; } } public override Poison PoisonImmune{ get{ return Poison.Regular; } }
public override int TreasureMapLevel{ get{ return 4; } } public override int TreasureMapLevel{ get{ return 4; } }
public override int Meat{ get{ return 1; } } public override int Meat{ get{ return 1; } }
public override bool CanFly { get { return true; } }
public Daemon( Serial serial ) : base( serial ) public Daemon( Serial serial ) : base( serial )
{ {

View file

@ -53,6 +53,7 @@ namespace Server.Mobiles
public override bool HasBreath{ get{ return true; } } // fire breath enabled public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override int TreasureMapLevel{ get{ return 1; } } public override int TreasureMapLevel{ get{ return 1; } }
public override int Meat{ get{ return 1; } } public override int Meat{ get{ return 1; } }
public override bool CanFly { get { return true; } }
public FireGargoyle( Serial serial ) : base( serial ) public FireGargoyle( Serial serial ) : base( serial )
{ {

View file

@ -44,6 +44,8 @@ namespace Server.Mobiles
PackItem( new GargoylesPickaxe() ); PackItem( new GargoylesPickaxe() );
} }
public override bool CanFly { get { return true; } }
public override void GenerateLoot() public override void GenerateLoot()
{ {
AddLoot( LootPack.Average ); AddLoot( LootPack.Average );

View file

@ -57,6 +57,7 @@ namespace Server.Mobiles
public override bool BardImmune{ get{ return !Core.AOS; } } public override bool BardImmune{ get{ return !Core.AOS; } }
public override int Meat{ get{ return 1; } } public override int Meat{ get{ return 1; } }
public override bool CanFly { get { return true; } }
public override void OnDamagedBySpell( Mobile from ) public override void OnDamagedBySpell( Mobile from )
{ {

View file

@ -50,6 +50,8 @@ namespace Server.Mobiles
PackItem( new GargoylesPickaxe() ); PackItem( new GargoylesPickaxe() );
} }
public override bool CanFly { get { return true; } }
public override void GenerateLoot() public override void GenerateLoot()
{ {
AddLoot( LootPack.Rich ); AddLoot( LootPack.Rich );

View file

@ -49,6 +49,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel{ get{ return 4; } } public override int TreasureMapLevel{ get{ return 4; } }
public override int Meat{ get{ return 1; } } public override int Meat{ get{ return 1; } }
public override bool CanFly { get { return true; } }
public IceFiend( Serial serial ) : base( serial ) public IceFiend( Serial serial ) : base( serial )
{ {

View file

@ -59,6 +59,7 @@ namespace Server.Mobiles
public override HideType HideType{ get{ return HideType.Spined; } } public override HideType HideType{ get{ return HideType.Spined; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Daemon; } } public override PackInstinct PackInstinct{ get{ return PackInstinct.Daemon; } }
public override bool CanFly { get { return true; } }
public Imp( Serial serial ) : base( serial ) public Imp( Serial serial ) : base( serial )
{ {

View file

@ -41,6 +41,7 @@ namespace Server.Mobiles
ControlSlots = 1; ControlSlots = 1;
MinTameSkill = -18.9; MinTameSkill = -18.9;
} }
public override bool CanFly { get { return true; } }
public override void GenerateLoot() public override void GenerateLoot()
{ {

View file

@ -69,6 +69,7 @@ namespace Server.Mobiles
public override ScaleType ScaleType{ get{ return ( Body == 12 ? ScaleType.Yellow : ScaleType.Red ); } } public override ScaleType ScaleType{ get{ return ( Body == 12 ? ScaleType.Yellow : ScaleType.Red ); } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override bool CanAngerOnTame { get { return true; } } public override bool CanAngerOnTame { get { return true; } }
public override bool CanFly { get { return true; } }
public override WeaponAbility GetWeaponAbility() public override WeaponAbility GetWeaponAbility()
{ {

View file

@ -57,6 +57,7 @@ namespace Server.Mobiles
public override bool CanAngerOnTame{ get { return true; } } public override bool CanAngerOnTame{ get { return true; } }
public override bool StatLossAfterTame{ get{ return true; } } public override bool StatLossAfterTame{ get{ return true; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override bool CanFly { get { return true; } }
public Reptalon( Serial serial ) : base( serial ) public Reptalon( Serial serial ) : base( serial )
{ {

View file

@ -109,6 +109,7 @@ namespace Server.Mobiles
} }
} }
public override bool CanFly { get { return true; } }
public override bool GivesMLMinorArtifact{ get{ return true; } } public override bool GivesMLMinorArtifact{ get{ return true; } }
public override int Feathers{ get{ return 72; } } public override int Feathers{ get{ return 72; } }

View file

@ -71,6 +71,7 @@ namespace Server.Mobiles
public override Poison PoisonImmune{ get{ return Poison.Regular; } } public override Poison PoisonImmune{ get{ return Poison.Regular; } }
public override Poison HitPoison{ get{ return Utility.RandomBool() ? Poison.Lesser : Poison.Regular; } } public override Poison HitPoison{ get{ return Utility.RandomBool() ? Poison.Lesser : Poison.Regular; } }
public override int TreasureMapLevel{ get{ return 5; } } public override int TreasureMapLevel{ get{ return 5; } }
public override bool CanFly { get { return true; } }
public AncientWyrm( Serial serial ) : base( serial ) public AncientWyrm( Serial serial ) : base( serial )
{ {

View file

@ -63,6 +63,7 @@ namespace Server.Mobiles
public override ScaleType ScaleType{ get{ return ( Body == 12 ? ScaleType.Yellow : ScaleType.Red ); } } public override ScaleType ScaleType{ get{ return ( Body == 12 ? ScaleType.Yellow : ScaleType.Red ); } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override bool CanAngerOnTame { get { return true; } } public override bool CanAngerOnTame { get { return true; } }
public override bool CanFly { get { return true; } }
public Dragon( Serial serial ) : base( serial ) public Dragon( Serial serial ) : base( serial )
{ {

View file

@ -72,6 +72,8 @@ namespace Server.Mobiles
public override int Scales{ get{ return 10; } } public override int Scales{ get{ return 10; } }
public override ScaleType ScaleType{ get{ return ScaleType.Black; } } public override ScaleType ScaleType{ get{ return ScaleType.Black; } }
public override HideType HideType{ get{ return HideType.Barbed; } } public override HideType HideType{ get{ return HideType.Barbed; } }
public override bool CanFly { get { return true; } }
public ShadowWyrm( Serial serial ) : base( serial ) public ShadowWyrm( Serial serial ) : base( serial )
{ {

View file

@ -63,6 +63,8 @@ namespace Server.Mobiles
public override ScaleType ScaleType{ get{ return ScaleType.White; } } public override ScaleType ScaleType{ get{ return ScaleType.White; } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Gold; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Gold; } }
public override bool CanAngerOnTame { get { return true; } } public override bool CanAngerOnTame { get { return true; } }
public override bool CanFly { get { return true; } }
public WhiteWyrm( Serial serial ) : base( serial ) public WhiteWyrm( Serial serial ) : base( serial )
{ {

View file

@ -62,6 +62,7 @@ namespace Server.Mobiles
public override int Scales{ get{ return 2; } } public override int Scales{ get{ return 2; } }
public override ScaleType ScaleType{ get{ return ( Body == 60 ? ScaleType.Yellow : ScaleType.Red ); } } public override ScaleType ScaleType{ get{ return ( Body == 60 ? ScaleType.Yellow : ScaleType.Red ); } }
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Fish; } } public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Fish; } }
public override bool CanFly { get { return true; } }
public Drake( Serial serial ) : base( serial ) public Drake( Serial serial ) : base( serial )
{ {

View file

@ -75,6 +75,7 @@ namespace Server.Mobiles
public override int Meat{ get{ return 4; } } public override int Meat{ get{ return 4; } }
public override MeatType MeatType{ get{ return MeatType.Bird; } } public override MeatType MeatType{ get{ return MeatType.Bird; } }
public override int Feathers{ get{ return 50; } } public override int Feathers{ get{ return 50; } }
public override bool CanFly { get { return true; } }
public Harpy( Serial serial ) : base( serial ) public Harpy( Serial serial ) : base( serial )
{ {

View file

@ -76,6 +76,7 @@ namespace Server.Mobiles
public override int Meat{ get{ return 1; } } public override int Meat{ get{ return 1; } }
public override int Feathers{ get{ return 50; } } public override int Feathers{ get{ return 50; } }
public override bool CanFly { get { return true; } }
public StoneHarpy( Serial serial ) : base( serial ) public StoneHarpy( Serial serial ) : base( serial )
{ {

View file

@ -59,6 +59,8 @@ namespace Server.Mobiles
public override int Meat{ get{ return 10; } } public override int Meat{ get{ return 10; } }
public override int Hides{ get{ return 20; } } public override int Hides{ get{ return 20; } }
public override HideType HideType{ get{ return HideType.Horned; } } public override HideType HideType{ get{ return HideType.Horned; } }
public override bool CanFly { get { return true; } }
public override int GetAttackSound() public override int GetAttackSound()
{ {

View file

@ -44,6 +44,7 @@ namespace Server.Mobiles
} }
public override Poison PoisonImmune{ get{ return Poison.Regular; } } // TODO: Immune to poison? public override Poison PoisonImmune{ get{ return Poison.Regular; } } // TODO: Immune to poison?
public override bool CanFly { get { return true; } }
public SummonedDaemon( Serial serial ) : base( serial ) public SummonedDaemon( Serial serial ) : base( serial )
{ {

View file

@ -70,7 +70,7 @@ namespace Server.Mobiles
} }
public override bool AutoDispel{ get{ return true; } } public override bool AutoDispel{ get{ return true; } }
public override bool CanFly { get { return true; } }
public override bool BardImmune{ get{ return !Core.SE; } } public override bool BardImmune{ get{ return !Core.SE; } }
public override bool Unprovokable{ get{ return Core.SE; } } public override bool Unprovokable{ get{ return Core.SE; } }
public override bool Uncalmable{ get{ return Core.SE; } } public override bool Uncalmable{ get{ return Core.SE; } }

View file

@ -53,6 +53,7 @@ namespace Server.Mobiles
get{ return OppositionGroup.FeyAndUndead; } get{ return OppositionGroup.FeyAndUndead; }
} }
public override bool CanFly { get { return true; } }
public override bool Unprovokable{ get{ return true; } } public override bool Unprovokable{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Regular; } } public override Poison PoisonImmune{ get{ return Poison.Regular; } }
public override int TreasureMapLevel{ get{ return 5; } } public override int TreasureMapLevel{ get{ return 5; } }