/// <summary> /// Caches the shop /// </summary> /// <param name="npc">Npc who requires his shop to be cached</param> protected virtual void OnCacheShop(BaseNPC npc) { string filename = Server.SecurePath("~/bookstore/{0}.xml", npc.ModelId); _shoplist = BookstoreCollection.FromFile(filename); }
/// <summary> /// Caches the shop items. /// </summary> /// <remarks> /// This will load all shop items from the data directory from read from /// file shops/cathelya.xml. /// </remarks> /// <param name="npc">Npc who requires caching</param> protected virtual void OnCacheShop(BaseNPC npc) { string filename = Server.SecurePath("~/shops/Catheleya.xml"); _shoplist = ShopCollection.FromFile(filename); }