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,34 @@
using System;
using Server;
namespace Server.Items
{
public class CaptainsCutlass : Cutlass
{
[Constructable]
public CaptainsCutlass()
{
Hue = 37;
Name = "The Captains Cutlass";
}
public CaptainsCutlass( 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();
}
}
}

View File

@@ -0,0 +1,45 @@
using System;
using Server;
namespace Server.Items
{
public class PirateCutlass : Cutlass
{
public override int InitMinHits{ get{ return 200; } }
public override int InitMaxHits{ get{ return 300; } }
[Constructable]
public PirateCutlass()
{
Name = "Pirate Cutlass";
Hue = 1158;
Attributes.WeaponSpeed = 40;
Attributes.WeaponDamage = 60;
Attributes.SpellDamage = 10;
Attributes.BonusStam = 20;
Attributes.Luck = 200;
}
public PirateCutlass( 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();
}
}
}

View File

@@ -0,0 +1,85 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
using Server.ContextMenus;
using System.Collections.Generic;
namespace Server.Gumps
{
public class PirateGump : Gump
{
public static void Initialize()
{
CommandSystem.Register("PirateGump", AccessLevel.GameMaster, new CommandEventHandler(PirateGump_OnCommand));
}
private static void PirateGump_OnCommand( CommandEventArgs e )
{
e.Mobile.SendGump( new PirateGump( e.Mobile ) );
}
public PirateGump( Mobile owner ) : base( 50,50 )
{
//----------------------------------------------------------------------------------------------------
AddPage( 0 );
AddImageTiled( 54, 33, 369, 400, 2624 );
AddAlphaRegion( 54, 33, 369, 400 );
AddImageTiled( 416, 39, 44, 389, 203 );
//--------------------------------------Window size bar--------------------------------------------
AddImage( 97, 49, 9005 );
AddImageTiled( 58, 39, 29, 390, 10460 );
AddImageTiled( 412, 37, 31, 389, 10460 );
AddLabel( 140, 60, 0x34, "Name: Pirate Quest Maker: Kaza" );
AddHtml( 107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=White><I>*The Captain looks at you.*</I><br><br>" +
"<BASEFONT Color=Yellow> Arr, what be you lookin at?<br><br>" +
"<BASEFONT COLOR=White><I>*He seems somewhat distressed*</I><br><br>" +
"<BASEFONT COLOR=Blue>Is anything wrong?<br><br>" +
"<BASEFONT COLOR=Yellow>The Mighty Kraken has destroyed my ship and stole me cutlass!<br><br>" +
"<BASEFONT COLOR=Blue>I can get it back for you! Look in water north east of Papua Trammel.<br><br>" +
"<BASEFONT COLOR=Yellow>Yarr! If ye can do this, I will give you one of my weaker cutlass's!<I></I><br>" +
"</BODY>", false, true);
AddImage( 430, 9, 10441);
AddImageTiled( 40, 38, 17, 391, 9263 );
AddImage( 6, 25, 10421 );
AddImage( 34, 12, 10420 );
AddImageTiled( 94, 25, 342, 15, 10304 );
AddImageTiled( 40, 427, 415, 16, 10304 );
AddImage( -10, 314, 10402 );
AddImage( 56, 150, 10411 );
AddImage( 155, 120, 2103 );
AddImage( 136, 84, 96 );
AddButton( 225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0 );
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse( NetState state, RelayInfo info ) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch ( info.ButtonID )
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
//Cancel
from.SendMessage( "I hear The Kraken be hiding in the Oceans of Felucca somewhere." );
break;
}
}
}
}
}

View File

@@ -0,0 +1,117 @@
using System;
using System.Collections;
using Server.ContextMenus;
using Server.Misc;
using Server.Network;
using Server;
using Server.Items;
using Server.Gumps;
using System.Collections.Generic;
namespace Server.Mobiles
{
public class TheCaptain : Mobile
{
[Constructable]
public TheCaptain()
{
Name = "The Captain";
Body = 400;
BaseSoundID = 0;
Hue = 33785;
CantWalk = true;
Blessed = true;
AddItem(new Server.Items.Boots(1108));
AddItem(new Server.Items.Shirt(939));
AddItem(new Server.Items.ShortPants(1018));
AddItem(new Server.Items.TricorneHat(1108));
}
public TheCaptain(Serial serial) : base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new PirateEntry(from, this));
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
public class PirateEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public PirateEntry(Mobile from, Mobile giver) : base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
public override void OnClick()
{
if (!(m_Mobile is PlayerMobile))
return;
PlayerMobile mobile = (PlayerMobile)m_Mobile;
{
if (!mobile.HasGump(typeof(PirateGump)))
{
mobile.SendGump(new PirateGump(mobile));
}
}
}
}
public override bool OnDragDrop(Mobile from, Item dropped)
{
Mobile m = from;
PlayerMobile mobile = m as PlayerMobile;
if (mobile != null)
{
if (dropped is CaptainsCutlass)
{
dropped.Delete();
mobile.SendMessage("Many thanks to ye for returning my cutlass!.");
mobile.AddToBackpack(new PirateCutlass());
return true;
}
else
{
SayTo(from, "That be not my cutlass.");
}
}
return false;
}
}
}

View File

@@ -0,0 +1,55 @@
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
namespace Server.Mobiles
{
[CorpseName( "The Kraken's Corpse" )]
public class TheKraken : Kraken
{
[Constructable]
public TheKraken()
{
Name = "The Kraken";
Hue = 1155;
BaseSoundID = 1149;
SetHits( 1000 );
SetDamage( 16, 25 );
SetSkill( SkillName.MagicResist, 120.0 );
SetSkill( SkillName.Tactics, 100.0 );
SetSkill( SkillName.Wrestling, 120.0 );
Fame = 9000;
Karma = -9000;
VirtualArmor = 60;
PackItem( new CaptainsCutlass() );
}
public override void GenerateLoot()
{
AddLoot( LootPack.Rich, 2 );
}
public TheKraken( 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();
}
}
}