#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
82
Scripts/Mobiles/Vendors/NPC/HolyMage.cs
Normal file
82
Scripts/Mobiles/Vendors/NPC/HolyMage.cs
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class HolyMage : BaseVendor
|
||||
{
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }
|
||||
|
||||
[Constructable]
|
||||
public HolyMage() : base( "the Holy Mage" )
|
||||
{
|
||||
SetSkill( SkillName.EvalInt, 65.0, 88.0 );
|
||||
SetSkill( SkillName.Inscribe, 60.0, 83.0 );
|
||||
SetSkill( SkillName.Magery, 64.0, 100.0 );
|
||||
SetSkill( SkillName.Meditation, 60.0, 83.0 );
|
||||
SetSkill( SkillName.MagicResist, 65.0, 88.0 );
|
||||
SetSkill( SkillName.Wrestling, 36.0, 68.0 );
|
||||
}
|
||||
|
||||
public override void InitSBInfo()
|
||||
{
|
||||
m_SBInfos.Add( new SBHolyMage() );
|
||||
}
|
||||
|
||||
public Item ApplyHue( Item item, int hue )
|
||||
{
|
||||
item.Hue = hue;
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
AddItem( ApplyHue( new Robe(), 0x47E ) );
|
||||
AddItem( ApplyHue( new ThighBoots(), 0x47E ) );
|
||||
AddItem( ApplyHue( new BlackStaff(), 0x47E ) );
|
||||
|
||||
if ( Female )
|
||||
{
|
||||
AddItem( ApplyHue( new LeatherGloves(), 0x47E ) );
|
||||
AddItem( ApplyHue( new GoldNecklace(), 0x47E ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
AddItem( ApplyHue( new PlateGloves(), 0x47E ) );
|
||||
AddItem( ApplyHue( new PlateGorget(), 0x47E ) );
|
||||
}
|
||||
|
||||
switch ( Utility.Random( Female ? 2 : 1 ) )
|
||||
{
|
||||
case 0: HairItemID = 0x203C; break;
|
||||
case 1: HairItemID = 0x203D; break;
|
||||
}
|
||||
|
||||
HairHue = 0x47E;
|
||||
|
||||
PackGold( 100, 200 );
|
||||
}
|
||||
|
||||
public HolyMage( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue