mod_wlife.qsrc 35 KB

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