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,122 @@
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
using Server.Spells;
using System.Collections.Generic;
namespace Server.Mobiles
{
[CorpseName( "AuntieJune corpse" )]
public class AuntieJune : Mobile
{
public virtual bool IsInvulnerable{ get{ return true; } }
[Constructable]
public AuntieJune()
{
Name = "Auntie June";
Title = "the biofarmer";
Body = 0x191;
Hue = Utility.RandomSkinHue();
Robe r = new Robe();
r.Hue = 1156;
AddItem( r );
AddItem( new LongHair(91));
}
public AuntieJune( Serial serial ) : base( serial )
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries( from, list );
list.Add( new AuntieJuneEntry( from, this ) );
}
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();
}
public class AuntieJuneEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public AuntieJuneEntry( 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( AuntieJuneGump ) ) )
{
mobile.SendGump( new AuntieJuneGump( mobile ));
//
}
}
}
}
public override bool OnDragDrop( Mobile from, Item dropped )
{
Mobile m = from;
PlayerMobile mobile = m as PlayerMobile;
if ( mobile != null)
{
if( dropped is blueapple )
{
if(dropped.Amount!=1)
{
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "ahhh my apple!", mobile.NetState );
return false;
}
dropped.Delete();
mobile.AddToBackpack( new ArrianasClips() );
mobile.SendMessage( "The Piece is now yours, now join them and bring it back to arriana!" );
return true;
}
else if ( dropped is blueapple )
{
this.PrivateOverheadMessage( MessageType.Regular, 1153, 1054071, mobile.NetState );
return false;
}
else
{
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Why on earth would I want to have that?", mobile.NetState );
}
}
return false;
}
}
}