Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
146
Scripts/Scripts-master/Quests/Naruto Quest/HokageTsunade.cs
Normal file
146
Scripts/Scripts-master/Quests/Naruto Quest/HokageTsunade.cs
Normal file
@@ -0,0 +1,146 @@
|
||||
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( "Hokage Tsunade's Corpse" )]
|
||||
public class Tsunade : Mobile
|
||||
{
|
||||
public virtual bool IsInvulnerable{ get{ return true; } }
|
||||
[Constructable]
|
||||
public Tsunade()
|
||||
{
|
||||
Name = "Hokage Tsunade";
|
||||
Body = 401;
|
||||
CantWalk = true;
|
||||
Hue = 1751;
|
||||
|
||||
Item Boots = new Boots();
|
||||
Boots.Hue = 1000;
|
||||
Boots.Name = "Non-Leather Boots";
|
||||
Boots.Movable = false;
|
||||
AddItem( Boots );
|
||||
|
||||
Item FancyShirt = new FancyShirt();
|
||||
FancyShirt.Hue = 1000;
|
||||
FancyShirt.Name = "Shirt";
|
||||
FancyShirt.Movable = false;
|
||||
AddItem( FancyShirt );
|
||||
|
||||
Item LongPants = new LongPants();
|
||||
LongPants.Hue = 1000;
|
||||
LongPants.Name = "Pants";
|
||||
LongPants.Movable = false;
|
||||
AddItem( LongPants );
|
||||
|
||||
Item Cloak = new Cloak();
|
||||
Cloak.Hue = 1000;
|
||||
Cloak.Name = "Cloak";
|
||||
Cloak.Movable = false;
|
||||
AddItem( Cloak );
|
||||
|
||||
AddItem( new LongHair( 254 ) );
|
||||
|
||||
|
||||
Blessed = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Tsunade( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
|
||||
{
|
||||
base.GetContextMenuEntries( from, list );
|
||||
list.Add( new TsunadeEntry( 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 TsunadeEntry : ContextMenuEntry
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private Mobile m_Giver;
|
||||
|
||||
public TsunadeEntry( 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( TsunadequestGump ) ) )
|
||||
{
|
||||
mobile.SendGump( new TsunadequestGump( mobile ));
|
||||
mobile.AddToBackpack( new TsunadeBook() );
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
{
|
||||
Mobile m = from;
|
||||
PlayerMobile mobile = m as PlayerMobile;
|
||||
|
||||
if ( mobile != null)
|
||||
{
|
||||
if( dropped is OrochimarusHeart)
|
||||
{
|
||||
if(dropped.Amount!=1)
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "That is not the amount I asked for.", mobile.NetState );
|
||||
return false;
|
||||
}
|
||||
|
||||
dropped.Delete();
|
||||
mobile.AddToBackpack( new NecklaceOfGenesis() );
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
else if ( dropped is OrochimarusHeart)
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, 1054071, mobile.NetState );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "I did not ask for this item.", mobile.NetState );
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user