Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
46
Scripts/Items/Quest/PrismOfLightKey.cs
Normal file
46
Scripts/Items/Quest/PrismOfLightKey.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class PrismOfLightKey : MasterKey
|
||||
{
|
||||
public PrismOfLightKey()
|
||||
: base(0xE27)
|
||||
{
|
||||
}
|
||||
|
||||
public PrismOfLightKey(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int Lifespan
|
||||
{
|
||||
get
|
||||
{
|
||||
return 480;
|
||||
}
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write((int)0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override bool CanOfferConfirmation(Mobile from)
|
||||
{
|
||||
if (from.Region != null && from.Region.IsPartOf("Prism of Light"))
|
||||
return base.CanOfferConfirmation(from);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user