anchor.diff:  							new /obj/shop/buttons/next (src,1,3),
   							"next")
   
  +			spawn(10)
  +				if(!items && (name in shops))
  +					items = shops[name]
   
   		proc
   			shop(mob/Player/M)
  -				M.client.images += images
  -				M.shop_index = rand(1,items.len)
  -				update(1, M)
  +				if(!items)
  +					if(name in shops)
  +						items = shops[name]
  +					else return
  +				if(!items.len) return
   
   			unshop(mob/Player/M)
  +				if(!items)
  +					if(name in shops)
  +						items = shops[name]
  +					else return
  +				if(!items.len) return
  +
   				M.client.images -= images
   				update(0, M)
   
   			update(i, mob/Player/M)
  +				if(!items)
  +					if(name in shops)
  +						items = shops[name]
  +					else return
  +				if(!items.len) return
  +
   				var/obj/o = items[M.shop_index]
   				M.overlays -= o.icon
   
  
positive.code: 	verb
  		Talk()
  			set src in oview(4)
  			usr << npcsay("Wig Seller says: Welcome to our little wig shop, use the mirrors to select a wig of your liking! Each wig costs 500,000 gold.")
  		/*	if(usr.gold<500000)
  				usr << npcsay("Wig Seller says: Sorry! It looks like you don't have enough gold to purchase a wig from me. Each wig costs 500,000g.")
  			else if(alert("Hello, would you like to purchase a wig?","You have [usr.gold] gold","Yes","No")=="Yes")
  
negative.code: 			set src in oview(2)
  			var/obj/selecteditem
  			var/selectedprice
  			switch(input("Blotts: Hi there! Welcome to Flourish and Blotts. Do any titles interest you?","You have [comma(usr.gold)] gold")as null|anything in list("Basic COMC 500g","Monster book of Monsters 500g"))
  				if("Basic COMC 500g")
  					selecteditem = /obj/COMCText
  					selectedprice = 500
  