mod_wlife_functions.qsrc 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. # mod_wlife_functions
  2. !!Family Dog
  3. if $ARGS[0] = 'rex_status':
  4. rex['timer_day'] = daystart
  5. !!Daily decay
  6. rex['relationship'] -= 1
  7. !!Chores
  8. if wl_cheat['dog_rel'] = 0 and rex['gadukino_day'] ! daystart:
  9. npc_rel['A29'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  10. rex['relationship'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  11. end
  12. rex['count_run'] = 0
  13. rex['count_walk'] = rex['count_walk_base']
  14. rex['timer_walk'] = 0
  15. rex['count_feed'] = rex['count_feed_base']
  16. rex['timer_feed'] = 0
  17. if week = 1:
  18. if wl_cheat['dog_rel'] = 0:
  19. npc_rel['A29'] -= rex['count_bath']
  20. rex['relationship'] -= (rex['count_bath'] * 5)
  21. end
  22. rex['count_bath'] = rex['count_bath_base']
  23. end
  24. !!Love
  25. if rex['love'] >= 100 or wl_cheat['dog_rel'] = 1:
  26. rex['relationship'] = 100
  27. elseif rex['relationship'] < 20:
  28. rex['love'] -= 1
  29. elseif rex['relationship'] < 40:
  30. rex['love'] -= rand(0,1)
  31. elseif rex['relationship'] < 60:
  32. rex['love'] += rand(0,1)
  33. elseif rex['relationship'] < 80:
  34. rex['love'] += 1
  35. else
  36. rex['love'] += rand(1,2)
  37. end
  38. if rex['love'] > 100 or wl_cheat['dog_rel'] = 1:
  39. rex['love'] = 100
  40. elseif rex['love'] < -100:
  41. rex['love'] = -100
  42. end
  43. end
  44. !!Cocaine
  45. if $ARGS[0] = 'cocaine':
  46. if dur > 0 and narkday ! daystart:
  47. act 'Do a line of cocaine (0:05)':
  48. *clr & cla
  49. menu_off = 1
  50. narkday = daystart
  51. gs 'drugs', 'cocaine'
  52. minut += 5
  53. gs 'stat'
  54. '<center><img <<$set_imgh>> src="mod/wlife/images/player/cocaine.jpg"></center>'
  55. 'You snort some cocaine, feeling dizzy for just a moment. After that you feel fantastic, horny and full of energy.'
  56. act 'Continue': gt $loc, $loc_arg
  57. end
  58. end
  59. end
  60. !!Willpower
  61. if $ARGS[0] = 'will_unprotected':
  62. gs 'willpower', 'calc'
  63. will_cost = 0
  64. if missCum >= timeTresh: will_calc += 100
  65. if $ARGS[1] = 'resist':
  66. if wl_stats['unprotected'] <= 90:
  67. will_cost = (10 + wl_stats['unprotected'] + will_calc) / 10
  68. else
  69. will_cost = (100 + will_calc)/10
  70. end
  71. else
  72. if wl_stats['unprotected'] <= 90:
  73. will_cost = (100 - wl_stats['unprotected'] + will_calc) / 10
  74. else
  75. will_cost = (10 + will_calc)/10
  76. end
  77. end
  78. gs 'willpower', 'difficulty', '<<$ARGS[2]>>'
  79. end
  80. if $ARGS[0] = 'will_rimming':
  81. gs 'willpower', 'calc'
  82. if $ARGS[1] = 'self':
  83. if stat['rimming_give'] <= 90:
  84. will_cost = (100 - stat['rimming_give'] + will_calc)/10
  85. else
  86. will_cost = (10 + will_calc)/10
  87. end
  88. elseif $ARGS[1] = 'force':
  89. if stat['rimming_give'] <= 40:
  90. will_cost = (110 - will_enforced - stat['rimming_give'] + will_calc)/10
  91. else
  92. will_cost = (70 - will_enforced + will_calc)/10
  93. end
  94. else
  95. if stat['rimming_give'] <= 90:
  96. will_cost = (10 + stat['rimming_give'] + will_calc)/10
  97. else
  98. will_cost = (100 + will_calc)/10
  99. end
  100. end
  101. gs 'willpower', 'difficulty', '<<$ARGS[2]>>'
  102. end
  103. if $ARGS[0] = 'will_atm':
  104. gs 'willpower', 'calc'
  105. if $ARGS[1] = 'self':
  106. if wl_stats['atm'] <= 90:
  107. will_cost = (100 - wl_stats['atm'] + will_calc)/10
  108. else
  109. will_cost = (10 + will_calc)/10
  110. end
  111. elseif $ARGS[1] = 'force':
  112. if wl_stats['atm'] <= 40:
  113. will_cost = (110 - will_enforced - wl_stats['atm'] + will_calc)/10
  114. else
  115. will_cost = (70 - will_enforced + will_calc)/10
  116. end
  117. else
  118. if wl_stats['atm'] <= 90:
  119. will_cost = (10 + wl_stats['atm'] + will_calc)/10
  120. else
  121. will_cost = (100 + will_calc)/10
  122. end
  123. end
  124. gs 'willpower', 'difficulty', '<<$ARGS[2]>>'
  125. end
  126. if $ARGS[0] = 'will_acceptance':
  127. if $ARGS[1] = 'resist':
  128. if wl_stats['acceptance'] > 60:
  129. gs 'willpower', 'prostitution', 'resist', 'hard'
  130. elseif wl_stats['acceptance'] > 30:
  131. gs 'willpower', 'prostitution', 'resist', 'medium'
  132. else
  133. gs 'willpower', 'prostitution', 'resist', 'easy'
  134. end
  135. elseif $ARGS[1] = 'force':
  136. if wl_stats['acceptance'] < 20:
  137. gs 'willpower', 'prostitution', 'force', 'hard'
  138. elseif wl_stats['acceptance'] < 40:
  139. gs 'willpower', 'prostitution', 'force', 'medium'
  140. else
  141. gs 'willpower', 'prostitution', 'force', 'easy'
  142. end
  143. else
  144. if wl_stats['acceptance'] < 20:
  145. gs 'willpower', 'prostitution', 'self', 'hard'
  146. elseif wl_stats['acceptance'] < 40:
  147. gs 'willpower', 'prostitution', 'self', 'medium'
  148. else
  149. gs 'willpower', 'prostitution', 'self', 'easy'
  150. end
  151. end
  152. end
  153. !! Condoms & STDs
  154. if $ARGS[0] = 'std_check':
  155. wl_std_check_rand = rand(0,10)
  156. if protect = 1:
  157. wl_std_rand = rand(0,1000)
  158. if wl_std_rand = 1000: gs 'mod_wlife_functions' , 'std_chance'
  159. else
  160. if $ARGS[1] = 'high':
  161. wl_std_rand = rand(-20,120)
  162. else
  163. wl_std_rand = rand(-60,100)
  164. end
  165. if wl_std_rand >= 80: gs 'mod_wlife_functions' , 'std_chance'
  166. end
  167. end
  168. if $ARGS[0] = 'std_chance':
  169. if cheatHealth = 0:
  170. if wl_std_check_rand = 8:
  171. !!herpes
  172. if rand(1, 100) > 90:
  173. if GerpesOnce = 0:
  174. GerpesOnce = 1
  175. Venera += 1
  176. Gerpes += 1
  177. GenHerpes = 1
  178. end
  179. end
  180. elseif wl_std_check_rand = 7:
  181. !!syphilis
  182. if rand(1, 100) > 95: Venera += 1
  183. if SifacOnce = 0:
  184. SifacOnce = 1
  185. Sifilis += 1
  186. end
  187. elseif wl_std_check_rand >= 5 and wl_std_check_rand < 7:
  188. !!gonorrhea/triper
  189. if rand(1, 100) > 95: Venera += 1
  190. if TriperOnce = 0:
  191. TriperOnce = 1
  192. Triper += 1
  193. end
  194. elseif wl_std_check_rand < 5:
  195. !!candidiasis/thrush
  196. if rand(1, 100) > 85:
  197. if KandidozOnce = 0:
  198. KandidozOnce = 1
  199. Kandidoz += 1
  200. end
  201. end
  202. end
  203. end
  204. end
  205. if $ARGS[0] = 'std_check_oral':
  206. wl_std_check_rand = rand(0,10)
  207. if protect = 1:
  208. wl_std_rand = rand(0,1000)
  209. if wl_std_rand = 1000: gs 'mod_wlife_functions' , 'std_oral_chance'
  210. else
  211. if $ARGS[1] = 'high':
  212. wl_std_rand = rand(-20,120)
  213. elseif $ARGS[1] = 'low':
  214. wl_std_rand = rand(-80,90)
  215. else
  216. wl_std_rand = rand(-60,100)
  217. end
  218. if wl_std_rand >= 80: gs 'mod_wlife_functions' , 'std_oral_chance'
  219. end
  220. end
  221. if $ARGS[0] = 'std_oral_chance':
  222. if cheatHealth = 0:
  223. if wl_std_check_rand >= 5 and wl_std_check_rand < 7:
  224. if rand(1, 100) > 95: Venera += 1
  225. if TriperOnce = 0:
  226. TriperOnce = 1
  227. TriperOral += 1
  228. if rand (0,100) < 15: TriperOralSigns = 1
  229. end
  230. elseif wl_std_check_rand = 7:
  231. if rand(0,1) = 1:
  232. !!syphilis
  233. if rand(1, 100) > 95: Venera += 1
  234. if SifacOnce = 0:
  235. SifacOnce = 1
  236. Sifilis += 1
  237. end
  238. end
  239. elseif wl_std_check_rand < 5:
  240. !!candidiasis/thrush
  241. if rand(1, 100) > 85:
  242. if KandidozOnce = 0:
  243. KandidozOnce = 1
  244. Kandidoz += 1
  245. end
  246. end
  247. elseif wl_std_check_rand = 8:
  248. !!herpes
  249. if rand(1, 100) > 90:
  250. if GerpesOnce = 0:
  251. GerpesOnce = 1
  252. Venera += 1
  253. Gerpes += 1
  254. OrHerpes = 1
  255. end
  256. end
  257. end
  258. end
  259. end
  260. if $ARGS[0] = 'remove_condom':
  261. if mc_inventory['equipped_condoms'] > 0:
  262. mc_inventory['equipped_condoms'] -= 1
  263. else
  264. mc_inventory['normal_condoms'] -= 1
  265. end
  266. end
  267. if $ARGS[0] = 'your_condom':
  268. wl_whore['condom'] = 1
  269. protect = iif(mc_inventory['equipped_condoms'] > 0,1,0)
  270. if mc_inventory['equipped_condoms'] > 0:
  271. if rand(1,mc_inventory['equipped_condoms']) <= mc_inventory['bad_condoms']:
  272. mc_inventory['bad_condoms'] -= 1
  273. noprotect = 1
  274. sexcontra = 7
  275. else
  276. sexcontra = 3
  277. end
  278. mc_inventory['equipped_condoms'] -= 1
  279. sexcontra = iif(preziktype = 2,7,sexcontra)
  280. else
  281. sexcontra = 0
  282. end
  283. end
  284. if $ARGS[0] = 'his_condom':
  285. $bwa_boy = iif($ARGS[1] = '',$boydesc,$ARGS[1])
  286. protect = 1
  287. sexcontra = 3
  288. *p '<<ucase(mid($bwa_boy,1,1))>><<mid($bwa_boy,2,len($bwa_boy)-1)>> takes his condom and puts it on his <<dick>> centimeter dick.'
  289. end
  290. !!Acceptance
  291. if $ARGS[0] = 'acceptance_check':
  292. if wl_stats['acceptance'] < 20:
  293. if $ARGS[1] = 'normal':
  294. pcs_mood -= 20
  295. else
  296. pcs_mood -= 10
  297. end
  298. elseif wl_stats['acceptance'] >= 20 and wl_stats['acceptance'] < 40:
  299. if $ARGS[1] = 'normal':
  300. pcs_mood -= 10
  301. else
  302. pcs_mood -= 5
  303. end
  304. elseif wl_stats['acceptance'] >= 40 and wl_stats['acceptance'] < 60 and $ARGS[1] = 'normal':
  305. pcs_mood -= 5
  306. elseif wl_stats['acceptance'] >= 60 and $ARGS[1] = 'regular':
  307. pcs_mood += 5
  308. end
  309. end
  310. !!Background: Black
  311. if $ARGS[0] = 'darkness':
  312. fcolor = rgb(255, 255, 255)
  313. bcolor = rgb(0, 0, 0)
  314. lcolor = rgb(106, 90, 205)
  315. end
  316. if $ARGS[0] = 'parameters':
  317. !!Reset
  318. protect = 0
  319. sexcontra = 0
  320. $wl_client_condom = 'tbd'
  321. $wl_client_cumshot = 'tbd'
  322. !!Client
  323. gs 'npcgeneratec', 0, 'client', rand(18,65)
  324. gs 'boyStat', $npclastgenerated
  325. !!Time
  326. if hour > 19 or hour < 7:
  327. $wl_work_time = 'night'
  328. else
  329. $wl_work_time = 'day'
  330. end
  331. gs 'mod_wlife_functions', 'std_cum_check'
  332. !!Client Likes/Dislikes
  333. if rand(1,10) = 10:
  334. wl_whore['mesec_mod'] = 1
  335. else
  336. wl_whore['mesec_mod'] = 0
  337. end
  338. if rand(1,100) > 97:
  339. wl_whore['dirty_anal_mod'] = 1
  340. else
  341. wl_whore['dirty_anal_mod'] = 0
  342. end
  343. if rand(1,10) = 10:
  344. wl_whore['cum_visible_mod'] = 1
  345. else
  346. wl_whore['cum_visible_mod'] = 0
  347. end
  348. !!Age
  349. if vidage < 18 and rand(1,10) < 7:
  350. wl_whore['vidage_mod'] = 1
  351. else
  352. wl_whore['vidage_mod'] = 0
  353. end
  354. !!Scene
  355. wl_scene_rand = rand(1,100)
  356. if wl_scene_rand <= 50:
  357. if mesec = 0 or wl_whore['mesec_mod'] = 1:
  358. $wl_whore['client_scene'] = 'Vaginal'
  359. elseif mesec > 0 and wl_whore['mesec_mod'] = 0 and (wl_whore['enema'] = 1 or wl_whore['dirty_anal_mod'] = 1):
  360. $wl_whore['client_scene'] = 'Anal'
  361. else
  362. $wl_whore['client_scene'] = 'Blowjob'
  363. end
  364. elseif wl_scene_rand > 50 and wl_scene_rand <= 75:
  365. if wl_whore['enema'] = 1 or wl_whore['dirty_anal_mod'] = 1:
  366. $wl_whore['client_scene'] = 'Anal'
  367. elseif wl_whore['enema'] = 0 and wl_whore['dirty_anal_mod'] = 0 and (mesec = 0 or wl_whore['mesec_mod'] = 1):
  368. $wl_whore['client_scene'] = 'Vaginal'
  369. else
  370. $wl_whore['client_scene'] = 'Blowjob'
  371. end
  372. else
  373. $wl_whore['client_scene'] = 'Blowjob'
  374. end
  375. !!Regular Worker
  376. if wl_whore['customer_total'] < 10:
  377. wl_whore['regular_chance'] = 0
  378. elseif wl_whore['customer_total'] >= 10 and wl_whore['customer_total'] <= 25:
  379. wl_whore['regular_chance'] = 1
  380. elseif wl_whore['customer_total'] > 25 and wl_whore['customer_total'] <= 50:
  381. wl_whore['regular_chance'] = 2
  382. elseif wl_whore['customer_total'] > 50 and wl_whore['customer_total'] <= 100:
  383. wl_whore['regular_chance'] = 3
  384. elseif wl_whore['customer_total'] > 100 and wl_whore['customer_total'] <= 250:
  385. wl_whore['regular_chance'] = 4
  386. end
  387. !!Chance to find a client
  388. wl_whore['client_chance'] = hotcat * 10 + wl_whore['regular_chance'] * 5 + rand(1,100) + wl_whore['pity_counter']
  389. if $pantyworntype = 'sexshop' and CloSkirtShortness > 4: wl_whore['client_chance'] += 10
  390. !!Client
  391. if wl_whore['regular_timer'] ! daystart and $wl_whore['client_scene'] ! 'Blowjob':
  392. if (wl_whore['regular_chance'] = 1 and rand(1,100) > 95) or (wl_whore['regular_chance'] = 2 and rand(1,100) > 90) or (wl_whore['regular_chance'] = 3 and rand(1,100) > 80) or (wl_whore['regular_chance'] = 4 and rand(1,100) > 60):
  393. wl_whore['regular'] = 1
  394. else
  395. wl_whore['regular'] = 0
  396. end
  397. else
  398. wl_whore['regular'] = 0
  399. end
  400. !!ToDo: Rough Clients
  401. !! if wl_whore['regular'] = 0:
  402. !! if (wl_work_day = 0 and rand(1,100) > 90) or (wl_work_day = 1 and rand(1,100) > 95):
  403. !! if wl_whore['rough'] = 1
  404. !! else
  405. !! wl_whore['rough'] = 0
  406. !! end
  407. !! end
  408. if wl_whore['regular'] = 0 and wl_whore['rough'] = 0 and wl_whore['std_mod'] = 0 and rand(1,100) > iif($wl_brand['text_pubic'] = 'cumslut', 84, 92):
  409. wl_whore['client_creampie'] = 1
  410. else
  411. wl_whore['client_creampie'] = 0
  412. end
  413. if wl_whore['rough'] = 1 or (wl_whore['rough'] = 0 and rand(1,100) > 40):
  414. wl_whore['propose'] = 0
  415. else
  416. wl_whore['propose'] = 1
  417. end
  418. end
  419. if $ARGS[0] = 'payment':
  420. !!Basic Payment
  421. if $ARGS[1] = 'pav':
  422. if $wl_whore['pav_scene'] = 'blowjob':
  423. wl_whore['payment'] = 425
  424. elseif $wl_whore['pav_scene'] = 'anal':
  425. wl_whore['payment'] = 1200
  426. else
  427. wl_whore['payment'] = 1000
  428. end
  429. else
  430. if $wl_whore['client_scene'] = 'Blowjob':
  431. wl_whore['payment'] = 350
  432. if $ARGS[1] = 'condom_no': wl_whore['payment'] += 75
  433. if $ARGS[2] = 'inside_yes': wl_whore['payment'] += 50
  434. elseif $wl_whore['client_scene'] = 'Vaginal':
  435. wl_whore['payment'] = 700
  436. if $ARGS[1] = 'condom_no': wl_whore['payment'] += 300
  437. if $ARGS[2] = 'inside_yes': wl_whore['payment'] += 300
  438. elseif $wl_whore['client_scene'] = 'Anal':
  439. wl_whore['payment'] = 900
  440. if $ARGS[1] = 'condom_no': wl_whore['payment'] += 200
  441. if $ARGS[2] = 'inside_yes': wl_whore['payment'] += 100
  442. end
  443. end
  444. !!Bonus
  445. wl_whore['payment_mod'] = hotcat * 10
  446. if pcs_makeup = 0:
  447. wl_whore['payment_mod'] -= 20
  448. elseif pcs_makeup > 1:
  449. wl_whore['payment_mod'] += pcs_makeup * 10
  450. end
  451. if mesec > 0 and $wl_whore['client_scene'] = 'Vaginal':
  452. if wl_whore['mesec_mod'] = 0:
  453. wl_whore['payment_mod'] -= 200
  454. else
  455. wl_whore['payment_mod'] += 300
  456. end
  457. end
  458. if wl_whore['enema'] = 0 and $wl_whore['client_scene'] = 'Anal':
  459. if wl_whore['dirty_anal_mod'] = 0:
  460. if $ARGS[1] = 'condom_no':
  461. wl_whore['payment_mod'] -= 600
  462. elseif $ARGS[1] = 'condom_yes':
  463. wl_whore['payment_mod'] -= 300
  464. end
  465. else
  466. wl_whore['payment_mod'] += 300
  467. end
  468. end
  469. if wl_whore['cum_dressed'] = 1:
  470. if wl_whore['cum_visible_mod'] = 0:
  471. wl_whore['payment_mod'] -= 200
  472. else
  473. wl_whore['payment_mod'] += 300
  474. end
  475. end
  476. wl_whore['payment_mod'] += pcs_mood - 50
  477. if $pantyworntype = 'sexshop' and CloSkirtShortness > 4: wl_whore['payment_mod'] += 50
  478. if wl_whore['vidage_mod'] = 1:
  479. wl_whore['payment_mod'] += 50 * (18 - vidage)
  480. else
  481. wl_whore['payment_mod'] -= 50 * (18 - vidage)
  482. end
  483. if ($wl_whore['client_scene'] = 'Blowjob') or ($wl_whore['pav_scene'] = 'blowjob'):
  484. wl_whore['payment_mod'] = wl_whore['payment_mod'] / 2
  485. if pirsA = 2:
  486. wl_whore['payment_mod'] += 50
  487. elseif pirsA = 4:
  488. wl_whore['payment_mod'] += 75
  489. elseif pirsA > 0 and pirsA < 10000:
  490. wl_whore['payment_mod'] += 25
  491. end
  492. end
  493. wl_whore['payment'] += wl_whore['payment_mod']
  494. wl_whore['payment_backup'] = wl_whore['payment']
  495. !!Client Satisfaction
  496. wl_whore['payment'] = (wl_whore['payment'] * (100 + wl_whore['client_satisfaction'])) / 100
  497. !!Rounding
  498. wl_whore['payment'] = func('mod_wlife_functions', 'exact_round', wl_whore['payment'], 10)
  499. wl_whore['payment_backup'] = func('mod_wlife_functions', 'exact_round', wl_whore['payment_backup'], 10)
  500. end
  501. if $ARGS[0] = 'reputation_check':
  502. if wl_stats['loyalty'] < -100:
  503. wl_stats['loyalty'] = -100
  504. elseif wl_stats['loyalty'] > 100:
  505. wl_stats['loyalty'] = 100
  506. end
  507. if wl_stats['loyalty'] < -60:
  508. $wl_stats['loyalty'] = 'illoyal'
  509. elseif wl_stats['loyalty'] < -40:
  510. $wl_stats['loyalty'] = 'untrustworthy'
  511. elseif wl_stats['loyalty'] < -20:
  512. $wl_stats['loyalty'] = 'unreliable'
  513. elseif wl_stats['loyalty'] < 20:
  514. $wl_stats['loyalty'] = 'unproven'
  515. elseif wl_stats['loyalty'] < 40:
  516. $wl_stats['loyalty'] = 'reliable'
  517. elseif wl_stats['loyalty'] < 60:
  518. $wl_stats['loyalty'] = 'trustworthy'
  519. else
  520. $wl_stats['loyalty'] = 'loyal'
  521. end
  522. if wl_stats['respect'] < -100:
  523. wl_stats['respect'] = -100
  524. elseif wl_stats['respect'] > 100:
  525. wl_stats['respect'] = 100
  526. end
  527. if wl_stats['respect'] < -60:
  528. $wl_stats['respect'] = 'whore'
  529. elseif wl_stats['respect'] < -30:
  530. $wl_stats['respect'] = 'slut'
  531. elseif wl_stats['respect'] < 30:
  532. $wl_stats['respect'] = 'chick'
  533. elseif wl_stats['respect'] < 60:
  534. $wl_stats['respect'] = 'girl'
  535. else
  536. $wl_stats['respect'] = 'woman'
  537. end
  538. if wl_stats['loyalty'] < -60:
  539. wl_debt['interest'] = 100
  540. wl_debt['weekly_interest'] = 15
  541. $wl_debt['interest'] = '<br>He doesn''t trust you at all and demands na interest rate of <<wl_debt[''interest'']>>%.'
  542. elseif wl_stats['loyalty'] < -40:
  543. wl_debt['interest'] = 60
  544. wl_debt['weekly_interest'] = 15
  545. $wl_debt['interest'] = '<br>He doesn''t trust you and demands an interest rate of <<wl_debt[''interest'']>>%.'
  546. elseif wl_stats['loyalty'] < -20:
  547. wl_debt['interest'] = 40
  548. wl_debt['weekly_interest'] = 10
  549. $wl_debt['interest'] = '<br>He''s skeptical about trusting you and demands an interest rate of <<wl_debt[''interest'']>>%.'
  550. elseif wl_stats['loyalty'] < 20:
  551. wl_debt['interest'] = 25
  552. wl_debt['weekly_interest'] = 10
  553. $wl_debt['interest'] = '<br>He''s a bit skeptical about trusting you and demands an interest rate of <<wl_debt[''interest'']>>%.'
  554. elseif wl_stats['loyalty'] < 40:
  555. wl_debt['interest'] = 15
  556. wl_debt['weekly_interest'] = 5
  557. $wl_debt['interest'] = '<br>He trusts you and only demands an interest rate of <<wl_debt[''interest'']>>%.'
  558. else
  559. wl_debt['interest'] = 10
  560. wl_debt['weekly_interest'] = 5
  561. $wl_debt['interest'] = '<br>He trusts you a lot and only demands an interest rate of <<wl_debt[''interest'']>>%.'
  562. end
  563. end
  564. if $ARGS[0] = 'abortion':
  565. abort += 1
  566. abortionbirthdate = daystart
  567. gs 'medical_din', 'remove_preg'
  568. knowpregloss = 2
  569. abortrand = rand(0, 10)
  570. if age > 18:
  571. if abortrand < 10:sterilewb += 1
  572. if abortrand = 10:sterilewb += 10
  573. else
  574. if abortrand < 7:sterilewb += 2
  575. if abortrand >= 7:sterilewb += 10
  576. end
  577. killvar 'abortrand'
  578. pcs_hydra += 20
  579. if broodcurse > 0: over = 13 & gt'gameover'
  580. end
  581. if $ARGS[0] = 'random_name':
  582. $wl_boyname[1] = ''
  583. $wl_boyname[2] = ''
  584. :wl_rng_jump
  585. wl_temp = rand(0,23)
  586. if wl_temp = 0:
  587. $wl_temp = 'Abram'
  588. elseif wl_temp = 1:
  589. $wl_temp = 'Alexei'
  590. elseif wl_temp = 2:
  591. $wl_temp = 'Adrian'
  592. elseif wl_temp = 3:
  593. $wl_temp = 'Dima'
  594. elseif wl_temp = 4:
  595. $wl_temp = 'Dimitri'
  596. elseif wl_temp = 5:
  597. $wl_temp = 'Igor'
  598. elseif wl_temp = 6:
  599. $wl_temp = 'Leonid'
  600. elseif wl_temp = 7:
  601. $wl_temp = 'Petka'
  602. elseif wl_temp = 8:
  603. $wl_temp = 'Michail'
  604. elseif wl_temp = 9:
  605. $wl_temp = 'Vasily'
  606. elseif wl_temp = 10:
  607. $wl_temp = 'Oleg'
  608. elseif wl_temp = 11:
  609. $wl_temp = 'Olezka'
  610. elseif wl_temp = 12:
  611. $wl_temp = 'Pasha'
  612. elseif wl_temp = 13:
  613. $wl_temp = 'Pavel'
  614. elseif wl_temp = 14:
  615. $wl_temp = 'Sacha'
  616. elseif wl_temp = 15:
  617. $wl_temp = 'Slava'
  618. elseif wl_temp = 16:
  619. $wl_temp = 'Ruslan'
  620. elseif wl_temp = 17:
  621. $wl_temp = 'Taras'
  622. elseif wl_temp = 18:
  623. $wl_temp = 'Timofey'
  624. elseif wl_temp = 19:
  625. $wl_temp = 'Vanya'
  626. elseif wl_temp = 20:
  627. $wl_temp = 'Viktor'
  628. elseif wl_temp = 21:
  629. $wl_temp = 'Vladimir'
  630. elseif wl_temp = 22:
  631. $wl_temp = 'Yaromir'
  632. elseif wl_temp = 23:
  633. $wl_temp = 'Yevgeni'
  634. end
  635. if $wl_boyname[1] = '':
  636. $wl_boyname[1] = $wl_temp
  637. jump 'wl_rng_jump'
  638. elseif $wl_boyname[2] = '':
  639. $wl_boyname[2] = $wl_temp
  640. end
  641. if $wl_boyname[1] = $wl_boyname[2]:
  642. $wl_boyname[2] = ''
  643. jump 'wl_rng_jump'
  644. end
  645. killvar 'wl_temp'
  646. killvar '$wl_temp'
  647. end
  648. if $ARGS[0] = 'weed_check':
  649. gs 'drugs', 'joint'
  650. wl_drugs['counter_weed'] += 1
  651. if wl_drugs['counter_weed'] > rand(2,5) and wl_stats['acceptance'] < 100:
  652. wl_drugs['counter_weed'] = 0
  653. wl_stats['acceptance'] += 1
  654. '<br>Your life isn''t so bad, isn''t it? You tell yourself. Shura was right. Sometimes it''s just better to accept what''s happening and not give a shit about it.'
  655. end
  656. end
  657. if $ARGS[0] = 'tat_pierce_count':
  658. tattCount = 0
  659. if tatarm >= 1: tattCount += 1
  660. if tatass >= 1: tattCount += 1
  661. if tatback >= 1: tattCount += 1
  662. if tatblly >= 1: tattCount += 1
  663. if tatbrst >= 1: tattCount += 1
  664. if tatchst >= 1: tattCount += 1
  665. if tatfce >= 1: tattCount += 1
  666. if tatankle >= 1: tattCount += 1
  667. if tatleg >= 1: tattCount += 1
  668. if tatlip >= 1: tattCount += 1
  669. if tatneck >= 1: tattCount += 1
  670. if tatvag >= 1: tattCount += 1
  671. if tatlech >= 1: tattCount += 1
  672. if tatside >= 1: tattCount += 1
  673. if tatupb >= 1: tattCount += 1
  674. if tatunder >= 1: tattCount += 1
  675. if tatwrist >= 1: tattCount += 1
  676. if tathand >= 1: tattCount += 1
  677. pierWearCount = 0
  678. if pirsA > 0 and pirsA ! 10000: pierWearCount += 1
  679. if pirsB > 0 and pirsB ! 10000: pierWearCount += 1
  680. if pirsC > 0 and pirsC ! 10000: pierWearCount += 1
  681. if pirsD > 0 and pirsD ! 10000: pierWearCount += 1
  682. if pirsE > 0 and pirsE ! 10000: pierWearCount += 1
  683. if pirsF > 0 and pirsF ! 10000: pierWearCount += 1
  684. if pirsG > 0 and pirsG ! 10000: pierWearCount += 1
  685. if pirsN > 0 and pirsN ! 10000: pierWearCount += 1
  686. end
  687. if $ARGS[0] = 'pav_client':
  688. !!Reset
  689. wl_whore['pav_internal'] = 0
  690. gs 'mod_wlife_functions', 'std_cum_check'
  691. !!Regular
  692. if wl_whore['pav_total'] < 10:
  693. wl_whore['pav_chance'] = 0
  694. elseif wl_whore['pav_total'] >= 10 and wl_whore['pav_total'] <= 25:
  695. wl_whore['pav_chance'] = 1
  696. elseif wl_whore['pav_total'] > 25 and wl_whore['pav_total'] <= 50:
  697. wl_whore['pav_chance'] = 2
  698. elseif wl_whore['pav_total'] > 50 and wl_whore['pav_total'] <= 100:
  699. wl_whore['pav_chance'] = 3
  700. elseif wl_whore['pav_total'] > 100 and wl_whore['pav_total'] <= 250:
  701. wl_whore['pav_chance'] = 4
  702. end
  703. if ((wl_whore['pav_chance'] = 1 and rand(1,100) > 95) or (wl_whore['pav_chance'] = 2 and rand(1,100) > 90) or (wl_whore['pav_chance'] = 3 and rand(1,100) > 80) or (wl_whore['pav_chance'] = 4 and rand(1,100) > 60)) and (wl_rand ! 8 or (wl_rand = 8 and wl_whore['pav_regular_s8'] = 1)):
  704. wl_whore['pav_regular'] = 1
  705. !! elseif wl_whore['pav_chance'] > 0 and rand(1,100) > 92:
  706. !! wl_whore['pav_regular'] = -1
  707. else
  708. wl_whore['pav_regular'] = 0
  709. end
  710. !!ToDo: Add cheat for this chance
  711. $wl_whore['client_behavior'] = iif(rand(1,100) < wl_whore['client_behavior_chance'] or wl_whore['pav_regular'] = -1, 'nice', 'abusive')
  712. !!Scene
  713. if wl_rand > 7:
  714. $wl_whore['pav_scene'] = 'anal'
  715. elseif mesec = 0 and rand(0,100) < 50:
  716. $wl_whore['pav_scene'] = 'pussy'
  717. else
  718. $wl_whore['pav_scene'] = 'blowjob'
  719. end
  720. if wl_rand = 0 or wl_rand = 8 or wl_rand = 9 or ((wl_rand = 2 or wl_rand = 3 or (wl_rand = 5 and $wl_whore['client_behavior'] = 'nice') or wl_rand = 6 or wl_rand = 7) and $wl_whore['pav_scene'] = 'pussy'):
  721. $wl_whore['pav_location'] = 'private'
  722. if wl_rand = 3 or wl_rand = 8: $wl_whore['client_behavior'] = 'abusive'
  723. elseif wl_rand = 1 and $wl_whore['pav_scene'] = 'pussy':
  724. $wl_whore['pav_location'] = iif($wl_whore['client_behavior'] = 'nice', 'private', 'public')
  725. elseif ((wl_rand = 2 or wl_rand = 3 or wl_rand = 6 or wl_rand = 7) and $wl_whore['pav_scene'] = 'blowjob') or wl_rand = 4 or wl_rand = 5:
  726. $wl_whore['pav_location'] = 'public'
  727. if wl_rand = 5: $wl_whore['client_behavior'] = 'abusive'
  728. else
  729. gt 'mod_wlife_solicitation', 'rng'
  730. end
  731. if wl_whore['pav_regular_s8'] = 1 and wl_rand = 8: wl_whore['pav_regular'] = 1
  732. if (wl_rand = 3 or wl_rand = 8) and $wl_whore['pav_scene'] = 'private' and wl_whore['pav_regular'] = 1:
  733. wl_whore['pav_condom_refusal'] = 1
  734. else
  735. wl_whore['pav_condom_refusal'] = 0
  736. end
  737. !!Generator
  738. gs 'npcgeneratec', 0, 'pavlovsk client', rand(18,45)
  739. gs 'boyStat', $npclastgenerated
  740. end
  741. if $ARGS[0] = 'std_cum_check':
  742. !!STD
  743. if pcs_apprnc = -10 and rand(1,10) < 8:
  744. wl_whore['std_mod'] = 1
  745. else
  746. wl_whore['std_mod'] = 0
  747. end
  748. !!Non-Visible Cum
  749. if cumloc[0] = 1:
  750. wl_whore['cum_vaginal_mod'] = 1
  751. else
  752. wl_whore['cum_vaginal_mod'] = 0
  753. end
  754. if cumloc[3] = 1:
  755. wl_whore['cum_anal_mod'] = 1
  756. else
  757. wl_whore['cum_anal_mod'] = 0
  758. end
  759. !!Visible Cum (Dressed)
  760. if cumloc[7] = 1 or cumloc[11] = 1 or cumloc[13] = 1 or cumloc[15] = 1:
  761. wl_whore['cum_dressed'] = 1
  762. else
  763. wl_whore['cum_dressed'] = 0
  764. end
  765. !!Visible Cum (Undressed)
  766. if cumloc[1] = 1 or cumloc[4] = 1 or cumloc[8] = 1 or cumloc[14] = 1 or cumloc[16] = 1:
  767. wl_whore['cum_undressed'] = 1
  768. else
  769. wl_whore['cum_undressed'] = 0
  770. end
  771. end
  772. if $ARGS[0] = 'exact_round':
  773. !! ARGS[1] = value you want divided
  774. !! ARGS[2] = divider
  775. !! func('mod_wlife_functions','exact_round', number, divider)
  776. !! func('mod_wlife_functions','exact_round', 12345, 7)
  777. if ARGS[2] ! 0:
  778. round_number = ARGS[1]/ARGS[2]
  779. if (ARGS[2] mod 2 ! 0 and ARGS[1] mod ARGS[2] > ARGS[2]/2) or (ARGS[2] mod 2 = 0 and ARGS[1] mod ARGS[2] >= ARGS[2]/2): round_number += 1
  780. round_number = round_number * ARGS[2]
  781. result = round_number
  782. killvar 'round_number'
  783. else
  784. '<b>Developer Note: No division by 0. Please report this and some text from the mainscreen as a bug in the whore life thread.</b>'
  785. end
  786. end
  787. --- mod_wlife_functions ---------------------------------