Advertisement
TheNewGreatChocobo

Joline

Nov 21st, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using Server.Engines.Races;
  2. using Server.Items;
  3. using System.Collections.Generic;
  4.  
  5. namespace Server.Mobiles.Vendeurs
  6. {
  7.     public class Soigneur : BaseVendor
  8.     {
  9.         [Constructable]
  10.         public Soigneur()
  11.             : base("Soigneur")
  12.         {
  13.             Name = "Joline";
  14.         }
  15.  
  16.  
  17.         public Soigneur(Serial serial)
  18.             : base(serial)
  19.         {
  20.         }
  21.  
  22.         public override void InitBody()
  23.         {
  24.             SpeechHue = Utility.RandomDyedHue();
  25.             NameHue = 0x35;
  26.             Body = 0x191; //female
  27.  
  28.             SetRace(new Aasimar(0));
  29.             HairItemID = 8253;
  30.             HairHue = 1433;
  31.             FacialHairItemID = 0;
  32.             FacialHairHue = 0;
  33.         }
  34.  
  35.         public override void InitOutfit()
  36.         {
  37.             AddItem(new TogeAmple(2074));
  38.             AddItem(new ColierLong(1940));
  39.             AddItem(new Sandals(1940));
  40.  
  41.         }
  42.  
  43.         private List<SBInfo> m_SBInfos = new List<SBInfo>();
  44.         protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }
  45.  
  46.         public override void InitSBInfo()
  47.         {
  48.             m_SBInfos.Add( new SBPSoins() );
  49.         }
  50.  
  51.         public override void Serialize( GenericWriter writer )
  52.         {
  53.             base.Serialize( writer );
  54.  
  55.             writer.Write( (int) 0 ); // version
  56.         }
  57.  
  58.         public override void Deserialize( GenericReader reader )
  59.         {
  60.             base.Deserialize( reader );
  61.  
  62.             int version = reader.ReadInt();
  63.         }
  64.  
  65.     }
  66.  
  67.     public class SBSoins : SBInfo
  68.     {
  69.         private List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
  70.         private IShopSellInfo m_SellInfo = new InternalSellInfo();
  71.  
  72.         public SBSoins()
  73.         {
  74.         }
  75.  
  76.         public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
  77.         public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }
  78.  
  79.         public class InternalBuyInfo : List<GenericBuyInfo>
  80.         {
  81.             public InternalBuyInfo()
  82.             {
  83.                 Add(new GenericBuyInfo(typeof(Bandage), Bandage.GoldValue, 20, 0xE21, 0)); // 3
  84.                 Add(new GenericBuyInfo(typeof(Garlic), Garlic.GoldValue, 100, 0xF84, 0)); // 3
  85.                 Add(new GenericBuyInfo(typeof(Ginseng), Ginseng.GoldValue, 100, 0xF85, 0)); // 3
  86.                 Add(new GenericBuyInfo(typeof(Mandrakeroot), Mandrakeroot.GoldValue, 100, 0xF86, 0)); // 3
  87.                 Add(new GenericBuyInfo(typeof(SpiderSilk), SpiderSilk.GoldValue, 50, 0xF8D, 0)); // 3
  88.                 Add(new GenericBuyInfo(typeof(Bottle), Bottle.GoldValue, 20, 0xF0E, 0)); // 3
  89.                 Add(new GenericBuyInfo(typeof(BookOfChivalry), BookOfChivalry.GoldValue, 20, 0x2252, 0)); // 27
  90.                 Add(new GenericBuyInfo(typeof(WashBassin), WashBassin.GoldValue, 20, 0x1008, 0)); // 3
  91.  
  92.             }
  93.         }
  94.  
  95.         public class InternalSellInfo : GenericSellInfo
  96.         {
  97.             public InternalSellInfo()
  98.             {
  99.             }
  100.         }
  101.     }
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement