2013-10-28 07:09:42 +00:00
|
|
|
namespace Server.Items
|
|
|
|
|
{
|
|
|
|
|
public class LocalMap : MapItem
|
|
|
|
|
{
|
|
|
|
|
[Constructable]
|
|
|
|
|
public LocalMap()
|
|
|
|
|
{
|
2020-04-16 21:29:55 -04:00
|
|
|
SetDisplay(0, 0, 5119, 4095, 400, 400);
|
2013-10-28 07:09:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LocalMap(Serial serial)
|
|
|
|
|
: base(serial)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-16 20:21:33 -04:00
|
|
|
public override int LabelNumber => 1015230;// local map
|
2013-10-28 07:09:42 +00:00
|
|
|
public override void CraftInit(Mobile from)
|
|
|
|
|
{
|
|
|
|
|
double skillValue = from.Skills[SkillName.Cartography].Value;
|
|
|
|
|
int dist = 64 + (int)(skillValue * 2);
|
|
|
|
|
|
2020-04-16 21:29:55 -04:00
|
|
|
SetDisplay(from.X - dist, from.Y - dist, from.X + dist, from.Y + dist, 200, 200);
|
2013-10-28 07:09:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
|
|
|
{
|
|
|
|
|
base.Serialize(writer);
|
|
|
|
|
|
2020-04-16 05:04:29 -04:00
|
|
|
writer.Write(0);
|
2013-10-28 07:09:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
|
|
|
{
|
|
|
|
|
base.Deserialize(reader);
|
|
|
|
|
|
|
|
|
|
int version = reader.ReadInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|