budgetclothes 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. # budgetclothes
  2. if $ARGS[0] = 'start':
  3. $metka = $ARGS[0]
  4. $loc = $CURLOC
  5. $location_type = 'event'
  6. '<center><b><font color="maroon">Welcome to G & M - Clothes for all your needs</font></b></center>'
  7. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/mall/gandm/shop.jpg"</center>'
  8. clr
  9. gs 'stat'
  10. if night_mode = 1:
  11. fcolor = rgb(255, 255, 255)
  12. bcolor = rgb(0, 0, 0)
  13. lcolor = rgb(106, 90, 205)
  14. else
  15. fcolor = rgb(0, 0, 0)
  16. bcolor = rgb(255, 255, 255)
  17. lcolor = rgb(106, 90, 205)
  18. end
  19. act 'Visit clothing department':
  20. cla
  21. act 'View cheap clothing':
  22. minut += 5
  23. gt 'budgetclothes', 'clothes'
  24. end
  25. act 'View office wear':
  26. minut += 5
  27. gt 'budgetclothes', 'office'
  28. end
  29. act 'View uniforms':
  30. minut += 5
  31. gt 'budgetclothes', 'uniform'
  32. end
  33. act 'View school uniforms':
  34. minut += 5
  35. gt 'budgetclothes', 'school'
  36. end
  37. act 'Return':gt 'budgetclothes', 'start'
  38. end
  39. act 'Visit shoe department':
  40. cla
  41. act 'Look at regular shoes':
  42. minut += 5
  43. gt 'budgetclothes', 'shoes'
  44. end
  45. act 'Look at exercise shoes':
  46. minut += 5
  47. gt 'budgetclothes', 'trainers'
  48. end
  49. act 'Return':gt 'budgetclothes', 'start'
  50. end
  51. act 'View coats':
  52. cla
  53. minut += 5
  54. gt 'budgetclothes', 'coats'
  55. end
  56. act 'Leave the store':
  57. cla
  58. if torg = 1:
  59. minut += 3
  60. gt 'torgcentr'
  61. else
  62. gt 'Gshveyfab', 'start'
  63. end
  64. end
  65. end
  66. if $ARGS[0] = 'clothes':
  67. $metka = $ARGS[0]
  68. $loc = $CURLOC
  69. cls
  70. gs'stat'
  71. act 'Return':
  72. cla
  73. minut += 5
  74. gt 'budgetclothes', 'start'
  75. end
  76. i = Clothingstock + 1
  77. if Clothingstock - 18 > 0:
  78. i -= 18
  79. elseif Clothingstock - 12 > 0:
  80. i -= 12
  81. elseif Clothingstock - 6 > 0:
  82. i -= 6
  83. end
  84. :loopcheap
  85. if cheap[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''cheapclo''"><img src="images/pc/clothing/1cheap/<<i>>.jpg" height="250" /></a>'
  86. i += 6
  87. if i = 77:i = 83
  88. if i <= 413:jump 'loopcheap'
  89. end
  90. if $ARGS[0] = 'cheapclo':
  91. cla
  92. if cheap[i] ! 0:
  93. msg 'You already own these clothes.'
  94. gt 'budgetclothes', 'clothes'
  95. end
  96. gt 'clothing', 'view_clothing_item', 'shop', 'cheap',i, 2000
  97. end
  98. if $ARGS[0] = 'office':
  99. $metka = $ARGS[0]
  100. $loc = $CURLOC
  101. cls
  102. gs'stat'
  103. act 'Return':
  104. cla
  105. minut += 5
  106. gt 'budgetclothes', 'start'
  107. end
  108. if Clothingstock > 15:
  109. i = 1
  110. elseif Clothingstock > 7:
  111. i = 2
  112. else
  113. i = 3
  114. end
  115. :loopoffice
  116. if office[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''officeclo''"><img src="images/pc/clothing/5office/<<i>>.jpg" height="250" /></a>'
  117. i += 3
  118. if i <= 101:jump 'loopoffice'
  119. end
  120. if $ARGS[0] = 'officeclo':
  121. cla
  122. if office[i] ! 0:
  123. msg 'You already own these clothes.'
  124. gt 'budgetclothes', 'office'
  125. end
  126. gt 'clothing', 'view_clothing_item', 'shop', 'office',i, 4000
  127. end
  128. if $ARGS[0] = 'uniform':
  129. $metka = $ARGS[0]
  130. $loc = $CURLOC
  131. cls
  132. gs'stat'
  133. act 'Return':
  134. cla
  135. minut += 5
  136. gt 'budgetclothes', 'start'
  137. end
  138. if Clothingstock > 15:
  139. i = 1
  140. elseif Clothingstock > 7:
  141. i = 2
  142. else
  143. i = 3
  144. end
  145. :loopuniform
  146. if uniform[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''uniformclo''"><img src="images/pc/clothing/10uniform/<<i>>.jpg" height="250" /></a>'
  147. i += 3
  148. if i <= 49:jump 'loopuniform'
  149. end
  150. if $ARGS[0] = 'uniformclo':
  151. cla
  152. if uniform[i] ! 0:
  153. msg 'You already own these clothes.'
  154. gt 'budgetclothes', 'uniform'
  155. end
  156. gt 'clothing', 'view_clothing_item', 'shop', 'uniform',i, 3000
  157. end
  158. if $ARGS[0] = 'school':
  159. $metka = $ARGS[0]
  160. $loc = $CURLOC
  161. cls
  162. gs'stat'
  163. act 'Return':
  164. cla
  165. minut += 5
  166. gt 'budgetclothes', 'start'
  167. end
  168. if Clothingstock > 15:
  169. i = 1
  170. elseif Clothingstock > 7:
  171. i = 2
  172. else
  173. i = 3
  174. end
  175. :loopschool
  176. if school[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''schoolclo''"><img src="images/pc/clothing/6school/<<i>>.jpg" height="250" /></a>'
  177. i += 3
  178. if i = 6:i = 9
  179. if i <= 62:jump 'loopschool'
  180. end
  181. if $ARGS[0] = 'schoolclo':
  182. cla
  183. if school[i] ! 0:
  184. msg 'You already own these clothes.'
  185. gt 'budgetclothes', 'school'
  186. end
  187. gt 'clothing', 'view_clothing_item', 'shop', 'school',i, 3000
  188. end
  189. if $ARGS[0] = 'shoes':
  190. $metka = 'shoes'
  191. $loc = 'budgetclothes'
  192. cls
  193. gs'stat'
  194. act 'Return':
  195. cla
  196. minut += 5
  197. gt 'budgetclothes', 'start'
  198. end
  199. if Clothingstock > 15:
  200. i = 1
  201. elseif Clothingstock > 7:
  202. i = 2
  203. else
  204. i = 3
  205. end
  206. :loopgandm_shoes
  207. if sgandm[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''budget_shoes''"><img src="images/pc/shoes/G&M/<<i>>.jpg" height="250" /></a>'
  208. i += 3
  209. if i = 6:i = 9
  210. if i <= 51:jump 'loopgandm_shoes'
  211. end
  212. if $ARGS[0] = 'budget_shoes': gt 'shoes', 'view_shoe_item', 'shop', 'gandm',i, 1500
  213. if $ARGS[0] = 'trainers':
  214. $metka = 'trainers'
  215. $loc = 'budgetclothes'
  216. cls
  217. gs'stat'
  218. act 'Return':
  219. cla
  220. minut += 5
  221. gt 'budgetclothes', 'start'
  222. end
  223. if Clothingstock > 11:
  224. i = 1
  225. else
  226. i = 2
  227. end
  228. :looptrainers_shoes
  229. if strainers[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''training_shoes''"><img src="images/pc/shoes/trainers/<<i>>.jpg" height="250" /></a>'
  230. i += 2
  231. if i = 21:i = 23
  232. if i <= 29:jump 'looptrainers_shoes'
  233. end
  234. if $ARGS[0] = 'training_shoes': gt 'shoes', 'view_shoe_item', 'shop', 'trainers',i, 2500
  235. if $ARGS[0] = 'coats':
  236. $metka = $ARGS[0]
  237. $loc = $CURLOC
  238. cls
  239. gs'stat'
  240. act 'Return':
  241. cla
  242. minut += 5
  243. gt 'budgetclothes', 'start'
  244. end
  245. i = 2
  246. :loopcoats
  247. if coat[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''coatsclo''"><img src="images/pc/clothing/11coat/<<i>>.jpg" height="250" /></a>'
  248. i += 1
  249. if i = 5:i = 6
  250. if i = 9:i = 10
  251. if i = 11:i = 12
  252. if i <= 19:jump 'loopcoats'
  253. end
  254. if $ARGS[0] = 'coatsclo':
  255. cla
  256. if coat[i] ! 0:
  257. msg 'You already own these clothes.'
  258. gt 'budgetclothes', 'coats'
  259. end
  260. gt 'clothing', 'view_clothing_item', 'shop', 'coat',i, 8000
  261. end
  262. --- budgetclothes ---------------------------------