Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
138
Scripts/Scripts-master/Quests/ArrianasQuest/mobiles/UncleJohn.cs
Normal file
138
Scripts/Scripts-master/Quests/ArrianasQuest/mobiles/UncleJohn.cs
Normal file
@@ -0,0 +1,138 @@
|
||||
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( "UncleJohn corpse" )]
|
||||
public class UncleJohn : Mobile
|
||||
{
|
||||
public virtual bool IsInvulnerable{ get{ return true; } }
|
||||
[Constructable]
|
||||
public UncleJohn()
|
||||
{
|
||||
Name = "Uncle John";
|
||||
Title = "the farming fool";
|
||||
Body = 0x190;
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
Boots b = new Boots();
|
||||
b.Hue = 1;
|
||||
AddItem( b );
|
||||
|
||||
LongPants lp = new LongPants();
|
||||
lp.Hue = 292;
|
||||
AddItem( lp );
|
||||
|
||||
FancyShirt fs = new FancyShirt();
|
||||
fs.Hue = 1153;
|
||||
AddItem( fs );
|
||||
|
||||
Pitchfork pf = new Pitchfork();
|
||||
AddItem( pf );
|
||||
|
||||
AddItem( new LongHair(1337));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public UncleJohn( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
|
||||
{
|
||||
base.GetContextMenuEntries( from, list );
|
||||
list.Add( new UncleJohnEntry( 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 UncleJohnEntry : ContextMenuEntry
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private Mobile m_Giver;
|
||||
|
||||
public UncleJohnEntry( 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( UncleJohnGump ) ) )
|
||||
{
|
||||
mobile.SendGump( new UncleJohnGump( mobile ));
|
||||
//
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
{
|
||||
Mobile m = from;
|
||||
PlayerMobile mobile = m as PlayerMobile;
|
||||
|
||||
if ( mobile != null)
|
||||
{
|
||||
if( dropped is greencarrot )
|
||||
{
|
||||
if(dropped.Amount!=1)
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "thanks for helping with that pesky rabbit!", mobile.NetState );
|
||||
return false;
|
||||
}
|
||||
|
||||
dropped.Delete();
|
||||
|
||||
mobile.AddToBackpack( new ArrianasDiamond() );
|
||||
mobile.AddToBackpack( new UncleJohnsBook() );
|
||||
mobile.SendMessage( "Thanks for getting my carrot!" );
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
else if ( dropped is greencarrot )
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user