1
0

budgetclothes 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. # budgetclothes
  2. if $ARGS[0] = 'start':
  3. $metka = $ARGS[0]
  4. $loc = $CURLOC
  5. $metkaM = $ARGS[0]
  6. $locM = $CURLOC
  7. $location_type = 'event'
  8. '<center><b><font color="maroon">Welcome to G & M - Clothes for all your needs</font></b></center>'
  9. clr
  10. gs 'stat'
  11. fcolor = rgb(0, 0, 0)
  12. bcolor = rgb(255, 255, 255)
  13. lcolor = rgb(106, 90, 205)
  14. act 'View cheap clothing':
  15. cla
  16. minut += 5
  17. gt 'budgetclothes', 'clothes'
  18. end
  19. act 'View office wear':
  20. cla
  21. minut += 5
  22. gt 'budgetclothes', 'office'
  23. end
  24. act 'View uniforms':
  25. cla
  26. minut += 5
  27. gt 'budgetclothes', 'uniform'
  28. end
  29. act 'View school uniforms':
  30. cla
  31. minut += 5
  32. gt 'budgetclothes', 'school'
  33. end
  34. act 'View coats':
  35. cla
  36. minut += 5
  37. gt 'budgetclothes', 'coats'
  38. end
  39. act 'Leave the store':
  40. cla
  41. if torg = 1:
  42. minut += 3
  43. gt 'torgcentr'
  44. else
  45. gt 'Gshveyfab', 'start'
  46. end
  47. end
  48. end
  49. if $ARGS[0] = 'clothes':
  50. $metka = $ARGS[0]
  51. $loc = $CURLOC
  52. cls
  53. gs'stat'
  54. act 'Return':
  55. cla
  56. minut += 5
  57. gt 'budgetclothes', 'start'
  58. end
  59. i = Clothingstock + 1
  60. if Clothingstock - 18 > 0:
  61. i -= 18
  62. elseif Clothingstock - 12 > 0:
  63. i -= 12
  64. elseif Clothingstock - 6 > 0:
  65. i -= 6
  66. end
  67. :loopcheap
  68. if cheap[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''cheapclo''"><img src="images/clothing/1cheap/cheap<<i>>.jpg" height="250" /></a>'
  69. i += 6
  70. if i = 77:i = 83
  71. if i <= 85:jump 'loopcheap'
  72. end
  73. if $ARGS[0] = 'cheapclo':
  74. cla
  75. if cheap[i] ! 0:
  76. msg 'You already own these clothes.'
  77. gt 'budgetclothes', 'clothes'
  78. end
  79. gt 'clothing', 'view_clothing_item', 'shop', 'cheap',i, 2000
  80. end
  81. if $ARGS[0] = 'office':
  82. $metka = $ARGS[0]
  83. $loc = $CURLOC
  84. cls
  85. gs'stat'
  86. act 'Return':
  87. cla
  88. minut += 5
  89. gt 'budgetclothes', 'start'
  90. end
  91. if Clothingstock > 15:
  92. i = 1
  93. elseif Clothingstock > 7:
  94. i = 2
  95. else
  96. i = 3
  97. end
  98. :loopoffice
  99. if office[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''officeclo''"><img src="images/clothing/5office/office<<i>>.jpg" height="250" /></a>'
  100. i += 3
  101. if i <= 30:jump 'loopoffice'
  102. end
  103. if $ARGS[0] = 'officeclo':
  104. cla
  105. if office[i] ! 0:
  106. msg 'You already own these clothes.'
  107. gt 'budgetclothes', 'office'
  108. end
  109. gt 'clothing', 'view_clothing_item', 'shop', 'office',i, 4000
  110. end
  111. if $ARGS[0] = 'uniform':
  112. $metka = $ARGS[0]
  113. $loc = $CURLOC
  114. cls
  115. gs'stat'
  116. act 'Return':
  117. cla
  118. minut += 5
  119. gt 'budgetclothes', 'start'
  120. end
  121. if Clothingstock > 7:
  122. i = 1
  123. elseif Clothingstock > 15:
  124. i = 2
  125. else
  126. i = 3
  127. end
  128. :loopuniform
  129. if uniform[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''uniformclo''"><img src="images/clothing/10uniform/uniform<<i>>.jpg" height="250" /></a>'
  130. i += 3
  131. if i <= 24:jump 'loopuniform'
  132. end
  133. if $ARGS[0] = 'uniformclo':
  134. cla
  135. if uniform[i] ! 0:
  136. msg 'You already own these clothes.'
  137. gt 'budgetclothes', 'uniform'
  138. end
  139. gt 'clothing', 'view_clothing_item', 'shop', 'uniform',i, 3000
  140. end
  141. if $ARGS[0] = 'school':
  142. $metka = $ARGS[0]
  143. $loc = $CURLOC
  144. cls
  145. gs'stat'
  146. act 'Return':
  147. cla
  148. minut += 5
  149. gt 'budgetclothes', 'start'
  150. end
  151. if Clothingstock > 7:
  152. i = 1
  153. elseif Clothingstock > 15:
  154. i = 2
  155. else
  156. i = 3
  157. end
  158. :loopschool
  159. if school[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''schoolclo''"><img src="images/clothing/6school/school<<i>>.jpg" height="250" /></a>'
  160. i += 3
  161. if i = 6:i = 9
  162. if i <= 35:jump 'loopschool'
  163. end
  164. if $ARGS[0] = 'schoolclo':
  165. cla
  166. if school[i] ! 0:
  167. msg 'You already own these clothes.'
  168. gt 'budgetclothes', 'school'
  169. end
  170. gt 'clothing', 'view_clothing_item', 'shop', 'school',i, 3000
  171. end
  172. if $ARGS[0] = 'coats':
  173. $metka = $ARGS[0]
  174. $loc = $CURLOC
  175. cls
  176. gs'stat'
  177. act 'Return':
  178. cla
  179. minut += 5
  180. gt 'budgetclothes', 'start'
  181. end
  182. i = 2
  183. :loopcoats
  184. if coat[i] = 0:*p '<a href="exec: i = <<i>> & gt ''budgetclothes'', ''coatsclo''"><img src="images/clothing/11coat/coat<<i>>.jpg" height="250" /></a>'
  185. i += 1
  186. if i = 5:i = 6
  187. if i = 9:i = 10
  188. if i = 11:i = 12
  189. if i <= 12:jump 'loopcoats'
  190. end
  191. if $ARGS[0] = 'coatsclo':
  192. cla
  193. if coat[i] ! 0:
  194. msg 'You already own these clothes.'
  195. gt 'budgetclothes', 'coats'
  196. end
  197. gt 'clothing', 'view_clothing_item', 'shop', 'coat',i, 8000
  198. end
  199. --- budgetclothes ---------------------------------