pharmacy 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # pharmacy
  2. !!!0.2.6 addition: Optimized flow of the code, updated descriptions - now lists everything the drugstore has to sell
  3. !! now lists everything the drugstore has to sell
  4. $location_type = 'public_indoors'
  5. cls
  6. set minut += 5
  7. *pl '<center><b><font color="maroon">Pharmacy</font></b></center>'
  8. *pl '<center><img src="images/community/pharmacy.jpg"></center>'
  9. !! output for purchased item
  10. *p iif($ARGS[0] = 'start' or $ARGS[0] = '' or $ARGS[0] = 'move', '<br/>', '<center><<$ARGS[0]>></center>')
  11. *pl '<center><table align="center">' + _
  12. FUNC ('$stock_item', 5, 'condoms', 100, 'prezik', $CURLOC) + _
  13. FUNC ('$stock_item', 1, 'pregnancy test', 200, 'pregtest', $CURLOC) + _
  14. FUNC ('$stock_item', 28, 'birth control pills', 500, 'tabletki', $CURLOC) + _
  15. FUNC ('$single_stock_item', 1, 'enema kit', 500, 'klisma', $CURLOC) + _
  16. FUNC ('$stock_item', 10, 'antibiotics', 500, 'lekarstvo', $CURLOC) + _
  17. FUNC ('$stock_item', 20, 'vitamin drinks', 500, 'vitamin', $CURLOC) + _
  18. FUNC ('$stock_item', 16, 'painkillers', 500, 'painkiller', $CURLOC) + _
  19. FUNC ('$stock_item', 10, 'ointments for chafing', 600, 'mosolmaz', $CURLOC) + _
  20. FUNC ('$stock_item', 25, 'lip balm', 100, 'lipbalm', $CURLOC) + _
  21. FUNC ('$stock_item', 1, 'weight loss pill', 2000, 'fatdel', $CURLOC) + _
  22. FUNC ('$stock_item', 20, 'Tampons', 200, 'tampon', $CURLOC) + _
  23. FUNC ('$stock_item', 20, 'Sanitary napkins', 200, 'sanpad', $CURLOC) + _
  24. '</table></center>'
  25. if breastpump = 0 and money >= 800:'<center><a href="exec:money - 800 & breastpump = 1 & gt ''pharmacy''"><b>Buy breast pump</b></a> 500 <b>?</b></center>'
  26. !!gs '$stock_item', 1, 'antifungal pills', 600, 'mosolmaz', $CURLOC
  27. *nl
  28. clr
  29. gs 'stat'
  30. act 'Leave': gt $loc
  31. --- pharmacy ---------------------------------