Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
using Server;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class CorrosiveAsh : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151809; } } // Corrosive Ash
|
||||
|
||||
[Constructable]
|
||||
public CorrosiveAsh()
|
||||
: this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public CorrosiveAsh(int amount) : base(0x423A)
|
||||
{
|
||||
this.Hue = 1360;
|
||||
this.Weight = 1;
|
||||
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
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 (from.Backpack.GetAmount(typeof(QuartzGrit)) == 0)
|
||||
from.SendLocalizedMessage(1151813, "#1151808"); // You do not have a required component: ~1_val~
|
||||
else if (from.Backpack.GetAmount(typeof(CursedOilstone)) == 0)
|
||||
from.SendLocalizedMessage(1151813, "#1151810"); // You do not have a required component: ~1_val~
|
||||
else
|
||||
{
|
||||
from.Backpack.ConsumeTotal(new Type[] { typeof(CursedOilstone), typeof(QuartzGrit) },
|
||||
new int[] { 1, 1 });
|
||||
|
||||
this.Consume();
|
||||
|
||||
from.AddToBackpack(new WhetstoneOfEnervation());
|
||||
from.SendLocalizedMessage(1151812); // You have managed to form the items into a rancid smelling, crag covered, hardened lump. In a moment of prescience, you realize what it must be named. The Whetstone of Enervation!
|
||||
}
|
||||
}
|
||||
|
||||
public CorrosiveAsh(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
using Server;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class CursedOilstone : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151810; } } // Cursed Oilstone
|
||||
|
||||
[Constructable]
|
||||
public CursedOilstone()
|
||||
: this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public CursedOilstone(int amount) : base(0x0F8B)
|
||||
{
|
||||
this.Weight = 1;
|
||||
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
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 (from.Backpack.GetAmount(typeof(QuartzGrit)) == 0)
|
||||
from.SendLocalizedMessage(1151813, "#1151808"); // You do not have a required component: ~1_val~
|
||||
else if (from.Backpack.GetAmount(typeof(CorrosiveAsh)) == 0)
|
||||
from.SendLocalizedMessage(1151813, "#1151809"); // You do not have a required component: ~1_val~
|
||||
else
|
||||
{
|
||||
from.Backpack.ConsumeTotal(new Type[] { typeof(QuartzGrit), typeof(CorrosiveAsh) },
|
||||
new int[] { 1, 1 });
|
||||
|
||||
this.Consume();
|
||||
|
||||
from.AddToBackpack(new WhetstoneOfEnervation());
|
||||
from.SendLocalizedMessage(1151812); // You have managed to form the items into a rancid smelling, crag covered, hardened lump. In a moment of prescience, you realize what it must be named. The Whetstone of Enervation!
|
||||
}
|
||||
}
|
||||
|
||||
public CursedOilstone(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using Server;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class QuartzGrit : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151808; } } // Quartz Grit
|
||||
|
||||
[Constructable]
|
||||
public QuartzGrit()
|
||||
: this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public QuartzGrit(int amount) : base(0x423A)
|
||||
{
|
||||
this.Hue = 1151;
|
||||
this.Weight = 1;
|
||||
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
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 (from.Backpack.GetAmount(typeof(CursedOilstone)) == 0)
|
||||
from.SendLocalizedMessage(1151813, "#1151810"); // You do not have a required component: ~1_val~
|
||||
else if (from.Backpack.GetAmount(typeof(CorrosiveAsh)) == 0)
|
||||
from.SendLocalizedMessage(1151813, "#1151809"); // You do not have a required component: ~1_val~
|
||||
else
|
||||
{
|
||||
from.Backpack.ConsumeTotal(new Type[] { typeof(CursedOilstone), typeof(CorrosiveAsh) },
|
||||
new int[] { 1, 1 });
|
||||
|
||||
this.Consume();
|
||||
|
||||
from.AddToBackpack(new WhetstoneOfEnervation());
|
||||
from.SendLocalizedMessage(1151812); // You have managed to form the items into a rancid smelling, crag covered, hardened lump. In a moment of prescience, you realize what it must be named. The Whetstone of Enervation!
|
||||
}
|
||||
}
|
||||
|
||||
public QuartzGrit(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
using Server;
|
||||
using System;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class WhetstoneOfEnervation : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151811; } } // Whetstone of Enervation
|
||||
|
||||
[Constructable]
|
||||
public WhetstoneOfEnervation()
|
||||
: this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public WhetstoneOfEnervation(int amount) : base(0x1368)
|
||||
{
|
||||
this.Hue = 1458;
|
||||
this.Weight = 1;
|
||||
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
Stackable = false;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (IsChildOf(from.Backpack))
|
||||
{
|
||||
from.BeginTarget(-1, false, TargetFlags.None, (m, targeted) =>
|
||||
{
|
||||
if (!IsChildOf(m.Backpack))
|
||||
m.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
|
||||
else if (targeted is BaseWeapon)
|
||||
{
|
||||
BaseWeapon wep = targeted as BaseWeapon;
|
||||
|
||||
if(!wep.IsChildOf(m.Backpack))
|
||||
m.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
|
||||
else if (wep.TimesImbued > 0 || wep.Quality != ItemQuality.Exceptional)
|
||||
m.SendLocalizedMessage(1046439); // Invalid target.
|
||||
else if (wep.Attributes.WeaponDamage > 0)
|
||||
{
|
||||
wep.Attributes.WeaponDamage = 0;
|
||||
m.SendLocalizedMessage(1151814); // You have removed the damage increase from this weapon.
|
||||
|
||||
this.Consume();
|
||||
}
|
||||
else
|
||||
m.SendLocalizedMessage(1046439); // Invalid target.
|
||||
}
|
||||
else
|
||||
m.SendLocalizedMessage(1046439); // Invalid target.
|
||||
});
|
||||
}
|
||||
else
|
||||
from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
|
||||
}
|
||||
|
||||
public WhetstoneOfEnervation(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (ItemID != 0x1368)
|
||||
ItemID = 0x1368;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user