1
0

city_residential.qsrc 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. # city_residential
  2. music_loop = 0
  3. CLOSE ALL
  4. $loc_arg = ''
  5. $loc = 'city_residential'
  6. $region = 'city_residential'
  7. $location_type = 'public_outdoors'
  8. $menu_loc = 'city_residential'
  9. $menu_arg = ''
  10. menu_off = 0
  11. killvar '$locclass'
  12. if sound = 0:
  13. if month >=11 and month <= 12 or month >=1 and month <=3:
  14. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street7.mp3',30 & PLAY 'sound/zima.mp3',30
  15. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  16. else
  17. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street7.mp3',30 & PLAY 'sound/street_leto.mp3',30
  18. if hour >= 0 and hour <= 7: PLAY 'sound/street_night_leto.mp3' & PLAY 'sound/street_night.mp3',30
  19. end
  20. end
  21. !all random events move to [street_events], and display them before show location. by illume
  22. if streetevent_hour + 2 < hour:gt'street_event','city_residential', 'main'
  23. '<center><h2>St. Petersburg</h2></center>'
  24. '<center><b>Residential Area</b></center>'
  25. if month >= 11 or month <= 3:
  26. if daystage = 2 or daystage = 3:
  27. '<center><img <<$set_imgh>> src="images/locations/city/residential/streetw.jpg"></center>'
  28. else
  29. '<center><img <<$set_imgh>> src="images/locations/city/residential/streetwn.jpg"></center>'
  30. end
  31. else
  32. if daystage = 2 or daystage = 3:
  33. '<center><img <<$set_imgh>> src="images/locations/city/residential/street.jpg"></center>'
  34. else
  35. '<center><img <<$set_imgh>> src="images/locations/city/residential/street_night.jpg"></center>'
  36. end
  37. end
  38. gs'street_event','city_residential', 'extras'
  39. if opusk > 0 or gnewQW = 5:
  40. if rand(0,9) = 0:gt 'gopnew', 'start5'
  41. if home_owned[1] > 0:'Something is written on the wall near the entrance to your building. It reads:<b>"<<$pcs_firstname>> <<$pcs_lastname>> from apartment 69 is a cheap slut!"</b>'
  42. end
  43. gs 'stat'
  44. palMir = 0
  45. bordysh = 0
  46. housrA = 0
  47. obdysh = 0
  48. tanhouse1 = 0
  49. obMir = 0
  50. houseob = 0
  51. borMir = 0
  52. $onobjsel = 'onobjsel'
  53. if gopdeath = 1 and vsehsdaladay ! daystart:
  54. over = 6
  55. gt 'gameover'
  56. exit
  57. end
  58. housrA = 0
  59. if car > 0 and cardrive = 1 or cardrive = 8:
  60. if cardrive = 8:
  61. '<a href="exec: minut += 10 & gs ''carF'', ''start''">Your <<$car>></a> is in your driveway.'
  62. else
  63. '<a href="exec:gs ''carF'', ''start''">Your <<$car>></a> is in the parking lot.'
  64. end
  65. end
  66. if home_owned[1] > 0:
  67. act '<b>Go home</b>':
  68. gorand = rand(0, 100)
  69. if (loh > 0 or gnewQW = 7) and gopdolg > 0 and hour >= 20 and gorand >= 80:
  70. gt 'gopnew', 'start'
  71. exit
  72. end
  73. if (opusk > 0 or gnewQW = 5) and hour >= 20 and gorand >= 80 and gopopusday ! daystart:
  74. gt 'gopnew', 'start'
  75. exit
  76. end
  77. minut += 1
  78. gt 'korr'
  79. end
  80. elseif home_owned[15] = 1:
  81. act '<b>Go home</b>':
  82. minut += 10
  83. gt 'city_house_res_misc', 'fronty'
  84. end
  85. end
  86. act 'Wait':gs 'obj_din', 'wait'
  87. gs 'taxi'
  88. if hour >= 8 and hour <= 22:'You can see the <a href="exec:$loc = ''city_residential'' & minut += 1 & gt ''kiosk'', ''start''">kiosk</a> selling cigarettes and magazines.'
  89. if Enable_tablemap = 0:
  90. if katkey = 1:'<a href="exec:gt ''katspalnya'', ''start''">Kat''s</a> apartment'
  91. if IrinaQW >= 1:'<a href="exec:gt ''city_irinaroom'', ''start''">Irene''s</a> apartment is not far from yours.'
  92. if hour >= 16 and hour < 22 and dimaQW > 0:'<a href="exec:gt ''city_dima'', ''start''">Dima''s</a> apartment'
  93. if klofQW >= 2:'<a href="exec:gt ''city_jorahouse'', ''start''">Jora''s</a> apartment'
  94. else
  95. st_count=0 & $show_table=''
  96. if katkey = 1:gs'show_table','<a href="exec:gt ''katspalnya'', ''start''">Kat''s</a> apartment','3'
  97. if IrinaQW >= 1:gs'show_table','<a href="exec:gt ''city_irinaroom'', ''start''">Irene''s</a> apartment is not far from yours.','3'
  98. if hour >= 16 and hour < 22 and dimaQW > 0:gs'show_table','<a href="exec:gt ''city_dima'', ''start''">Dima''s</a> apartment','3'
  99. if klofQW >= 2:gs'show_table','<a href="exec:gt ''city_jorahouse'', ''start''">Jora''s</a> apartment','3'
  100. if hour >= 10 and hour < 22 and lesbiQW = 1:
  101. gs'show_table','<a href="exec:gt ''lesbidomhouse'', ''start''">Natalya Petrovna''s</a> apartment.', '3'
  102. elseif lesbiday ! daystart and subdom = 2:
  103. gs'show_table','<a href="exec:gt ''lesbisubhouse'', ''start''">Your slave''s</a> apartment.','3'
  104. elseif lesbiday ! daystart and hour >= 8 and hour < 22 and lesbiQW >= 2 and lesbiQW < 13:
  105. gs'show_table','<a href="exec:gt ''lesbidomhouse'', ''start''">Mistress''s</a> apartment.','3'
  106. elseif lesbiday ! daystart and hour >= 8 and hour < 22 and lesbiQW >= 13:
  107. gs'show_table','<a href="exec:gt ''lesbimistress'', ''start''">Mistress''s</a> apartment.','3'
  108. end
  109. if st_count > 0 :'<TABLE BORDER=1><<$show_table>></TR></TABLE>'
  110. end
  111. if hour >= 5 and hour <= 23:'The <a href="exec: minut += 5 & gt ''metro'', ''start''">Metro</a> station is a 5 minute walk away.'
  112. if hour >= 8 and hour <= 20:'The <a href="exec: minut += 3 & gt ''shop'', ''start''">supermarket</a> is not far from here.'
  113. if (hour >= 8 and hour <= 20) or preg = 2:
  114. 'The <a href="exec:gt ''city_clinic'', ''start''">clinic</a> is also nearby.'
  115. else
  116. 'The clinic is close. It will open at 08:00.'
  117. end
  118. if hour >= 6 and hour <= 9 and military = 1 and week = 6:
  119. 'There is a <a href="exec:minut += 60 & gt ''Military'', ''start''">military bus</a> waiting on the other side of the street.'
  120. elseif military = 1:
  121. 'The military bus will wait between 06:00 and 09:00 on Saturdays.'
  122. end
  123. if hour >= 8 and hour <= 14 and week ! 1:
  124. 'You could go shopping at the noisy local <a href="exec: minut += 10 & gt ''city_market'', ''start''">marketplace</a>.'
  125. else
  126. 'You could go shopping at the noisy local marketplace, but it''s '+iif(week = 1, 'closed on Mondays.', 'only open between 08:00 and 15:00.')
  127. end
  128. if hour >= 8 and hour <= 15 and week < 6:
  129. 'Near the market is a <a href="exec: minut += 10 & gt ''city_market'', ''tailor''">tailor shop</a> where you can get your clothes resized if needed.'
  130. else
  131. 'Near the market is a tailor shop where you can get your clothes resized if needed. '+iif(week < 6, 'It closes at 16:00.', 'It''s closed on weekends.')
  132. end
  133. if hour >= 11 and hour < 12 and week > 1 and week < 5 and workKafe = 1:
  134. 'The side door of <a href="exec: minut += 5 & gt ''city_kafe'', ''work''">"The Roadhouse"</a> is open, allowing employees to enter to begin their shift.'
  135. elseif hour >= 12 and hour <= 22 and week ! 1:
  136. 'In a side alley, next to the uniquely styled diner <a href="exec: minut += 5 & gt ''city_kafe'', ''start''">"The Roadhouse"</a>, you can hear some <a href="exec: minut += 5 & gt ''gopnew'', ''start''">gopniks</a> swearing and laughing.'
  137. elseif hour > 22 or hour <= 3:
  138. 'You can hear the swearing and laughing of some <a href="exec:gt ''gopnew'', ''start''">gopniks</a> in the parking lot of "The Roadhouse" diner.'
  139. else
  140. 'The Roadhouse diner is closed right now. It''s open between 12:00 and 23:00 every day except Monday.'
  141. end
  142. if clener >= 1 and hour >= 7 and hour <= 22:'There''s a small office building where a <a href="exec: minut += 5 & gt ''city_smalloffice'', ''start''">cleaning lady</a> is needed.'
  143. 'The city''s large <a href="exec:minut += 20 & gt ''city_park'', ''start''">central park</a> is a 20 minute walk away.'
  144. 'The city''s only <a href="exec:minut += 40 & gt ''city_lake'', ''start''">lake</a> is a 40 minute walk away.'
  145. '24 Hour <a href="exec:$loc = ''city_residential'' & gt ''city_pharmacy'', ''start''">Pharmacy</a>.'
  146. if Enable_tablemap = 0:
  147. if hour >= 10 and hour < 22 and lesbiQW = 1:
  148. '<a href="exec:gt ''lesbidomhouse'', ''start''">Natalya Petrovna''s</a> apartment.'
  149. elseif lesbiday ! daystart and subdom = 2:
  150. '<a href="exec:gt ''lesbisubhouse'', ''start''">Your slave''s</a> apartment.'
  151. elseif lesbiday ! daystart and hour >= 8 and hour < 22 and lesbiQW >= 2 and lesbiQW < 13:
  152. '<a href="exec:gt ''lesbidomhouse'', ''start''">Mistress''s</a> apartment.'
  153. elseif lesbiday ! daystart and hour >= 8 and hour < 22 and lesbiQW >= 13:
  154. '<a href="exec:gt ''lesbimistress'', ''start''">Mistress''s</a> apartment.'
  155. end
  156. end
  157. if home_owned[1] = 0:
  158. 'You see several <a href="exec: minut += 1 & gt ''city_trashplace''">trash bins</a> in the courtyard of one of the apartment buildings.'
  159. else
  160. 'You see several <a href="exec: minut += 1 & gt ''city_trashplace''">trash bins</a> in the courtyard of your <a href="exec: gt ''city_apt_building'',''floor_1''">apartment building</a>.'
  161. end
  162. if SNarkPriton > 0:'The <a href="exec:minut += 5 & gt ''city_drugden''">drug house</a> is clearly recognizable by the syringes and trash that lies in front of it.'
  163. if hour >= 8 and hour <= 23 or saunaWorkWhore > 0 or workDisk = 2:'<a href="exec:minut += 10 & gt ''city_sauna''">The sauna</a> is a 10 minute walk away. Rumors say that it''s just a front for a brothel.'
  164. if hour >= 20 or hour <= 4:
  165. *nl
  166. 'There are prostitutes working near here.'
  167. if pcs_makeup > 2 and PCloStyle = 4 and pcs_inhib >= 40 and (stat['vaginal'] > 0 or fame['pav_slut'] >= 100):
  168. act 'Prostitute yourself': gt 'street_walker', 'work'
  169. elseif pcs_inhib >= 40 and (stat['vaginal'] > 0 or fame['pav_slut'] >= 100):
  170. *nl
  171. 'You could work as a prostitute, but you need to wear appropriate clothes and more than a little bit of makeup.'
  172. else
  173. *nl
  174. 'You could work as a prostitute, but you aren''t comfortable with the idea.'
  175. end
  176. end
  177. --- city_residential ---------------------------------