Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
63
Scripts/Items/Tools/WorldMap.cs
Normal file
63
Scripts/Items/Tools/WorldMap.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user