1
0

Grinok 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. # Grinok
  2. !{change log
  3. March 31, 2016
  4. Added rice wine quest
  5. }
  6. $metka = $ARGS[0]
  7. $loc = $CURLOC
  8. CLOSE ALL
  9. if sound = 0:
  10. if month >=11 and month <= 12 or month >=1 and month <=3:
  11. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/zima.mp3',30
  12. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  13. else
  14. if hour >= 8 and hour <= 23: PLAY 'sound/rynok.mp3',30 & PLAY 'sound/street_leto.mp3',30
  15. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  16. end
  17. end
  18. clr
  19. gs 'stat'
  20. gs 'time'
  21. '<center><h4>Market</h4></center>'
  22. '<center><img src="images/pic/Grinok.jpg"></center>'
  23. 'This small market is location near the station.'
  24. if arturQW = 1 and (week = 6 or week = 7) and hour < 12:
  25. act 'Wait for Arthur to arrive':hour = 12 & gt 'grinok'
  26. end
  27. if hour >= 8 and hour <= 18:
  28. 'In the market the sellers of goods are beckoning shoppers.'
  29. if gorslut > 2 and rand(0,9) = 0:
  30. 'An Armenian man comes up to you and in broken Russian says, "You girl who like men, no? Come meet real men have good time."'
  31. act 'Go with him':gt 'gevent', '3'
  32. act 'Reject him':
  33. 'You pretend not to understand what he is saying.'
  34. act 'Return':gt 'Grinok'
  35. end
  36. exit
  37. end
  38. act 'Wander through the market':
  39. cls
  40. minut += 15
  41. gs 'stat'
  42. 'You are strolling through the market looking for good deals.'
  43. if intel >= 100:
  44. rinmaxrand = 2
  45. elseif intel >= 75 and intel < 100:
  46. rinmaxrand = 4
  47. elseif intel >= 50 and intel < 75:
  48. rinmaxrand = 6
  49. elseif intel >= 25 and intel < 50:
  50. rinmaxrand = 8
  51. else
  52. rinmaxrand = 10
  53. end
  54. rinevrand = RAND(0,rinmaxrand)
  55. if rinevrand = 0:
  56. if arturKnow = 0:
  57. temp = rand(0, 6)
  58. else
  59. temp = rand(0, 5)
  60. end
  61. if temp = 0:
  62. tovpay = rand(3, 8) * 100
  63. 'You see that cosmetics are for sale for <<tovpay>> rubles.'
  64. if money >= tovpay:
  65. act 'Buy':
  66. cls
  67. minut += 15
  68. money -= tovpay
  69. kosmetica += rand(10, 40)
  70. gs 'stat'
  71. gt $curloc
  72. end
  73. end
  74. elseif temp = 1:
  75. tovpay = rand(2, 5) * 100
  76. 'You see vitamins for sale for <<tovpay>> rubles.'
  77. if money >= tovpay:
  78. act 'Buy':
  79. cls
  80. minut += 15
  81. vitamin += 20
  82. money -= tovpay
  83. gt $curloc
  84. end
  85. end
  86. elseif temp = 2:
  87. tovpay = rand(2, 8) * 10
  88. 'You see a booth selling condoms for <<tovpay>> rubles.'
  89. if money >= tovpay:
  90. act 'Buy':
  91. cls
  92. minut += 15
  93. prezik += 5
  94. money -= tovpay
  95. gt $curloc
  96. end
  97. end
  98. elseif temp = 3:
  99. tovpay = rand(5, 10) * 100
  100. 'There is lip balm for sale for <<tovpay>> rubles.'
  101. if money >= tovpay:
  102. act 'Buy':
  103. cls
  104. minut += 15
  105. lipbalm += 20
  106. money -= tovpay
  107. gt $curloc
  108. end
  109. end
  110. elseif temp = 4:
  111. tovpay = rand(1, 5) * 1000
  112. 'You see someone selling a handbag for <<tovpay>> rubles.'
  113. if bag = 0:
  114. if money >= tovpay:
  115. act 'Buy':
  116. cls
  117. minut += 15
  118. bag = 1
  119. money -= tovpay
  120. gt $curloc
  121. end
  122. end
  123. else
  124. 'But you already have a bag, so you move on.'
  125. end
  126. elseif temp = 5:
  127. if pornmarkonce = 0:pornmarkonce = 1
  128. 'Strolling through the market you accidentally wander into the far corner where they sell porn.'
  129. act 'Go to the area with the porn':gt 'Gpornmark'
  130. else
  131. 'Someone suddenly called out to you, "Hey pretty girl, do you want a fresh, juicy tangerine?"'
  132. act 'Look':gt 'arturRinok', 'start'
  133. end
  134. else
  135. 'Nothing unusual you do not come across, trash, buckets, granny gowns, sneakers, breeches and waistcoats with pockets.'
  136. end
  137. act 'Move on':gt $curloc
  138. end
  139. if pornmarkonce = 1:
  140. act 'Go to the area with the porn':gt 'Gpornmark'
  141. end
  142. if arturKnow = 1 and arturQW = 0:
  143. act 'Go to Arthur':gt 'arturRinok', 'start'
  144. elseif arturQW = 1 and (week = 6 or week = 7):
  145. if hour = 12 or hour = 13:
  146. act 'Go to Arthur':gt 'arturRinok', 'work_1'
  147. end
  148. elseif arturQW = 2:
  149. if hour = 16 and minut <= 30:
  150. act 'Go to Arthur':gt 'arturRinok', 'work_2'
  151. elseif hour < 16:
  152. act 'Wait for Arthur to arrive':hour = 16 & minut = 0 & gt 'Grinok'
  153. end
  154. end
  155. act 'Go to the book seller':
  156. cls
  157. minut += 15
  158. gs 'stat'
  159. 'On the shelves are very entertaining fantasy books, which costs only 150 rubles each and there are also women''s romance paperback novels for 300 rubles each.'
  160. if money >= 150:
  161. act 'Buy a fantasy book (150 rubles)':
  162. cls
  163. minut += 15
  164. money -= 150
  165. f_book += 1
  166. gs 'stat'
  167. 'You bought a fantasy book for 150 rubles.'
  168. act 'Leave':gt $curloc
  169. end
  170. end
  171. if money >= 300:
  172. act 'Buy a romance novel (300 rubles)':
  173. cls
  174. minut += 15
  175. money -= 300
  176. w_book += 1
  177. gs 'stat'
  178. 'You bought a romance novel for 300 rubles.'
  179. act 'Leave':gt $curloc
  180. end
  181. end
  182. act 'Escape':gt $curloc
  183. end
  184. if gobelen > 0 and gobQW = 0:
  185. act'Sell ​​tapestry':
  186. cls
  187. gobQW = 1
  188. minut += 15
  189. gs'stat'
  190. 'You stood quietly by the entrance to the market, waiting for customers and displaying your tapestries. Shortly buyers started to gather, but a large, muscular man approached you and said, "It is illegal to trade in the market without a trader''s licence, but I may be interesting in buying your tapestries, 500 rubles apiece. Come and see me at my stall."'
  191. 'Not wanting to get into trouble, you packed your stuff away. The man was already gone, but you saw which direction he went and he should be easy to find.'
  192. act 'Escape':gt $curloc
  193. end
  194. end
  195. if gobelen > 0 and gobQW >= 1:
  196. act'Sell ​​tapestry':
  197. cls
  198. minut += 15
  199. gs'stat'
  200. 'You went to the man who offered to buy your tapestries for 500 rubles. You found him by his stall, smiling.'
  201. if gobQW = 2:
  202. 'Roman welcomed you. Interested and businesslike, he asked what you have for sale.'
  203. end
  204. if gobQW = 1:
  205. gobQW = 2
  206. minute + 5
  207. 'The man greeted you and introduced himself as Roman, you told him that your name is <<$name>>. After a brief chat Roman said that he is interested in seeing what you have for sale.'
  208. end
  209. act'Show tapestry':
  210. cls
  211. gobelen -= 1
  212. money += 500
  213. gs'stat'
  214. 'You show your tapestry to Roman and he gives you five hundred for it. You take the money and give him the tapestry.'
  215. act 'Escape':gt $curloc
  216. end
  217. if gobelen > 1:
  218. act'Sell ​​all tapestries':
  219. cls
  220. kolgob = gobelen
  221. gobelen = 0
  222. moneyGob = kolgob*500
  223. money += moneyGob
  224. gs'stat'
  225. 'You show Roman your tapestries and he gives you <<moneyGob>> rubles for them. You take the money and give him the tapestries.'
  226. act 'Escape':gt $curloc
  227. end
  228. end
  229. act 'Leave':gt $curloc
  230. end
  231. end
  232. elseif ShowerIvan = 5 and porndeal = 0 and rand(1,100) <= 10:
  233. cls
  234. cla
  235. gs 'stat'
  236. minut += 20
  237. '<center><img src="images/locations/Pavlovsk/Market/chinese_stall01.jpg"></center>'
  238. 'You were looking through the market when you came upon a stall selling Chinese foods. On a shelf behind the old woman minding the stall there are a number of bottles.'
  239. act 'Ask about huangjiu':
  240. 'You asked the old woman if she has any rice wine to sell. She smiles at you and points to a basket filled with rice.'
  241. '"Onry 2 kopec, hundred glam." she said in badly accented Russian, "You buy?"'
  242. '"No," you replied, "I need rice wine, rice wine."'
  243. 'She looked at you in confusion for a moment then suddenly brightened, "Ah!" she exclaimed, "Come, come!"'
  244. 'The old woman hurried to the other side of the stall and you followed her to where a number of smoked piglets hung in a row.'
  245. '"Here," the old woman crowed handing you one of r the pigs, "Nice swine, vely nice swine."'
  246. '"No, not nice swine," you cried in dispair, "Rice. Wine."'
  247. '"Yes, yes," the woman countered, "Nice swine, only 5 lubles."'
  248. 'Just as you were about to give up, a young Chinese boy about your brother''s age arrived.'
  249. '"I am sorry, my grandmother does not speak much Russian." he said as he stepped up beside the old woman who started to speak rapidly to him in what you assumed was Chinese.'
  250. '"My grandmother asks why you don''t like the piglets." he translated as the old woman stopped speaking.'
  251. '"I don''t want a pig," you replied in relief as his Russian is quite good, "I am looking for rice wine, wang-goo."'
  252. '"Ah, huangjiu!" he said in understanding then spoke to his grandmother in Chinese.'
  253. 'the old woman glared at you then hung the smoked pig back on its hook. She shuffled over to the shelf with the bottles and peered short-sightedly at the labels. She finally picked up one of them and brought it over to you.'
  254. '"Why you not say wanted lice wine." she asked in aggrieved tones, "2000 lubles."'
  255. if money >= 2000:
  256. act 'Buy the wine':
  257. money -= 2000
  258. ricewine = 1
  259. 'You hand the woman the money and she gives you the wine.'
  260. act 'Leave': gt $curloc
  261. end
  262. else
  263. 'You are astonished by the price and realize that you cannot afford the wine. You apologize and turn away.'
  264. act 'Leave the market': gt $curloc
  265. act 'Continue browsing the market':
  266. cls
  267. cla
  268. gs 'stat'
  269. minut += 15
  270. '<center><img src="images/locations/Pavlovsk/Market/market_boy01.jpg"></center>'
  271. 'You continued to wander through the market for another 15 minutes when the boy from the Chinese stall came up to you.'
  272. '"Hey, you really want that rice wine?" he asked after checking to make sure no one was watching.'
  273. '"Yes," you answered him, "But it costs too much. I can''t afford it."'
  274. '"I''ll make a deal with you." he said, "Go to the porn dealer and buy me a porn magazine and I''ll get you the wine."'
  275. if pornmarkonce = 0: pornmarkonce = 1 & '"Where is the porn dealer?" you asked and he gives you directions.'
  276. act 'Agree': porndeal = 1 & gt 'Gpornmark'
  277. act 'Refuse':
  278. 'You declined his offer and he shrugged and walked away.'
  279. act 'Leave': gt $curloc
  280. end
  281. end
  282. end
  283. end
  284. elseif porndeal = 1 and porndealday ! daystart:
  285. cls
  286. cla
  287. gs 'stat'
  288. porndealday = daystart
  289. '<center><img src="images/locations/Pavlovsk/Market/market_boy01.jpg"></center>'
  290. 'The boy from the Chinese stall comes up to you as you entered the market.'
  291. '"Do you have it?" he asked eagerly.'
  292. if haveporn = 1:
  293. porndeal = 2 & ! to close the ricewine event
  294. ricewine = 1
  295. '"Do you have the wine?" you countered.'
  296. 'He pulls the bottle out of his backpack and you trade items.'
  297. act 'Leave': gt $curloc
  298. else
  299. 'You told him you didn''t have his magazine yet but you were working on it.'
  300. act 'Leave': gt $curloc
  301. end
  302. else
  303. 'There is no one in the market.'
  304. end
  305. act 'Go back to the station':minut += 3 & gt 'vokzalG'
  306. --- Grinok ---------------------------------