mod_wlife.qsrc 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. # mod_wlife
  2. !!Inhibition Fix
  3. if wl_inhib_fix > pcs_inhib: inhib_exp += 10
  4. !! Family dog
  5. if $status['dog'] ! 'blocked' and menu_off = 0:
  6. if ((($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x') and $loc_arg = '') or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and rex['status'] = 0:
  7. gt 'mod_wlife_rex', 'name'
  8. elseif ((($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x') and $loc_arg = '') or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and hour > 5 and $curloc = $loc:
  9. if STRPOS($MAINTXT,"'pet_dog'") > 0:
  10. $temp = replace($MAINTXT,"'pet_dog'","'mod_wlife_rex'")
  11. *clr
  12. $temp
  13. else
  14. '<br>Your dog <a href="exec: gt ''mod_wlife_rex'', ''start''"><<$rex[''name'']>></a> is lying on the floor.<br>'
  15. end
  16. elseif ((($loc = 'mod_BroMod_korrPar') and $loc_arg = '') or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and hour < 6 and $curloc = $loc:
  17. '<br><<$rex[''name'']>> is sleeping in his dog basket.<br>'
  18. elseif $loc = 'gaddvor' and $loc_arg = '' and hour > 7 and hour < 20:
  19. if rex['gadukino_day'] ! daystart:
  20. rex['relationship'] += 2
  21. rex['gadukino_day'] = daystart
  22. end
  23. '<br><a href="exec: gt ''mod_wlife_rex'', ''gadukino''"><<$rex[''name'']>></a> is running around in the garden.'
  24. end
  25. if $curloc = 'shop' and $shoplocation = 'main' and hour > 7 and hour < 21: gs 'mod_wlife_misc', 'dog_items'
  26. end
  27. if (locat['Fam_inGad'] = 0 and (locat['Mom_athome'] = 1 or locat['Mother'] = 1 or locat['Fam_livingroom'] = 1)) or ((locat['Anya_Gad'] = 0 and (locat['Anya'] < 6 or locat['Anya'] = 9 or locat['Anya'] = 11 or locat['Anya'] = 12 or locat['Anya'] = 15 or locat['Anya'] = 16 or locat['Anya'] = 19 or locat['Anya'] = 23 or locat['Anya_inroom'] = 1))):
  28. wl_status['apartment_empty'] = 0
  29. else
  30. wl_status['apartment_empty'] = 1
  31. end
  32. if rex['timer_day'] ! daystart and $status['dog'] ! 'blocked': gs 'mod_wlife_functions', 'rex_status'
  33. !!Weekly Timer
  34. if week = 1 and wl_timer['week_check'] ! daystart:
  35. wl_timer['week'] += 1
  36. wl_timer['week_check'] = daystart
  37. if wl_status['hotel'] = 1:
  38. if wl_status['hotel_bill'] > 0 and karta > wl_status['hotel_bill']:
  39. karta -= wl_status['hotel_bill']
  40. '<br> <<wl_status[''hotel_bill'']>> <b>₽</b> was automatically debited from your bank account to pay your hotel bill.'
  41. elseif wl_status['hotel_bill'] > 0 and wl_status['hotel_bill'] > 0 and wl_status['main'] > -1:
  42. wl_debt['amount'] += wl_status['hotel_bill']
  43. '<br> <<wl_status[''hotel_bill'']>> <b>₽</b> was added to your debt to pay your hotel bill.'
  44. end
  45. hotelRoomDays['pav_hotel'] += 7
  46. if hotelroom ! 1: hotelroom = 1
  47. if home_owned[6] ! 1: home_owned[6] = 1
  48. wl_status['hotel_bill'] = 3500
  49. end
  50. end
  51. !!Condoms
  52. wl_status['condoms'] = prezik + prezikcount
  53. !!Location Checks
  54. if wl_status['hotel'] = 1 and $loc = 'HotelRoom':
  55. gt 'mod_wlife_hotelroom', 'start'
  56. elseif wl_status['hotel'] = 1 and $loc = 'pav_market' and $loc_arg = '' and menu_off = 0 and $curloc = $loc:
  57. act 'Go to your hotel room': minut += 2 & gt 'mod_wlife_hotelroom', 'start'
  58. elseif $curloc = 'gschool_lessons4' and $ARGS[0] = 'shower2' and $wl_brand['text_pubic'] ! '':
  59. gs 'mod_wlife_misc', 'school_shower'
  60. elseif $wl_fetish['piss_drinking'] = 'yes' and wl_timer['pissing_self'] ! daystart and ($loc = 'vanrPar' or $loc = 'vanr2x' or $loc = 'vanr' or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'bathroom')):
  61. '<br>You could take a few minutes to <a href="exec: gt ''mod_wlife_misc_sex'', ''piss_self_0''">piss on yourself</a> before taking a shower or a bath.'
  62. end
  63. if wl_status['main'] = -1:
  64. if $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $loc_arg = 'outside' and $menu_arg = 'outside' and menu_off = 0:
  65. '<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.', '')
  66. elseif $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $loc_arg = 'outside' and $menu_arg = 'outside' and menu_off = 0 and (PCloStyle ! 4 or ShoHeels < 4):
  67. '<br>You could take the bus to the gas station, but you need to wear high heels and appropriate clothing to work there.'
  68. elseif wl_homeless['status'] > 0 and $loc = 'pav_industrial' and $menu_loc = 'pav_industrial' and $menu_arg = '' and $ARGS[0] = '' and menu_off = 0:
  69. '<br>Go to the <a href="exec: minut += 8 & gt ''mod_wlife_warehouse'', ''homeless_outside''">homeless</a>.'
  70. end
  71. 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'
  72. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  73. pl 'To restore ''Whore Life'' <a href="exec: gs ''mod_wlife_cheatmenu'', ''restore'' & gs ''stat''">click here</a>.'
  74. if wl_georgiy['payment_method'] = 1 and PCloStyle = 4 and ShoHeels > 3 and (($loc_arg = 'street' and $loc = 'mod_wlife_warehouse') or ($loc_arg = '' and ($loc = 'pav_commcenter' or $loc = 'pav_residential' or $loc = 'pav_industrial' or $loc = 'pav_commercial' or $loc = 'pav_market' or $loc = 'liam')) or ($loc_arg = '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:
  75. 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>'
  76. end
  77. elseif wl_status['main'] > -1:
  78. !!Street Events
  79. 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:
  80. if wl_status['start'] = 1:
  81. gt 'mod_wlife_story', 'start_1'
  82. elseif wl_status['start'] = 2:
  83. gt 'mod_wlife_story', 'start_2'
  84. elseif wl_status['start'] = 3:
  85. gt 'mod_wlife_story', 'start_3'
  86. elseif wl_status['start'] = 4 and week < 7:
  87. gt 'mod_wlife_story', 'start_4'
  88. end
  89. 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 $loc_arg = '' and menu_off = 0 and (((hour = 7 or hour = 8) and kanikuli = 0 and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6) or (hour > 6 and (SchoolBlock > 0 or SchoolAtestat > 0))):
  90. gt 'mod_wlife_tattoo_piercing', 'tattoo_0'
  91. 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:
  92. if wl_status['main'] = 6 and wl_police['timer'] < daystart and hour > 6 and hour < 19 and week ! 7:
  93. gt 'mod_wlife_story', 'police_aftermath'
  94. 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:
  95. gt 'mod_wlife_georgiy', 'check_in'
  96. 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:
  97. gt 'mod_wlife_punishment', 'adrian_first_0'
  98. elseif wl_adrian['status'] = 2 and wl_adrian['timer'] < daystart and hour > 14 and hour < 20 and sunWeather > 0:
  99. gt 'mod_wlife_punishment', 'adrian_second_0'
  100. end
  101. end
  102. 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'
  103. !!Clinic
  104. if wl_medical['timer_week'] = 2 and week = 1:
  105. wl_medical['timer_week'] = 1
  106. wl_medical['timer_day'] = daystart
  107. elseif wl_medical['timer_week'] = 1 and week = 1 and wl_medical['timer_day'] ! daystart:
  108. wl_medical['timer_week'] = 0
  109. elseif week > 1 and week < 7 and $loc = 'pav_clinic' and $menu_arg = '' and menu_off = 0:
  110. if wl_medical['status'] = 1:
  111. act 'Visit Doctor Mikhailov': gt 'mod_wlife_clinic', 'first_visit'
  112. elseif wl_medical['status'] > 1 and wl_medical['timer_week'] = 0:
  113. act 'Go to your bi-weekly medical examination': wl_temp = 0 & gt 'mod_wlife_clinic', 'check'
  114. elseif wl_medical['status'] > 1 and (pcs_apprnc = -10 or cumcondslip > 0 or (thinkpreg = 1 and knowpreg = 0 and preg = 1)):
  115. act 'Visit Doctor Mikhailov': wl_temp = 1 & gt 'mod_wlife_clinic', 'check'
  116. end
  117. if wl_medical['status'] > 1:
  118. if knowpreg = 1 and preg = 1 and pregchem < 1863: act 'Get an abortion': wl_temp = 2 & gt 'mod_wlife_clinic', 'abortion'
  119. if SchoolAtestat = 0 and Gspravka < 3 and motherKnowSpravka = 0 and home_owned[2] = 1: act 'Ask Doctor Mikhailov for a referral': wl_temp = 3 & gt 'mod_wlife_clinic', 'check'
  120. end
  121. end
  122. !!Location Checks 1
  123. if menu_off = 0 and $loc = 'pav_complex' and $loc_arg = 'start' and $menu_arg ! 'garages' and wl_volya['apartment'] = 1:
  124. 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):
  125. '<br>The apartment where <a href="exec: minut += 2 & gt ''mod_wlife_volya'', ''apartment_entrance''">Volya</a> lives is nearby.'
  126. act 'Visit Volya': minut += 2 & gt 'mod_wlife_volya', 'apartment_entrance'
  127. elseif $curloc ! 'mod_wlife_solicitation' and menu_off = 0:
  128. '<br>You don''t have a reason to visit Volya right now.'
  129. end
  130. elseif $loc = 'pav_industrial' and $menu_loc = 'pav_industrial' and $menu_arg = '' and $ARGS[0] = '' and menu_off = 0 and wl_status['main'] > 4:
  131. '<br>A street leads to Vadim Bely''s <a href="exec: minut += 5 & gt ''mod_wlife_warehouse'', ''street''">warehouse</a>.'
  132. elseif $loc = 'pav_park' and $menu_loc = 'pav_park' and $menu_arg = 'start' and $loc_arg = 'start' and menu_off = 0 and wl_drugs['status'] > 0 and hour > 21:
  133. '<br>'+iif(wl_drugs['status'] = 1, 'A young man', 'Sacha')+' is selling <a href="exec: minut += 2 & gt ''mod_wlife_sacha'', ''park''">'+iif(wl_sacha['cocaine_talk'] = 0, 'weed', 'drugs')+'</a> for Shura near one of the gates.'
  134. elseif $curloc = 'shop' and $shoplocation = 'main' and hour > 7 and hour < 21:
  135. if wl_status['usb'] = 1: gs 'mod_wlife_misc', 'usb_drive'
  136. if wl_status['hotel'] = 1 and wl_status['coffee_maker'] = 1:
  137. gs 'mod_wlife_misc', 'coffee_maker'
  138. elseif wl_status['coffee_maker'] = 2:
  139. gs 'mod_wlife_misc', 'coffee'
  140. end
  141. 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':
  142. gs 'mod_wlife_misc', 'komp_maxim'
  143. elseif $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $loc_arg = 'outside' and $menu_arg = 'outside' and menu_off = 0 and wl_georgiy['payment_method'] = 1 and PCloStyle = 4 and ShoHeels > 3:
  144. '<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.', '')
  145. elseif $loc = 'city_industrial_train' and $menu_loc = 'city_industrial_train' and $loc_arg = 'outside' and $menu_arg = 'outside' and menu_off = 0 and wl_georgiy['payment_method'] = 1 and (PCloStyle ! 4 or ShoHeels < 4):
  146. '<br>You could take the bus to the gas station, but you need to wear high heels and appropriate clothing to work there.'
  147. elseif (wl_irina['status'] = 1 or wl_irina['status'] = 2) and wl_irina['timer'] < daystart and menu_off = 0 and week < 5 and wl_iosif['timer'] = 0:
  148. if wl_status['school_expelled'] < 2 and SchoolBlock = 0 and SchoolAtestat < 1 and $loc = 'gschool_lunch' and $loc_arg = 'break':
  149. gt 'mod_wlife_irina', 'school'
  150. elseif ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x' or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and hour > 13 and (wl_status['school_expelled'] = 2 or SchoolBlock = 1 or SchoolAtestat > 0):
  151. gt 'mod_wlife_irina', 'not_school'
  152. end
  153. end
  154. !!Location Checks 2
  155. if $loc = 'pav_complex' and menu_off = 0 and $loc_arg = 'start' and wl_alexei['hang_out'] = 1 and wl_alexei['timer_day'] = daystart and (hour > 21 or (hour = 21 and minut > 45)):
  156. '<br>Alexei is waiting for you in his <a href="exec: minut += 1 & gt ''mod_wlife_alexei'', ''hub''">apartment</a>.'
  157. act 'Go to Alexei''s apartment': minut += 1 & gt 'mod_wlife_alexei', 'hub'
  158. elseif menu_off = 0 and $loc = $wl_loc[0] and $loc_arg = $wl_loc[1] and $menu_arg ! 'garages':
  159. if wl_status['main'] >= 5 and wl_whore['shifts_message'] = 1 and wl_whore['pirsA'] = 0:
  160. if hour = 16 and PCloStyle = 4 and ShoHeels > 3:
  161. !!ToDo: Activate if done if wl_party['status'] > 1 and wl_vadim['timer'] < daystart: gt 'mod_wlife_vadim', 'pick_up'
  162. 'Volya is waiting for you in his <a href="exec: minut += 1 & gt ''mod_wlife_volya'', ''shift_start''">car</a>.'
  163. elseif hour = 16 and (PCloStyle ! 4 or ShoHeels < 4):
  164. 'Volya is waiting for you in his car, but you have to wear an appropriate outfit and heels.'
  165. elseif hour < 16:
  166. 'Volya will pick you up between 16:00 and 17:00. You''ll have to wear an appropriate outfit and heels.'
  167. end
  168. elseif wl_status['main'] >= 5 and wl_whore['shifts_message'] = 1 and wl_whore['pirsA'] > 0:
  169. if hour = 16 and PCloStyle = 4 and ShoHeels > 3 and pirsA < 10000:
  170. 'Volya is waiting for you in his <a href="exec: minut += 1 & gt ''mod_wlife_volya'', ''shift_start''">car</a>.'
  171. elseif hour = 16 and (PCloStyle ! 4 or ShoHeels < 4 or pirsA = 10000):
  172. 'Volya is waiting for you in his car, but you have to wear an appropriate outfit, heels and your tongue piercing.'
  173. elseif hour < 16:
  174. 'Volya will pick you up between 16:00 and 17:00. You''ll have to wear an appropriate outfit, heels and your tongue piercing.'
  175. end
  176. end
  177. elseif (($menu_loc = 'pav_hotel' and $menu_arg = '') or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and menu_off = 0 and (wl_okoro['week'] = week or wl_maxim['week'] = week):
  178. if wl_okoro['week'] = week and hour < 22 and wl_okoro['status'] = 6:
  179. '<br>Léon will be back in his hotel room at 22:00.'
  180. elseif wl_okoro['week'] = week and hour > 21 and wl_okoro['status'] = 6:
  181. act 'Go to Léon''s room': minut += 3 & gt 'mod_wlife_okoro', 'leon_hotel'
  182. end
  183. if wl_maxim['week'] = week and hour < 21:
  184. '<br>Maxim will be back in his hotel room at 21:00.'
  185. elseif wl_maxim['week'] = week and hour > 20:
  186. act 'Go to Maxim''s room': minut += 3 & gt 'mod_wlife_maxim', 'start'
  187. end
  188. elseif wl_okoro['status'] = 10 and wl_okoro['week'] = week and $loc = 'city_suburbs':
  189. if hour > 21 or (hour = 21 and minut > 40):
  190. act 'Visit Henri and Léon Okoro': gt 'mod_wlife_okoro', 'reunion_0'
  191. else
  192. '<br>The Okoro brothers will be back around 22:00.'
  193. end
  194. elseif ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x' or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and wl_status['detective'] = 5 and wl_iosif['katharina'] > 0 and wl_crime['katharina_murder'] > 0 and wl_timer['detective'] < daystart and menu_off = 0:
  195. gt 'mod_wlife_iosif', 'vase'
  196. elseif ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x' or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and wl_okoro['status'] = 9 and (wl_okoro['timer'] + 14) < daystart and hour > 13 and week < 4 and menu_off = 0:
  197. gt 'mod_wlife_okoro', 'gift_basket'
  198. elseif ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar') and wl_mother['knows'] = 1 and wl_status['hotel'] = 0:
  199. gt 'mod_wlife_mother', 'mother_knows'
  200. elseif ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar') and wl_status['school_expelled'] = 1 and wl_status['hotel'] = 0:
  201. gt 'mod_wlife_mother', 'mother_school'
  202. elseif ((wl_mother['clothes_timer_inside'] ! daystart and ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar') and $loc_arg = '' and hour = 16 and minut < 45 and locat['Mom_cafe_sex'] = 0) or (wl_mother['clothes_timer_outside'] ! daystart and $loc = 'pav_complex' and $loc_arg = 'start' and ((hour = 15 and minut > 30 and locat['Mom_cafe_sex'] = 0) or (hour = 16 and minut > 30 and locat['Mom_cafe_sex'] = 1)))) and menu_off = 0 and wl_whore['shifts_message'] = 1 and locat['Fam_inGad'] = 0 and week < 7 and PCloStyle = 4 and wl_mother['acceptance_clothes'] < 2 and wl_mother['clothes_timer'] ! daystart:
  203. if $loc = 'pav_complex':
  204. wl_mother['clothes_timer_outside'] = daystart
  205. else
  206. wl_mother['clothes_timer_inside'] = daystart
  207. end
  208. if rand(1,100) > (90 - wl_mother['clothes_chance']):
  209. wl_mother['clothes_chance'] = 0
  210. gt 'mod_wlife_mother', 'mother_shift_start'
  211. else
  212. wl_mother['clothes_chance'] += rand(3,6)
  213. end
  214. 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 $loc_arg = '' and menu_off = 0 and (((hour = 7 or hour = 8) and kanikuli = 0 and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6) or (hour > 6 and (SchoolBlock > 0 or SchoolAtestat > 0))):
  215. gt 'mod_wlife_tattoo_piercing', 'tattoo_0'
  216. end
  217. !!Vase:
  218. if wl_status['detective'] = 7 and ((($loc = 'bedrPar' or $loc = 'mod_BroMod_bedrPar' or $loc = 'bedr' or $loc = 'bedr2x') and $loc_arg = '') or ($loc = 'mod_wlife_hotelroom' and $loc_arg = 'start')) and menu_off = 0: 'On your dresser stands a <a href="exec: gt ''mod_wlife_misc'', ''vase''">heavy vase</a>.'
  219. !!Checks:
  220. if wl_prison['status'] = 1 and wl_prison['shift'] = 0 and week = 7 and hour < 20 and wl_bad['prison'] = 0:
  221. !!ToDo: This prison variable has to updated if more prison days are done
  222. wl_bad['prison'] = 1
  223. elseif wl_status['main'] >= 5 and wl_whore['shifts_message'] = 1 and hour > 16 and menu_off = 0:
  224. gt 'mod_wlife_phone', 'volya_missed'
  225. end
  226. !!Story & Phone/Menu
  227. if wl_status['start'] = 0 and wl_status['main'] = 0 and mid($start_type,1,2) = 'sg':
  228. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  229. if pcs_inhib > 20:
  230. pl 'To start ''Whore Life'' read the newspaper on your parents kitchen table.'
  231. 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.'
  232. else
  233. pl 'Your inhibition is too high at the moment for the mod to start ''Whore Life'', it needs to be below 80.'
  234. end
  235. elseif wl_status['start'] > 0 and wl_status['main'] = 0:
  236. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  237. pl 'Continue with your life in Pavlovsk...'
  238. elseif wl_status['main'] = 2 and hour > 7 and wl_timer['main'] ! daystart and rand(0,2) = 1 and menu_off = 0:
  239. gt 'mod_wlife_phone', 'start_aftermath_picture'
  240. 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:
  241. wl_timer['main'] = daystart
  242. gt 'mod_wlife_phone', 'start_aftermath_volya'
  243. elseif wl_status['main'] = 2 or wl_status['main'] = 3:
  244. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  245. pl 'Wait for Volya to call you.'
  246. elseif wl_status['main'] = 4 and week = 1 and wl_timer['main'] ! daystart:
  247. wl_timer['startday'] = daystart
  248. wl_timer['main'] = daystart
  249. wl_status['main'] = 5
  250. elseif wl_status['main'] = 4 and (week ! 1 or (wl_timer['main'] = daystart and week = 1)):
  251. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  252. pl 'Your new life as a whore will begin '+iif(week = 7, 'tomorrow.', 'next monday.')
  253. elseif wl_thought['homeless'] = 1 and wl_homeless['video_count'] = 0 and wl_homeless['timer'] ! daystart and hour > 14 and menu_off = 0:
  254. gt 'mod_wlife_phone', 'homeless_aftermath'
  255. elseif wl_okoro['week'] = week and wl_okoro['timer'] ! daystart and InSleep = 0 and menu_off = 0:
  256. gt 'mod_wlife_phone', 'leon_reminder'
  257. elseif $wl_brand['type'] ! '' and wl_brand['timer'] < daystart and wl_passport_pay = 0 and hour > 14 and menu_off = 0:
  258. gt 'mod_wlife_phone', 'passport_pay'
  259. elseif wl_status['main'] >= 5 and $curloc ! 'mod_wlife_phone' and $curloc ! 'phone_selfies':
  260. pl '<br><center><img height = 60 src="mod/wlife/images/objects/banner.png"></center>'
  261. if week < 7 and wl_georgiy['payment_method'] = 1:
  262. pl 'You have to pay Georgiy <<wl_georgiy[''lump_sum'']>> <b>₽</b> every Sunday.'
  263. elseif week < 7 and wl_georgiy['payment_method'] = 0:
  264. 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.', ''))
  265. elseif week = 7 and wl_georgiy['timer_day'] ! daystart:
  266. 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>.')
  267. elseif week = 7 and wl_georgiy['timer_day'] = daystart and wl_georgiy['payment_method'] = 0:
  268. pl 'You have reported to Georgiy. Next week you have to work <<wl_whore[''shifts_week'']>> shifts.'
  269. end
  270. if wl_georgiy['timer_week'] > week and wl_demand['party'] = 1:
  271. pl 'You have to go to the party at Vadim Bely''s house next Saturday.'
  272. 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:
  273. gt 'mod_wlife_phone', 'volya_party_warning'
  274. elseif wl_georgiy['timer_week'] = week and wl_demand['party'] = 1:
  275. 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>.'
  276. end
  277. $wl_status_msg = '<br><center><table><tr>'
  278. if menu_off = 0:
  279. $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>'
  280. else
  281. $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>'
  282. end
  283. if wl_debt['amount'] > 0:
  284. $wl_debt_tooltip = 'You owe <<wl_debt[''amount'']>> ₽.'
  285. $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.', '')
  286. $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>'
  287. end
  288. if wl_medical['timer_week'] = 0 and wl_medical['status'] = 1:
  289. $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>'
  290. elseif wl_medical['timer_week'] = 0 and wl_medical['status'] > 1:
  291. $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>'
  292. end
  293. 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>'
  294. if wl_okoro['status'] = 6 and wl_okoro['week'] = week:
  295. $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>'
  296. elseif wl_okoro['status'] = 10 and wl_okoro['week'] = week:
  297. $wl_status_msg += '<td><a href="exec: msg ''You can go to the suburbs of St. Petersburg tonight (22:00) to meet the Okoro brothers.''"><img title="You can go to the suburbs of the city (22:00) to meet the Okoro brothers." 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>'
  298. end
  299. if wl_maxim['status'] > 2 and wl_maxim['week'] = week:
  300. $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>'
  301. elseif wl_maxim['week'] > week and wl_maxim['day'] ! daystart:
  302. wl_maxim['week'] = 0
  303. end
  304. !!Alexei
  305. if wl_alexei['hang_out'] = 1 and wl_alexei['timer_day'] = daystart:
  306. $wl_status_msg += '<td><a href="exec: msg ''Alexei is expecting you at his apartment around 22:00. He lives in another unit of the same apartment complex your parents live in.''"><img title="Alexei is expecting you at his apartment around 22:00." 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>'
  307. elseif wl_alexei['hang_out'] = 1 and wl_alexei['timer_day'] < daystart and menu_off = 0 and hour > 9:
  308. gt 'mod_wlife_alexei', 'missed_date'
  309. elseif wl_alexei['timer_day'] <= daystart and wl_alexei['status'] = 4 and hour > 8 and menu_off = 0:
  310. gt 'mod_wlife_alexei', 'reply_licking'
  311. elseif wl_alexei['timer_day'] <= daystart and wl_alexei['status'] = 8 and hour > 8 and menu_off = 0:
  312. gt 'mod_wlife_alexei', 'video_start'
  313. end
  314. if wl_georgiy['payment_method'] = 1 and PCloStyle = 4 and ShoHeels > 3 and (($loc_arg = 'street' and $loc = 'mod_wlife_warehouse') or ($loc_arg = '' and ($loc = 'pav_commcenter' or $loc = 'pav_residential' or $loc = 'pav_industrial' or $loc = 'pav_commercial' or $loc = 'pav_market' or $loc = 'liam')) or ($loc_arg = '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:
  315. $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>'
  316. end
  317. if wl_whore['pirsA'] = 0:
  318. 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>'
  319. else
  320. 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>'
  321. end
  322. $wl_status_msg += '</tr></table></center><br><br>'
  323. pl $wl_status_msg
  324. end
  325. !!School
  326. if wl_status['main'] >= 5 and wl_status['school_expelled'] = 0 and SchoolBlock = 0 and SchoolAtestat < 1 and hour > 14:
  327. if schoolprogul > 0:
  328. gs 'grades', 'grade_award', 'school', 'math', -20
  329. gs 'grades', 'grade_award', 'school', 'rus', -20
  330. gs 'grades', 'grade_award', 'school', 'lit', -20
  331. gs 'grades', 'grade_award', 'school', 'art', -20
  332. gs 'grades', 'grade_award', 'school', 'bio', -20
  333. gs 'grades', 'grade_award', 'school', 'pe', -20
  334. gs 'grades', 'grade_award', 'school', 'eng', -20
  335. gs 'grades', 'grade_award', 'school', 'geo', -20
  336. gs 'grades', 'grade_award', 'school', 'sci', -20
  337. gs 'grades', 'grade_award', 'school', 'shop', -20
  338. gs 'grades', 'grade_award', 'school', 'comp', -20
  339. gs 'grades', 'grade_award', 'school', 'mus', -20
  340. gs 'grades', 'grade_award', 'school', 'his', -20
  341. schoolprogul = 0
  342. wl_status['school_skip'] += 1
  343. elseif wl_status['school_skip'] = 9:
  344. wl_status['school_expelled'] = 1
  345. elseif schoolPredupr > 0:
  346. schoolPredupr = 0
  347. end
  348. gs 'grades', 'grade above', 'school',0
  349. gs 'grades', 'grade above', 'school',30
  350. if (class['school_grades_above_0'] - class['school_grades_above_30']) > 1 and wl_status['school_timer'] ! daystart and kanikuli = 0 and week < 6 and wl_status['school_grades'] < 20:
  351. wl_status['school_grades'] += 1
  352. wl_status['school_timer'] = daystart
  353. elseif wl_status['school_grades'] = 20 and wl_status['school'] = 0:
  354. wl_status['school_expelled'] = 1
  355. end
  356. end
  357. if ($loc = 'korrPar' or $loc = 'mod_BroMod_korrPar' or $loc = 'korr' or $loc = 'korr2x' or $loc = 'mod_wlife_hotelroom') and wl_status['school_expelled'] < 2:
  358. if wl_status['school_grades'] > 9 and wl_status['school_grades_warning'] = 0 and menu_off = 0:
  359. gt 'mod_wlife_misc', 'school_grades'
  360. elseif wl_status['school_skip'] > ((wl_status['school_skip_warning'] * 3) + 2) and wl_status['school_skip_warning'] < 2 and menu_off = 0:
  361. gt 'mod_wlife_misc', 'school_skip'
  362. elseif wl_status['school_expelled'] = 1:
  363. gt 'mod_wlife_misc', 'school_expelled'
  364. end
  365. end
  366. !!Iosif and Maxim checks
  367. if wl_iosif['timer'] = 1 and hour > 8 and hour < 16 and menu_off = 0 and wl_iosif['timer_call'] ! daystart:
  368. gt 'mod_wlife_phone', 'iosif_missed'
  369. elseif wl_iosif['call_avoid'] > 2 and hour > 8 and hour < 16 and menu_off = 0:
  370. gt 'mod_wlife_phone', 'iosif_avoid'
  371. 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:
  372. gt 'mod_wlife_phone', 'iosif_work_first'
  373. 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 and wl_okoro['week'] ! week:
  374. gt 'mod_wlife_phone', 'iosif_work_regular'
  375. elseif wl_pictures['iosif_3'] = 1 and hour > 20 and menu_off = 0:
  376. gt 'mod_wlife_phone', 'iosif_party_pic'
  377. 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:
  378. gt 'mod_wlife_maxim', 'call'
  379. end
  380. !!Thoughts & Okoro phone calls
  381. 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:
  382. if (wl_timer['startday'] + 14) < daystart and wl_thought['whore'] = 0 and wl_thought['timer_whore'] < daystart and wl_status['main'] > 4:
  383. gt 'mod_wlife_thoughts', 'whore_0'
  384. elseif wl_medical['status'] = 2 and wl_thought['pissing'] = 0 and wl_thought['timer_pissing'] < daystart and $wl_fetish['pissing'] ! 'blocked':
  385. gt 'mod_wlife_thoughts', 'pissing'
  386. elseif wl_thought['rimjob'] = 1:
  387. gt 'mod_wlife_thoughts', 'rim_whore'
  388. elseif wl_passport = 1 and wl_thought['passport'] = 0:
  389. gt 'mod_wlife_thoughts', 'passport'
  390. elseif wl_volya['status'] = 3:
  391. gt 'mod_wlife_thoughts', 'volya_car_bj'
  392. elseif wl_volya['status'] = 5 and wl_volya['relationship'] = 1:
  393. gt 'mod_wlife_thoughts', 'volya_car_sex'
  394. elseif wl_volya['status'] = 5 and wl_volya['relationship'] ! 1:
  395. wl_volya['status'] = 6
  396. elseif wl_shura['status'] = 9:
  397. gt 'mod_wlife_thoughts', 'shura_bj'
  398. elseif wl_iosif['pissing'] = 1 and $wl_fetish['pissed_on'] = '':
  399. gt 'mod_wlife_thoughts', 'piss_whore'
  400. elseif wl_homeless['status'] > 1 and wl_thought['homeless'] = 0:
  401. gt 'mod_wlife_thoughts', 'homeless_aftermath'
  402. elseif wl_thought['atm'] = 1 and wl_thought['timer_atm'] < daystart:
  403. gt 'mod_wlife_thoughts', 'ass_to_mouth'
  404. !!ToDo: Prostitution in pavlovsk
  405. !! elseif wl_thought['pav_total'] > 0 and wl_thought['pav_prost'] = 0:
  406. !! gt 'mod_wlife_thoughts', 'pav_prost'
  407. elseif wl_thought['sacha'] = 0 and wl_sacha['status'] = 2:
  408. gt 'mod_wlife_thoughts', 'sacha'
  409. elseif wl_okoro['status'] = 2 and (wl_timer['startday'] + 49) < daystart and wl_okoro['timer'] ! daystart and week ! 7:
  410. gt 'mod_wlife_phone', 'okoro'
  411. elseif wl_thought['best_alexei'] = 0 and wl_bestiality['cuni_count'] > 6:
  412. gt 'mod_wlife_thoughts', 'best_alexei'
  413. elseif wl_thought['best_alexei'] = 1 and rex['pussy'] > 0:
  414. gt 'mod_wlife_thoughts', 'best_alexei_2'
  415. elseif wl_thought['BDSM'] = 0 and wl_irina['status'] > 1:
  416. gt 'mod_wlife_thoughts', 'BDSM'
  417. end
  418. end
  419. end
  420. !!Removes the vanilla Vadim Bely
  421. if npc_QW['A113'] ! 2:
  422. npc_QW['A113'] = 2
  423. killvar 'belfirstweek'
  424. killvar 'belgangPay'
  425. killvar 'daybelixsex'
  426. killvar 'belgangday'
  427. killvar 'belgangPayweekAmount'
  428. killvar 'belgangPayweek'
  429. killvar 'belgangPayextension'
  430. killvar 'belgangProstitute'
  431. end
  432. !!Blocks vanilla prostitution event in the residential area
  433. if pav_residential_prost_day ! daystart: pav_residential_prost_day = daystart
  434. --- mod_wlife ---------------------------------