Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,64 @@
using System;
namespace Server.Items
{
public class ElixirofGoldConversion : Item
{
public override int LabelNumber { get { return 1113007; } } // Elixir of Gold Conversion
[Constructable]
public ElixirofGoldConversion()
: base(0x99B)
{
Hue = 2213;
Movable = true;
}
public ElixirofGoldConversion(Serial serial)
: base(serial)
{
}
public override void OnDoubleClick(Mobile from)
{
Container backpack = from.Backpack;
DullCopperIngot item1 = (DullCopperIngot)backpack.FindItemByType(typeof(DullCopperIngot));
if (item1 != null)
{
BaseIngot m_Ore1 = item1 as BaseIngot;
int toConsume = m_Ore1.Amount;
if ((m_Ore1.Amount > 499) && (m_Ore1.Amount < 501))
{
m_Ore1.Delete();
from.SendLocalizedMessage(1113048); // You've successfully converted the metal.
from.AddToBackpack(new GoldIngot(500));
this.Delete();
}
else if ((m_Ore1.Amount < 500) || (m_Ore1.Amount > 500))
{
from.SendLocalizedMessage(1113046); // You can only convert five hundred ingots at a time.
}
}
else
{
from.SendLocalizedMessage(1078618); // The item must be in your backpack to be exchanged.
}
}
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();
}
}
}