Files
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

138 lines
3.9 KiB
C#

using System;
using Server;
namespace Server.Items
{
public class ArcticBeacon : MetalShield
{
public override int BaseColdResistance{ get{ return 15; } }
public override int BaseFireResistance{ get{ return 0; } }
public override int ArtifactRarity{ get{ return 15; } }
public override int InitMinHits{ get{ return 255; } }
public override int InitMaxHits{ get{ return 255; } }
[Constructable]
public ArcticBeacon()
{
Name = "Arctic Beacon";
ItemID = 2597;
Hue = Utility.RandomList( 1150, 1151, 1152, 1153, 1154, 2066 );
StrRequirement = 45;
Attributes.SpellChanneling = 1;
Attributes.NightSight = 1;
Attributes.AttackChance = 5;
Attributes.DefendChance = 10;
Attributes.ReflectPhysical = 15;
Attributes.Luck = 150;
ArmorAttributes.SelfRepair = 3;
Attributes.NightSight = 1;
}
public ArcticBeacon(Serial serial) : base( serial )
{
}
public override void OnDoubleClick( Mobile from )
{
if ( !IsChildOf( from.Backpack ) )
{
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
}
else
{
if ( this.ItemID == 2597 )
{
this.ItemID = 2594;
}
else if ( this.ItemID == 2594 )
{
this.ItemID = 2597;
}
else if (this.ItemID != 2597 || this.ItemID != 2594 )
{
from.SendMessage("There was a problem lighting your lantern. Please contact a staff member");
}
else
{
from.SendMessage( "Your lantern is broken. Please contact a staff member to repair it!" );
}
}
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
//public override void OnDoubleClick(Mobile from)
//{
// Item y = from.Backpack.FindItemByType(typeof(AuraOfShadows));
// if (y != null)
// {
// if (this.ItemID == 2597) this.ItemID = 2597;
// else if (this.ItemID == 2597) this.ItemID = 2597;
// }
// else
// {
// from.SendMessage("Hmm didnt seem to work.:/");
// }
//}
//public override void OnDoubleClick(Mobile from)
//{
// Item y = from.Backpack.FindItemByType(typeof(EternalFlame));
// if (y != null)
// {
// if (this.ItemID == 2597) this.ItemID = 2597;
// else if (this.ItemID == 2597) this.ItemID = 2597;
// }
// else
// {
// from.SendMessage("Somehow this thing seems broken.");
// }
//}
//public override void OnDoubleClick(Mobile from)
//{
// Item y = from.Backpack.FindItemByType(typeof(NoxNightlight));
// if (y != null)
// {
// if (this.ItemID == 2597) this.ItemID = 2597;
// else if (this.ItemID == 2597) this.ItemID = 2597;
// }
// else
// {
// from.SendMessage("Well thats just great.");
// }
//}
//public override void OnDoubleClick(Mobile from)
//{
// Item y = from.Backpack.FindItemByType(typeof(PowerSurge));
// if (y != null)
// {
// if (this.ItemID == 2597) this.ItemID = 2597;
// else if (this.ItemID == 2597) this.ItemID = 2597;
// }
// else
// {
// from.SendMessage("It Didnt Work?!.");
// }
//}
} // End Class
} // End Namespace