#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
85
Scripts/Mobiles/Healers/PricedHealer.cs
Normal file
85
Scripts/Mobiles/Healers/PricedHealer.cs
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class PricedHealer : BaseHealer
|
||||
{
|
||||
private int m_Price;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Price
|
||||
{
|
||||
get{ return m_Price; }
|
||||
set{ m_Price = value; }
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public PricedHealer() : this( 5000 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public PricedHealer( int price )
|
||||
{
|
||||
m_Price = price;
|
||||
|
||||
if ( !Core.AOS )
|
||||
NameHue = 0x35;
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable{ get{ return true; } }
|
||||
|
||||
public override void InitSBInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public override bool HealsYoungPlayers{ get{ return false; } }
|
||||
|
||||
public override void OfferResurrection( Mobile m )
|
||||
{
|
||||
Direction = GetDirectionTo( m );
|
||||
|
||||
m.PlaySound( 0x214 );
|
||||
m.FixedEffect( 0x376A, 10, 16 );
|
||||
|
||||
m.CloseGump( typeof( ResurrectGump ) );
|
||||
m.SendGump( new ResurrectGump( m, this, m_Price ) );
|
||||
}
|
||||
|
||||
public override bool CheckResurrect( Mobile m )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public PricedHealer( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
|
||||
writer.Write( (int) m_Price );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
switch ( version )
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
m_Price = reader.ReadInt();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue