Advertisement
TheNewGreatChocobo

Archiviste

Nov 22nd, 2014
146
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 Archiviste : BaseVendor
  8.     {
  9.         [Constructable]
  10.         public Archiviste()
  11.             : base("Archiviste")
  12.         {
  13.             Name = "Grégoire";
  14.         }
  15.  
  16.  
  17.         public Archiviste(Serial serial)
  18.             : base(serial)
  19.         {
  20.         }
  21.  
  22.         public override void InitBody()
  23.         {
  24.             SpeechHue = Utility.RandomDyedHue();
  25.             NameHue = 0x35;
  26.             Body = 0x190; //male
  27.  
  28.             SetRace(new Capiceen(1013));
  29.             HairItemID = 10222;
  30.             HairHue = 1103;
  31.             FacialHairItemID = 10309;
  32.             FacialHairHue = 1103;
  33.         }
  34.  
  35.         public override void InitOutfit()
  36.         {
  37.             AddItem(new TogeAmple(2038));
  38.             AddItem(new NewSpellBook(2165));
  39.             AddItem(new Shoes(1883));
  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 SBLivres() );
  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 SBLivres : SBInfo
  68.     {
  69.         private List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
  70.         private IShopSellInfo m_SellInfo = new InternalSellInfo();
  71.  
  72.         public SBLivres()
  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.  
  84.                 Add(new GenericBuyInfo(typeof(BlankScroll), 20, 0xEF3, 0)); // 3
  85.                 Add(new GenericBuyInfo(typeof(BrownBook), 20, 0xFEF, 0)); // 6
  86.                 Add(new GenericBuyInfo(typeof(TanBook), 20, 0xFF0, 0)); // 6
  87.                 Add(new GenericBuyInfo(typeof(BlueBook), 20, 0xFF2, 0)); // 6
  88.                 Add(new GenericBuyInfo(typeof(RedBook), 20, 0xFF1, 0)); // 6
  89.                 Add(new GenericBuyInfo(typeof(SribesPen), 20, 0xFBF, 0)); // 6
  90.                 Add(new GenericBuyInfo(typeof(LivreOuvert), 20, 0xFBE, 0)); // 6
  91.  
  92.  
  93.             }
  94.         }
  95.  
  96.         public class InternalSellInfo : GenericSellInfo
  97.         {
  98.             public InternalSellInfo()
  99.             {
  100.             }
  101.         }
  102.     }
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement