1
0

sportShop 2.8 KB

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