zoomagazine 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # zoomagazine
  2. if $ARGS[0] = 'start':
  3. cla
  4. *clr
  5. set minut += 5
  6. '<center><b><font color="maroon">Pet Shop</font></b></center>'
  7. *nl
  8. '<center><img src="images/zoo/1277894267_dsc_0544.jpg" width = 650 height = 450 ></center>'
  9. *nl
  10. clr
  11. gs 'stat'
  12. fcolor = rgb(0, 0, 0)
  13. bcolor = rgb(255, 255, 255)
  14. lcolor = rgb(106, 90, 205)
  15. 'Dog - 3000 rubles'
  16. 'Rabbit - 2000 rubles'
  17. 'Parrot - 3000 rubles'
  18. if money >= 3000 and sobaka = 0:
  19. act 'Buy a dog (3000 rubles)':
  20. cla
  21. *clr
  22. '<center><img src="images/zoo/1277894267_dsc_0544.jpg" width = 650 height = 450 ></center>'
  23. act 'Hello, I would like to get a dog':
  24. cla
  25. *clr
  26. '<center><img src="images/zoo/1277894267_dsc_0544.jpg" width = 650 height = 450 ></center>'
  27. '<center><b>Sorry, but we were only male dogs.</center></b>'
  28. act 'Buy a dog':
  29. cla
  30. *clr
  31. set minut += 10
  32. set sobaka += 1
  33. set money -= 3000
  34. '<center><img src="images/zoo/dog1.jpg" width = 600 height = 500 ></center>'
  35. '<center><b>You bought a dog-Dalmatians.</center></b>'
  36. $namesob = input ('I''ll call a dog ...')
  37. act 'Move away from the counter':gt 'zoomagazine', 'start'
  38. end
  39. act 'Leave':gt 'zoomagazine', 'start'
  40. end
  41. end
  42. end
  43. if money >= 2000 and krolik = 0:
  44. act 'Buy a rabbit (2000 rubles)':
  45. cla
  46. *clr
  47. '<center><img src="images/zoo/x_2b1d398b.jpg"></center>'
  48. '<center><b>You bought a rabbit.</center></b>'
  49. $namekrol = input ("I call rabbit ...")
  50. set minut += 10
  51. set krolik += 1
  52. set money -= 2000
  53. act 'Move away from the counter':gt 'zoomagazine', 'start'
  54. end
  55. end
  56. if money >= 3000 and popugai = 0:
  57. act 'Buy a parrot (3000 rubles)':
  58. cla
  59. *clr
  60. '<center><img src="images/zoo/parrot1.jpg"></center>'
  61. '<center><b>You bought a parrot.</center></b>'
  62. $namepopu = input ("I call parrot ...")
  63. set minut += 10
  64. set popugai += 1
  65. set money -= 3000
  66. act 'Move away from the counter':gt 'zoomagazine', 'start'
  67. end
  68. end
  69. act 'Leave':gt 'torgcentr'
  70. end
  71. --- zoomagazine ---------------------------------