sportShop 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. # sportShop
  2. if $ARGS[0] = 'start':
  3. cla
  4. clr
  5. *clr
  6. minut += 5
  7. gs 'stat'
  8. fcolor = rgb(0, 0, 0)
  9. bcolor = rgb(255, 255, 255)
  10. lcolor = rgb(106, 90, 205)
  11. '<center><b><font color="maroon">Sporting goods store</font></b></center>'
  12. '<center><img src="images/etogame/sportshop.jpg"></center>'
  13. act 'Leave':
  14. cla
  15. minut += 5
  16. gt 'torgcentr'
  17. end
  18. act 'View sports clothes':
  19. cla
  20. minut += 5
  21. gt 'sportshop', 'clo'
  22. end
  23. act 'View swimwear':
  24. cla
  25. minut += 5
  26. gt 'sportshop', 'swim'
  27. end
  28. if skak = 0 and money >= 500:
  29. act 'Buy rope (500 <b>₽</b>)':
  30. cla
  31. minut += 5
  32. money -= 500
  33. skak = 1
  34. act 'Pick up a package':gt 'sportshop', 'start'
  35. end
  36. end
  37. if obruch = 0 and money >= 1500:
  38. act 'Buy hoop (1,500 <b>₽</b>)':
  39. cla
  40. minut += 5
  41. money -= 1500
  42. obruch = 1
  43. act 'Pick up a package':gt 'sportshop', 'start'
  44. end
  45. end
  46. if bookYog = 0 and money >= 1500:
  47. act 'Buy benefits of yoga (1,500 <b>₽</b>)':
  48. cla
  49. minut += 5
  50. money -= 1500
  51. bookYog = 1
  52. act 'Pick up a package':gt 'sportshop', 'start'
  53. end
  54. end
  55. end
  56. if $ARGS[0] = 'clo':
  57. $metka = $ARGS[0]
  58. $loc = $CURLOC
  59. cls
  60. gs'stat'
  61. fcolor = rgb(0, 0, 0)
  62. bcolor = rgb(255, 255, 255)
  63. lcolor = rgb(106, 90, 205)
  64. '<center><b><font color="maroon">Sports clothing.</font></b></center>'
  65. 'All clothing costs 4,000 <b>₽</b>, sportswear is dimensionless.'
  66. act 'Return':
  67. cla
  68. minut += 5
  69. gt 'sportshop', 'start'
  70. end
  71. if Clothingstock > 15:
  72. i = 1
  73. elseif Clothingstock > 7:
  74. i = 2
  75. else
  76. i = 3
  77. end
  78. :loopexercise
  79. if exercise[i] = 0:*p '<a href="exec: i = <<i>> & gt ''sportshop'', ''exercise''"><div style="width:100%; max-width:250px; max-height:250px;"><img src="images/Clothing/7exercise/Exercise<<i>>.jpg" height="250" /></div></a>'
  80. i += 3
  81. if i <= 26:jump 'loopexercise'
  82. end
  83. if $ARGS[0] = 'swim':
  84. $metka = $ARGS[0]
  85. $loc = $CURLOC
  86. cls
  87. gs'stat'
  88. fcolor = rgb(0, 0, 0)
  89. bcolor = rgb(255, 255, 255)
  90. lcolor = rgb(106, 90, 205)
  91. '<center><b><font color="maroon">Swimwear.</font></b></center>'
  92. 'Swimwear costs 1,000 <b>₽</b>.'
  93. act 'Return':
  94. cla
  95. minut += 5
  96. gt 'sportshop', 'start'
  97. end
  98. !4 is in he supermarket, so skipped
  99. if Clothingstock > 17:
  100. i = 1
  101. elseif Clothingstock > 11:
  102. i = 2
  103. elseif Clothingstock > 5:
  104. i = 3
  105. else
  106. i = 8
  107. end
  108. :loopswim
  109. if swimwear[i] = 0:*p '<a href="exec: i = <<i>> & gt ''sportshop'', ''swim1''"><div style="width:100%; max-width:250px; max-height:250px;"><img src="images/Clothing/12swimwear/Swimwear<<i>>.jpg" height="250" /></div></a>'
  110. i += 4
  111. if i <= 30:jump 'loopswim'
  112. end
  113. if $ARGS[0] = 'exercise':
  114. cla
  115. if exercise[i] ! 0:
  116. msg 'You already own these clothes.'
  117. gt 'sportshop', 'clo'
  118. end
  119. gt 'clothing', 'view_clothing_item', 'shop', 'exercise',i, 4000
  120. end
  121. if $ARGS[0] = 'swim1':
  122. cla
  123. if swimwear[i] ! 0:
  124. msg 'You already own these clothes.'
  125. gt 'sportshop', 'swim'
  126. end
  127. gt 'clothing', 'view_clothing_item', 'shop', 'swimwear',i, 4000
  128. end
  129. --- sportShop ---------------------------------