Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
57
Scripts/Items/Tools/SeaChart.cs
Normal file
57
Scripts/Items/Tools/SeaChart.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SeaChart : MapItem
|
||||
{
|
||||
[Constructable]
|
||||
public SeaChart()
|
||||
{
|
||||
SetDisplay( 0, 0, 5119, 4095, 400, 400 );
|
||||
}
|
||||
|
||||
public override void CraftInit( Mobile from )
|
||||
{
|
||||
Facet = from.Map;
|
||||
|
||||
double skillValue = from.Skills[SkillName.Cartography].Value;
|
||||
int dist = 64 + (int)(skillValue * 10);
|
||||
|
||||
if ( dist < 200 )
|
||||
dist = 200;
|
||||
|
||||
int size = 24 + (int)(skillValue * 3.3);
|
||||
|
||||
if ( size < 200 )
|
||||
size = 200;
|
||||
else if ( size > 400 )
|
||||
size = 400;
|
||||
|
||||
if (Facet == Map.Trammel || Facet == Map.Felucca)
|
||||
SetDisplay(from.X - dist, from.Y - dist, from.X + dist, from.Y + dist, size, size);
|
||||
else
|
||||
SetDisplayByFacet();
|
||||
}
|
||||
|
||||
public override int LabelNumber{ get{ return 1015232; } } // sea chart
|
||||
|
||||
public SeaChart( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user