mod_wlife_functions.qsrc 22 KB

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