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,63 @@
using System;
using Server;
namespace Server.Items
{
public class WorldMap : MapItem
{
[Constructable]
public WorldMap()
{
SetDisplay( 0, 0, 5119, 4095, 400, 400 );
}
public override void CraftInit( Mobile from )
{
// Unlike the others, world map is not based on crafted location
Facet = from.Map;
double skillValue = from.Skills[SkillName.Cartography].Value;
int x20 = (int)(skillValue * 20);
int size = 25 + (int)(skillValue * 6.6);
if ( size < 200 )
size = 200;
else if ( size > 400 )
size = 400;
if (Facet == Map.Trammel || Facet == Map.Felucca)
{
if (Server.Spells.SpellHelper.IsAnyT2A(Facet, from.Location))
{
Bounds = new Rectangle2D(5120, 2304, 1024, 1792);
Width = size;
Height = size;
}
else
SetDisplay(1344 - x20, 1600 - x20, 1472 + x20, 1728 + x20, size, size);
}
else
SetDisplayByFacet();
}
public override int LabelNumber{ get{ return 1015233; } } // world map
public WorldMap( 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();
}
}
}