mod_wlife.qsrc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. # mod_wlife
  2. !!Save Update
  3. gs 'mod_wlife_saveupdater', 'check'
  4. if week = 1 and wl_timer['week_check'] ! daystart:
  5. wl_timer['week'] += 1
  6. wl_timer['week_check'] = daystart
  7. if wl_status['hotel'] = 1 and wl_status['hotel_bill'] > 0:
  8. if karta > wl_status['hotel_bill']:
  9. karta -= wl_status['hotel_bill']
  10. '<br> <<wl_status[''hotel_bill'']>> <b>₽</b> was automatically debited from your bank account to pay your hotel bill.'
  11. hotelroom1day += 7
  12. elseif wl_status['hotel_bill'] > 0 and wl_status['main'] > -1:
  13. wl_debt['amount'] += wl_status['hotel_bill']
  14. hotelroom1day += 7
  15. '<br> <<wl_status[''hotel_bill'']>> <b>₽</b> was added to your debt to pay your hotel bill.'
  16. end
  17. wl_status['hotel_bill'] = 3500
  18. end
  19. end
  20. !!Condoms
  21. wl_status['condoms'] = prezik + prezikcount
  22. !!Location Checks
  23. if wl_status['hotel'] = 1 and $loc = 'HotelRoom':
  24. gt 'mod_wlife_hotelroom', 'room'
  25. elseif $curloc = 'gschool_lessons4' and $ARGS[0] = 'shower2' and $wl_brand['text_pubic'] ! '':
  26. gs 'mod_wlife_misc', 'school_shower'
  27. end
  28. if wl_status['main'] = -1:
  29. if $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $metka = 'outside' and $menu_arg = 'outside' and menu_off = 0:
  30. '<br>You can take a bus at the local terminal to the '+iif(money < 75, 'gas station', '<a href="exec: minut += 35 & money -= 75 & gt ''mod_wlife_highway'', ''outside''">gas station</a>')+' near the highway between St. Petersburg and Moscow. The bus ride and a short walk to the gas station will take 35 minutes and cost 75 <b>₽</b>.'+iif(money < 75, ' You don''t have enough money.', '')
  31. elseif $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $metka = 'outside' and $menu_arg = 'outside' and menu_off = 0 and (PCloStyle ! 4 or ShoHeels < 4):
  32. '<br>You could take the bus to the gas station, but you need to wear high heels and appropriate clothing to work there.'
  33. elseif wl_homeless['status'] > 0 and $loc = 'pav_industrial' and $menu_loc = 'pav_industrial' and $menu_arg = '' and $ARGS[0] = '' and menu_off = 0:
  34. '<br>Go to the <a href="exec: minut += 8 & gt ''mod_wlife_warehouse'', ''homeless_outside''">homeless</a>.'
  35. end
  36. if wl_sacha['status'] > 3 and wl_whore['pav_timer_hour'] ! hour and rand(-20,70) < minut and $curloc ! 'mod_wlife_solicitation' and $curloc ! 'shop' and menu_off = 0 and $loc = $curloc: gs 'mod_wlife_solicitation', 'chance'
  37. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  38. pl 'To restore ''Whore Life'' <a href="exec: wl_status[''main''] = wl_status[''stored''] & clr & gs ''stat''">click here</a>.'
  39. if wl_georgiy['payment_method'] = 1 and PCloStyle = 4 and ShoHeels > 3 and (($metka = 'street' and $loc = 'mod_wlife_warehouse') or ($metka = '' and ($loc = 'pav_commcenter' or $loc = 'pav_residential' or $loc = 'pav_industrial' or $loc = 'pav_commercial' or $loc = 'pav_train' or $loc = 'liam')) or ($metka = 'start' and ($loc = 'pav_complex' or $loc = 'pav_park'))) and hour > 6 and hour < 23 and $curloc ! 'shop' and menu_off = 0 and $loc = $curloc:
  40. pl '<center><a href="exec: gt ''mod_wlife_solicitation'', ''search''"><img title="Click to start working in Pavlovsk." height = 80 src="mod/wlife/images/objects/prostitute.png"></a></center>'
  41. end
  42. elseif wl_status['main'] > -1:
  43. !!Street Events
  44. if wl_status['main'] = 0 and $loc = 'pav_residential' and $menu_loc = 'pav_residential' and $menu_arg = '' and $ARGS[0] = '' and menu_off = 0 and wl_timer['main'] < daystart and hour > 6 and hour < 20:
  45. if wl_status['start'] = 1:
  46. gt 'mod_wlife_story', 'start_1'
  47. elseif wl_status['start'] = 2:
  48. gt 'mod_wlife_story', 'start_2'
  49. elseif wl_status['start'] = 3:
  50. gt 'mod_wlife_story', 'start_3'
  51. elseif wl_status['start'] = 4 and week < 7:
  52. gt 'mod_wlife_story', 'start_4'
  53. end
  54. elseif wl_status['main'] > 8 and wl_iosif['tattoo'] = 1 and tatvag = 0 and $loc = 'pav_residential' and $menu_loc = 'pav_residential' and $menu_arg = '' and $metka = '' and menu_off = 0 and (((hour = 7 or hour = 8) and kanukuli = 0 and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6) or (hour > 6 and (SchoolBlock > 0 or SchoolAtestat > 0))):
  55. gt 'mod_wlife_tattoo_piercing', 'tattoo_0'
  56. elseif wl_status['main'] > 0 and (($loc = 'pav_residential' and $menu_loc = 'pav_residential') or ($loc = 'pav_commercial' and $menu_loc = 'pav_commercial') or ($loc = 'pav_industrial' and $menu_loc = 'pav_industrial')) and $menu_arg = '' and $ARGS[0] = '' and menu_off = 0:
  57. if wl_status['main'] = 6 and wl_police['timer'] < daystart and hour > 6 and hour < 19 and week ! 7:
  58. gt 'mod_wlife_story', 'police_aftermath'
  59. elseif ((wl_georgiy['timer_day'] ! 0 and (wl_georgiy['timer_day'] + 7) < daystart) or (wl_georgiy['timer_day'] = 0 and wl_status['main'] = 5 and (wl_timer['main'] + 6) < daystart)) and hour > 6 and hour < 23:
  60. gt 'mod_wlife_georgiy', 'check_in'
  61. elseif wl_homeless['video_count'] > 0 and wl_adrian['status'] = 1 and wl_adrian['timer'] < daystart and hour > 14 and hour < 20 and sunWeather > 0:
  62. gt 'mod_wlife_punishment', 'adrian_first_0'
  63. elseif wl_adrian['status'] = 2 and wl_adrian['timer'] < daystart and hour > 14 and hour < 20 and sunWeather > 0:
  64. gt 'mod_wlife_punishment', 'adrian_second_0'
  65. end
  66. end
  67. if wl_status['main'] > 9 and wl_whore['pav_timer_hour'] ! hour and rand(-20,70) < minut and $curloc ! 'mod_wlife_solicitation' and $curloc ! 'shop' and menu_off = 0 and $loc = $curloc: gs 'mod_wlife_solicitation', 'chance'
  68. !!Clinic
  69. if wl_medical['timer_week'] = 2 and week = 1:
  70. wl_medical['timer_week'] = 1
  71. wl_medical['timer_day'] = daystart
  72. elseif wl_medical['timer_week'] = 1 and week = 1 and wl_medical['timer_day'] ! daystart:
  73. wl_medical['timer_week'] = 0
  74. elseif week > 1 and week < 7 and $loc = 'pav_clinic' and $menu_arg = '' and menu_off = 0:
  75. if wl_medical['status'] = 1:
  76. act 'Visit Doctor Mikhailov': gt 'mod_wlife_clinic', 'first_visit'
  77. elseif wl_medical['status'] > 1 and wl_medical['timer_week'] = 0:
  78. act 'Go to your bi-weekly medical examination': wl_temp = 0 & gt 'mod_wlife_clinic', 'check'
  79. elseif wl_medical['status'] > 1 and (pcs_apprnc = -10 or cumcondslip > 0 or (thinkpreg = 1 and knowpreg = 0 and preg = 1)):
  80. act 'Visit Doctor Mikhailov': wl_temp = 1 & gt 'mod_wlife_clinic', 'check'
  81. end
  82. if wl_medical['status'] > 1:
  83. if knowpreg = 1 and preg = 1 and pregchem < 1863: act 'Get an abortion': wl_temp = 2 & gt 'mod_wlife_clinic', 'abortion'
  84. if SchoolAtestat = 0 and Gspravka < 3 and motherKnowSpravka = 0: act 'Ask Doctor Mikhailov for a referral': wl_temp = 3 & gt 'mod_wlife_clinic', 'check'
  85. end
  86. end
  87. !!Locations
  88. if menu_off = 0 and $loc = 'pav_complex' and $metka = 'start' and $menu_arg ! 'garages' and wl_volya['apartment'] = 1:
  89. if (wl_status['main'] < 9 and $wl_virgin = 'asked' and (pcs_vag = 0 or anal = 0)) or (((hour = 18 and minut >= 30) or hour = 19) and wl_demand['party'] = 1 and wl_georgiy['timer_week'] = week):
  90. '<br>The apartment where <a href="exec: minut += 2 & gt ''mod_wlife_volya'', ''apartment_entrance''">Volya</a> lives is nearby.'
  91. act 'Visit Volya': minut += 2 & gt 'mod_wlife_volya', 'apartment_entrance'
  92. elseif $curloc ! 'mod_wlife_solicitation' and menu_off = 0:
  93. '<br>You don''t have a reason to visit Volya right now.'
  94. end
  95. elseif $loc = 'pav_industrial' and $menu_loc = 'pav_industrial' and $menu_arg = '' and $ARGS[0] = '' and menu_off = 0 and wl_status['main'] > 4:
  96. '<br>A street leads to Vadim Bely''s <a href="exec: minut += 5 & gt ''mod_wlife_warehouse'', ''street''">warehouse</a>.'
  97. elseif $loc = 'pav_park' and $menu_loc = 'pav_park' and $menu_arg = 'start' and $metka = 'start' and menu_off = 0 and wl_drugs['status'] > 0 and hour > 21:
  98. '<br>'+iif(wl_drugs['status'] = 1, 'A young man', 'Sacha')+' is selling <a href="exec: minut += 2 & gt ''mod_wlife_sacha'', ''park''">weed</a> for Shura near one of the gates.'
  99. elseif $curloc = 'shop' and $shoplocation = 'main' and hour > 7 and hour < 21:
  100. if wl_status['usb'] = 1: gs 'mod_wlife_misc', 'usb_drive'
  101. if wl_status['hotel'] = 1 and wl_status['coffee_maker'] = 1:
  102. gs 'mod_wlife_misc', 'coffee_maker'
  103. elseif wl_status['coffee_maker'] = 2:
  104. gs 'mod_wlife_misc', 'coffee'
  105. end
  106. elseif ($curloc = 'Komp' or $curloc = 'komp') and wl_investigation['maxim'] = 4 and $ARGS[0] = 'start' and $loc ! 'shulga_room' and $loc ! 'anushapt' and $loc ! 'artemhome':
  107. gs 'mod_wlife_misc', 'komp_maxim'
  108. elseif $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $metka = 'outside' and $menu_arg = 'outside' and menu_off = 0 and wl_georgiy['payment_method'] = 1 and PCloStyle = 4 and ShoHeels > 3:
  109. '<br>You can take a bus at the local terminal to the '+iif(money < 75, 'gas station', '<a href="exec: minut += 35 & money -= 75 & gt ''mod_wlife_highway'', ''outside''">gas station</a>')+' near the highway between St. Petersburg and Moscow. The bus ride and a short walk to the gas station will take 35 minutes and cost 75 <b>₽</b>.'+iif(money < 75, ' You don''t have enough money.', '')
  110. elseif $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $metka = 'outside' and $menu_arg = 'outside' and menu_off = 0 and wl_georgiy['payment_method'] = 1 and (PCloStyle ! 4 or ShoHeels < 4):
  111. '<br>You could take the bus to the gas station, but you need to wear high heels and appropriate clothing to work there.'
  112. end
  113. !!Location Checks
  114. if menu_off = 0 and $loc = $wl_loc[0] and $metka = $wl_loc[1] and $menu_arg ! 'garages':
  115. if wl_status['main'] >= 5 and wl_whore['shifts_message'] = 1 and wl_whore['pirsA'] = 0:
  116. if hour = 16 and PCloStyle = 4 and ShoHeels > 3:
  117. !!ToDo: Activate if done if wl_party['status'] > 1 and wl_vadim['timer'] < daystart: gt 'mod_wlife_vadim', 'pick_up'
  118. 'Volya is waiting for you in his <a href="exec: minut += 1 & gt ''mod_wlife_volya'', ''shift_start''">car</a>.'
  119. elseif hour = 16 and (PCloStyle ! 4 or ShoHeels < 4):
  120. 'Volya is waiting for you in his car, but you have to wear an appropriate outfit and heels.'
  121. elseif hour < 16:
  122. 'Volya will pick you up between 16:00 and 17:00. You''ll have to wear an appropriate outfit and heels.'
  123. end
  124. elseif wl_status['main'] >= 5 and wl_whore['shifts_message'] = 1 and wl_whore['pirsA'] > 0:
  125. if hour = 16 and PCloStyle = 4 and ShoHeels > 3 and pirsA < 10000:
  126. 'Volya is waiting for you in his <a href="exec: minut += 1 & gt ''mod_wlife_volya'', ''shift_start''">car</a>.'
  127. elseif hour = 16 and (PCloStyle ! 4 or ShoHeels < 4 or pirsA = 10000):
  128. 'Volya is waiting for you in his car, but you have to wear an appropriate outfit, heels and your tongue piercing.'
  129. elseif hour < 16:
  130. 'Volya will pick you up between 16:00 and 17:00. You''ll have to wear an appropriate outfit, heels and your tongue piercing.'
  131. end
  132. end
  133. elseif (($menu_loc = 'HotelHole' and $menu_arg = '') or ($loc = 'mod_wlife_hotelroom' and $metka = 'room')) and menu_off = 0:
  134. if wl_okoro['week'] = week and hour < 22:
  135. '<br>Léon will be back in his hotel room at 22:00.'
  136. elseif wl_okoro['week'] = week and hour > 21:
  137. act 'Go to Léon''s room': minut += 3 & gt 'mod_wlife_okoro', 'leon_hotel'
  138. end
  139. if wl_maxim['week'] = week and hour < 21:
  140. '<br>Maxim will be back in his hotel room at 21:00.'
  141. elseif wl_maxim['week'] = week and hour > 20:
  142. act 'Go to Maxim''s room': minut += 3 & gt 'mod_wlife_maxim', 'start'
  143. end
  144. elseif ($loc = 'koorpar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x') and wl_status['school_grades'] > 10 and wl_status['school_grades_warning'] = 0 and menu_off = 0:
  145. elseif ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar') and wl_mother['knows'] = 1 and wl_status['hotel'] = 0:
  146. gt 'mod_wlife_mother', 'mother_knows'
  147. elseif ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar') and wl_status['school_expelled'] = 1 and wl_status['hotel'] = 0:
  148. gt 'mod_wlife_mother', 'mother_school'
  149. elseif ((wl_mother['clothes_timer_inside'] ! daystart and ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar') and $metka = '' and hour = 16 and minut < 45 and mother_go = 0) or (wl_mother['clothes_timer_outside'] ! daystart and $loc = 'pav_complex' and $metka = 'start' and ((hour = 15 and minut > 30 and mother_go = 0) or (hour = 16 and minut > 30 and mother_go = 1)))) and menu_off = 0 and wl_whore['shifts_message'] = 1 and indorf = 0 and week < 7 and PCloStyle = 4 and wl_mother['acceptance_clothes'] < 2 and wl_mother['clothes_timer'] ! daystart:
  150. if $loc = 'pav_complex':
  151. wl_mother['clothes_timer_outside'] = daystart
  152. else
  153. wl_mother['clothes_timer_inside'] = daystart
  154. end
  155. if rand(1,100) > (90 - wl_mother['clothes_chance']):
  156. wl_mother['clothes_chance'] = 0
  157. gt 'mod_wlife_mother', 'mother_shift_start'
  158. else
  159. wl_mother['clothes_chance'] += rand(3,6)
  160. end
  161. elseif wl_status['main'] > 8 and wl_iosif['tattoo'] = 1 and tatvag = 0 and $loc = 'pav_residential' and $menu_loc = 'pav_residential' and $menu_arg = '' and $metka = '' and menu_off = 0 and (((hour = 7 or hour = 8) and kanukuli = 0 and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6) or (hour > 6 and (SchoolBlock > 0 or SchoolAtestat > 0))):
  162. gt 'mod_wlife_tattoo_piercing', 'tattoo_0'
  163. end
  164. !!Checks:
  165. if wl_prison['status'] = 1 and wl_prison['shift'] = 0 and week = 7 and hour < 20 and wl_bad['prison'] = 0:
  166. !!ToDo: This prison variable has to updated if more prison days are done
  167. wl_bad['prison'] = 1
  168. elseif wl_status['main'] >= 5 and wl_whore['shifts_message'] = 1 and hour > 16 and menu_off = 0:
  169. gt 'mod_wlife_phone', 'volya_missed'
  170. end
  171. !!Story & Phone/Menu
  172. if wl_status['start'] = 0 and wl_status['main'] = 0 and storyline = 1:
  173. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  174. if pcs_inhib > 10:
  175. pl 'To start ''Whore Life'' read the newspaper on your parents kitchen table.'
  176. if ($loc = 'kuhrPar' or $loc = 'mod_BroMod_kuhrPar') and menu_off = 0: '<br>On the kitchen table lies the <a href="exec: gt ''mod_wlife_story'', ''start_0''">current edition</a> of the local newspaper.'
  177. else
  178. pl 'Your inhibition is too high at the moment for the mod to start ''Whore Life'', it needs to be below 90.'
  179. end
  180. elseif wl_status['start'] > 0 and wl_status['main'] = 0:
  181. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  182. pl 'Continue with your life in Pavlovsk...'
  183. elseif wl_status['main'] = 2 and hour > 7 and wl_timer['main'] ! daystart and rand(0,2) = 1 and menu_off = 0:
  184. gt 'mod_wlife_phone', 'start_aftermath_picture'
  185. elseif wl_status['main'] = 3 and hour > 14 and hour < 23 and wl_timer['main'] ! daystart and rand(0,2) = 1 and menu_off = 0:
  186. wl_timer['main'] = daystart
  187. gt 'mod_wlife_phone', 'start_aftermath_volya'
  188. elseif wl_status['main'] = 2 or wl_status['main'] = 3:
  189. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  190. pl 'Wait for Volya to call you.'
  191. elseif wl_status['main'] = 4 and week = 1 and wl_timer['main'] ! daystart:
  192. wl_timer['startday'] = daystart
  193. wl_timer['main'] = daystart
  194. wl_status['main'] = 5
  195. elseif wl_status['main'] = 4 and (week ! 1 or (wl_timer['main'] = daystart and week = 1)):
  196. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  197. pl 'Your new life as a whore will begin '+iif(week = 7, 'tomorrow.', 'next monday.')
  198. elseif wl_thought['homeless'] = 1 and wl_homeless['video_count'] = 0 and wl_homeless['timer'] ! daystart and hour > 14 and menu_off = 0:
  199. gt 'mod_wlife_phone', 'homeless_aftermath'
  200. elseif wl_okoro['week'] = week and wl_okoro['timer'] ! daystart and InSleep = 0 and menu_off = 0:
  201. gt 'mod_wlife_phone', 'leon_reminder'
  202. elseif $wl_brand['type'] ! '' and wl_brand['timer'] < daystart and wl_passport_pay = 0 and hour > 14 and menu_off = 0:
  203. gt 'mod_wlife_phone', 'passport_pay'
  204. elseif wl_status['main'] >= 5 and $curloc ! 'mod_wlife_phone' and $curloc ! 'phone_selfies':
  205. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  206. if week < 7 and wl_georgiy['payment_method'] = 1:
  207. pl 'You have to pay Georgiy <<wl_georgiy[''lump_sum'']>> <b>₽</b> every Sunday.'
  208. elseif week < 7 and wl_georgiy['payment_method'] = 0:
  209. pl 'You have to work <<wl_whore[''shifts_week'']>> shifts for Mr. Bely and have worked <<wl_whore[''shifts_done'']>> this week.'+iif(wl_whore['shifts_message'] = 0, ' If you want to work at the gas station, you have to send Volya a message before 16:00.', iif(hour < 17, '<br>Volya will pick you up in <<$wl_loc[2]>> between 16:00 and 17:00.', ''))
  210. elseif week = 7 and wl_georgiy['timer_day'] ! daystart:
  211. pl 'You have to report to Georgiy after 20:00 at the warehouse. You '+iif(wl_georgiy['payment_method'] = 0, iif(wl_whore['shifts_done'] < wl_whore['shifts_week'], 'haven''t', 'have')+' fulfilled this weeks obligation.', 'have to pay him <<wl_georgiy[''lump_sum'']>> <b>₽</b>.')
  212. elseif week = 7 and wl_georgiy['timer_day'] = daystart and wl_georgiy['payment_method'] = 0:
  213. pl 'You have reported to Georgiy. Next week you have to work <<wl_whore[''shifts_week'']>> shifts.'
  214. end
  215. if wl_georgiy['timer_week'] > week and wl_demand['party'] = 1:
  216. pl 'You have to go to the party at Vadim Bely''s house next Saturday.'
  217. elseif wl_georgiy['timer_week'] = week and wl_demand['party'] = 1 and wl_party_warning_day ! daystart and hour > 12 and hour < 19 and menu_off = 0:
  218. gt 'mod_wlife_phone', 'volya_party_warning'
  219. elseif wl_georgiy['timer_week'] = week and wl_demand['party'] = 1:
  220. pl '<font color="red">You have to go to Volya''s apartment today (19:00) to get ready for the party at Vadim Bely''s house</font>.'
  221. end
  222. $wl_status_msg = '<br><center><table><tr>'
  223. if menu_off = 0:
  224. $wl_status_msg += '<td><a href="exec: minut += 1 & gt ''mod_wlife_phone'', ''start''"><img title="Click to open up the phone/menu of the mod." height = 80 src="mod/wlife/images/objects/phone_allowed'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></a></td>'
  225. else
  226. $wl_status_msg += '<td><img title="You have no time to use your phone at the moment." height = 80 src="mod/wlife/images/objects/phone_forbidden'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></td>'
  227. end
  228. if wl_debt['amount'] > 0:
  229. $wl_debt_tooltip = 'You owe <<wl_debt[''amount'']>> ₽.'
  230. $wl_debt_msg = $wl_debt_tooltip + iif(wl_georgiy['payment_method'] = 0, ' Your share of your income is reduced by 20 percentage points until you have paid your debts.', '')
  231. $wl_status_msg += '<td><a href="exec: msg $wl_debt_msg"><img title="<<$wl_debt_tooltip>>" height = 80 src="mod/wlife/images/objects/debt'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></a></td>'
  232. end
  233. if wl_medical['timer_week'] = 0 and wl_medical['status'] = 1:
  234. $wl_status_msg += '<td><a href="exec: msg ''You have to go to Doctor Mikhailov. You can find him in his office at the small clinic in Pavlovsk from Tuesday till Saturday.''"><img title="You have to visit Doctor Mikhailov at the clinic in Pavlovsk." height = 80 src="mod/wlife/images/objects/doc'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></a></td>'
  235. elseif wl_medical['timer_week'] = 0 and wl_medical['status'] > 1:
  236. $wl_status_msg += '<td><a href="exec: msg ''You have to go to your bi-weekly medical examination. You can find Doctor Mikhailov in his office at the small clinic in Pavlovsk from Tuesday till Saturday.''"><img title="You have to go to your bi-weekly medical exam." height = 80 src="mod/wlife/images/objects/doc'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></a></td>'
  237. end
  238. if wl_iosif['timer'] = 1 and wl_iosif['timer_call'] = daystart: $wl_status_msg += '<td><a href="exec: msg ''You have to go to the warehouse tonight (23:00) to meet up with Iosif.''"><img title="You have to go to the warehouse tonight (23:00) to meet up with Iosif." height = 80 src="mod/wlife/images/objects/info'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></a></td>'
  239. if wl_okoro['status'] = 6 and wl_okoro['week'] = week: $wl_status_msg += '<td><a href="exec: msg ''You can go to the hotel near the train station tonight (22:00) to meet Léon Okoro.''"><img title="You can go to the hotel near the train station tonight (22:00) to meet Léon Okoro." height = 80 src="mod/wlife/images/objects/info'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></a></td>'
  240. if wl_maxim['status'] > 2 and wl_maxim['week'] = week:
  241. $wl_status_msg += '<td><a href="exec: msg ''You can go to the hotel near the train station tonight (21:00) to meet Maxim.''"><img title="You can go to the hotel near the train station tonight (21:00) to meet Maxim." height = 80 src="mod/wlife/images/objects/info'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></a></td>'
  242. elseif wl_maxim['week'] > week and wl_maxim['day'] ! daystart:
  243. wl_maxim['week'] = 0
  244. end
  245. if wl_georgiy['payment_method'] = 1 and PCloStyle = 4 and ShoHeels > 3 and (($metka = 'street' and $loc = 'mod_wlife_warehouse') or ($metka = '' and ($loc = 'pav_commcenter' or $loc = 'pav_residential' or $loc = 'pav_industrial' or $loc = 'pav_commercial' or $loc = 'pav_train' or $loc = 'liam')) or ($metka = 'start' and ($loc = 'pav_complex' or $loc = 'pav_park'))) and hour > 6 and hour < 23 and $curloc ! 'shop' and menu_off = 0 and $loc = $curloc:
  246. $wl_status_msg += '<td><a href="exec: gt ''mod_wlife_solicitation'', ''search''"><img title="Click to start working in Pavlovsk." height = 80 src="mod/wlife/images/objects/prostitute.png"></a></td>'
  247. end
  248. if wl_whore['pirsA'] = 0:
  249. if PCloStyle = 4 and ShoHeels > 3: $wl_status_msg += '<td><img title="Your outfit suits a whore perfectly." height = 80 src="mod/wlife/images/objects/whore'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></td>'
  250. else
  251. if PCloStyle = 4 and ShoHeels > 3 and pirsA = wl_whore['pirsA']: $wl_status_msg += '<td><img title="Your outfit suits a whore perfectly." height = 80 src="mod/wlife/images/objects/whore'+iif(night_mode ! 3 and (($location_type = 'public_outdoors' and daystage = 5) or night_mode = 1 or night_mode = 2), '_night', '')+'.png"></td>'
  252. end
  253. $wl_status_msg += '</tr></table></center><br><br>'
  254. pl $wl_status_msg
  255. end
  256. !!School
  257. if wl_status >= 5 and wl_status['school_expelled'] = 0 and SchoolBlock = 0 and SchoolAtestat < 1:
  258. if schoolprogul > 0:
  259. pcs_grades -= 5
  260. schoolprogul = 0
  261. wl_status['school_skip'] += 1
  262. elseif wl_status['school_skip'] = 9:
  263. wl_status['school_expelled'] = 1
  264. elseif schoolPredupr > 0:
  265. schoolPredupr = 0
  266. end
  267. if pcs_grades < 20 and wl_status['school_timer'] ! daystart and kanikuli = 0 and week < 6 and wl_status['school_grades'] < 20:
  268. wl_status['school_grades'] += 1
  269. wl_status['school_timer'] = daystart
  270. elseif wl_status['school_grades'] = 20 and wl_status['school'] = 0:
  271. wl_status['school_expelled'] = 1
  272. end
  273. end
  274. if ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x') and wl_status['school_expelled'] < 2:
  275. if wl_status['school_grades'] > 9 and wl_status['school_grades_warning'] = 0 and menu_off = 0:
  276. gt 'mod_wlife_misc', 'school_grades'
  277. elseif wl_status['school_skip'] > ((wl_status['school_skip_warning'] * 3) + 2) and wl_status['school_skip_warning'] < 2 and menu_off = 0:
  278. gt 'mod_wlife_misc', 'school_skip'
  279. elseif wl_status['school_expelled'] = 1:
  280. gt 'mod_wlife_misc', 'school_expelled'
  281. end
  282. end
  283. !!Iosif and Maxim checks
  284. if wl_iosif['timer'] = 1 and hour > 8 and hour < 16 and menu_off = 0 and wl_iosif['timer_call'] ! daystart:
  285. gt 'mod_wlife_phone', 'iosif_missed'
  286. elseif wl_iosif['call_avoid'] > 2 and hour > 8 and hour < 16 and menu_off = 0:
  287. gt 'mod_wlife_phone', 'iosif_avoid'
  288. elseif wl_iosif['status'] = 3 and wl_iosif['timer_whore'] < daystart and wl_iosif['timer'] ! 1 and hour > 14 and hour < 21 and rand(0,2) = 1 and menu_off = 0 and wl_georgiy['timer_week'] ! week:
  289. gt 'mod_wlife_phone', 'iosif_work_first'
  290. elseif wl_iosif['status'] > 3 and wl_iosif['timer_whore'] < daystart and wl_iosif['timer'] ! 1 and hour > 14 and hour < 21 and rand(0,2) = 1 and menu_off = 0 and wl_georgiy['timer_week'] ! week:
  291. gt 'mod_wlife_phone', 'iosif_work_regular'
  292. elseif wl_pictures['iosif_3'] = 1 and hour > 20 and menu_off = 0:
  293. gt 'mod_wlife_phone', 'iosif_party_pic'
  294. elseif wl_maxim['status'] > 1 and wl_maxim['timer'] < daystart and hour > 13 and hour < 22 and week > 1 and week < 5 and menu_off = 0:
  295. gt 'mod_wlife_maxim', 'call'
  296. end
  297. !!Thoughts & Okoro phone calls
  298. if (($curloc = 'bed2' and $menu_loc = 'bed2') or ($curloc = 'mod_BroMod_bed2' and $menu_loc = 'mod_BroMod_bed2')) and $menu_arg = '' and menu_off = 0 and InSleep = 0 and (hour > 19 or hour < 8) and wl_thought['timer'] ! daystart:
  299. if (wl_timer['startday'] + 14) < daystart and wl_thought['whore'] = 0 and wl_thought['timer_whore'] < daystart and wl_status['main'] > 4:
  300. gt 'mod_wlife_thoughts', 'whore_0'
  301. elseif wl_medical['status'] = 2 and wl_thought['pissing'] = 0 and wl_thought['timer_pissing'] < daystart and $wl_fetish['pissing'] ! 'blocked':
  302. gt 'mod_wlife_thoughts', 'pissing'
  303. elseif wl_thought['rimjob'] = 1:
  304. gt 'mod_wlife_thoughts', 'rim_whore'
  305. elseif wl_passport = 1 and wl_thought['passport'] = 0:
  306. gt 'mod_wlife_thoughts', 'passport'
  307. elseif wl_volya['status'] = 3:
  308. gt 'mod_wlife_thoughts', 'volya_car_bj'
  309. elseif wl_volya['status'] = 5 and wl_volya['relationship'] = 1:
  310. gt 'mod_wlife_thoughts', 'volya_car_sex'
  311. elseif wl_volya['status'] = 5 and wl_volya['relationship'] ! 1:
  312. wl_volya['status'] = 6
  313. elseif wl_shura['status'] = 9:
  314. gt 'mod_wlife_thoughts', 'shura_bj'
  315. elseif wl_iosif['pissing'] = 1 and $wl_fetish['pissed_on'] = '':
  316. gt 'mod_wlife_thoughts', 'piss_whore'
  317. elseif wl_homeless['status'] > 1 and wl_thought['homeless'] = 0:
  318. gt 'mod_wlife_thoughts', 'homeless_aftermath'
  319. elseif wl_thought['atm'] = 1 and wl_thought['timer_atm'] < daystart:
  320. gt 'mod_wlife_thoughts', 'ass_to_mouth'
  321. !!ToDo: Prostitution in pavlovsk
  322. !! elseif wl_thought['pav_total'] > 0 and wl_thought['pav_prost'] = 0:
  323. !! gt 'mod_wlife_thoughts', 'pav_prost'
  324. elseif wl_thought['sacha'] = 0 and wl_sacha['status'] = 2:
  325. gt 'mod_wlife_thoughts', 'sacha'
  326. elseif wl_okoro['status'] = 2 and (wl_timer['startday'] + 49) < daystart and wl_okoro['timer'] ! daystart and week ! 7:
  327. gt 'mod_wlife_phone', 'okoro'
  328. end
  329. end
  330. if pav_prostitute >= 50 and wl_whore['pav_timer_hour'] ! hour and (rand(-20,70) - (pav_prostitute/5)) < minut and $curloc ! 'mod_wlife_solicitation' and $curloc ! 'shop' and menu_off = 0 and $loc = $curloc: gs 'mod_wlife_solicitation', 'chance'
  331. if pav_prostitute >= 100 and pcs_inhib > 60 and PCloStyle = 4 and ShoHeels > 3 and (($metka = 'street' and $loc = 'mod_wlife_warehouse') or ($metka = '' and ($loc = 'gdk' or $loc = 'pav_residential' or $loc = 'pav_industrial' or $loc = 'pav_commercial' or $loc = 'pavtrain' or $loc = 'liam')) or ($metka = 'start' and ($loc = 'pav_complex' or $loc = 'pav_park'))) and hour > 6 and hour < 23 and $curloc ! 'shop' and menu_off = 0 and $loc = $curloc:
  332. pl '<center><a href="exec: gt ''mod_wlife_solicitation'', ''search''"><img title="Click to start working in Pavlovsk." height = 80 src="mod/wlife/images/objects/prostitute.png"></a></center>'
  333. act 'Search for clients': gt 'mod_wlife_solicitation', 'search'
  334. end
  335. end
  336. !!Removes the vanilla Vadim Bely
  337. if npc_QW['A113'] ! 2:
  338. npc_QW['A113'] = 2
  339. killvar 'belfirstweek'
  340. killvar 'belgangPay'
  341. killvar 'daybelixsex'
  342. killvar 'belgangday'
  343. killvar 'belgangPayweekAmount'
  344. killvar 'belgangPayweek'
  345. killvar 'belgangPayextension'
  346. killvar 'belgangProstitute'
  347. end
  348. !!Blocks vanilla prostitution event in the residential area
  349. if pav_residential_prost_day ! daystart: pav_residential_prost_day = daystart
  350. --- mod_wlife ---------------------------------