1
0

telefon.qsrc 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630
  1. # telefon
  2. ! Draw screens for mobile phone.
  3. !
  4. ! The base storage for Contacts is controlled by the Array "$contact". This array is a list of NPC identifiers
  5. ! telling us which ones are in your contact list. There are several other ancillary arrays that support the functions
  6. ! of a contact. Each of these has matching indexes to the $contact array. These are mostly used internally, but a
  7. ! writer can make use of them if they need to.
  8. !
  9. ! ContactList arrays:
  10. ! $contact[] = NPC code for contact. ('A129', 'A29', 'B13', 'C14')
  11. ! $contactIcon[] = Icon for the contact to use. If path is left off, standard phone icon folder is used. if file extension is left off, '.png' is used
  12. ! $contactOCode[] = Code to execute if call is placed to this contact
  13. ! $contactOSche[] = If statement code to determine schedule for outbound calls
  14. ! $contactICode[] = Code to execute for Incoming call
  15. ! $contactISche[] = if statement code for schedule of incoming calls
  16. ! contactAnon[] = 0 if contact number is known to Sveta, 1 for Anonymous
  17. ! contactToday[] = Calls from this contact today
  18. ! contactWeek[] = Calls from this contact this week
  19. ! contactLastCall[] = last time this Contact called
  20. !
  21. ! Add a contact with AddContact
  22. ! gs 'telefon', 'AddContact', <NPC Code>, <Icon for NPC>, <Code for Incoming Call>, <Limiter for Incoming Call>, <Code for Outgoing Call>, <Limiter for Outgoign Call>, <Anonymous=1>
  23. ! Example, to Add Mother:
  24. ! gs 'telefon', 'AddContact', 'A29', 'icon_npc1', "gs 'telefon', 'Phone_call'", "hour >= 8 and hour <= 20", "gs 'telefon', 'lover'", "hour >= 8 and hour <= 20", 0
  25. !
  26. ! Remove a contact with DeleteContact
  27. ! gs 'telefon', 'DeleteContact', <NPC Code>
  28. ! Example, to delete Mom:
  29. ! gs 'telefon', 'DeleteContact', 'A29'
  30. ! Header for Phone Screen. Keeps consistent and in one place
  31. $telefon['header'] = '<center>
  32. <b><<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>></b><br>
  33. <TABLE cellspacing="0" width="80%">
  34. <TR>
  35. <TD><img src="images/system/icon/icon_statusbar_left.png"></TD>
  36. <TD></TD>
  37. <TD align="right"><img src="images/system/icon/icon_statusbar_right.png"></TD>
  38. </TR>
  39. </TABLE><br>'
  40. ! Footer for phone screen. Body should be between these two
  41. $telefon['footer'] = '
  42. <a href="exec:gs''telefon'', ''Phone_menu''"><img src="images/system/icon/back.png"></a><br><br>
  43. <a href="exec:gs''stat''">Put Phone Away.</a><br>
  44. </center>'
  45. ! This is how we print the screnn on to the Additional Dscription window
  46. $telefon['print'] = {
  47. clr
  48. pl func('cleanHTML',$telefon['header'] + $telefon['body'] + $telefon['footer'])
  49. }
  50. ! This is the formatting function for a row in the Contact List. SHould be run as a DYNEVAL()
  51. $telefon['contact'] = {
  52. ! Contact Row in phone contact list
  53. ! $ARGS[0] = NPC icon
  54. ! $ARGS[1] = NPC Nickname
  55. ! $ARGS[2] = Code to execute for making a Call
  56. ! $ARGS[3] = if statement for determining if NPC is avaiable
  57. $telefon['ContactIcon'] = $ARGS[0]
  58. $telefon['ContactNickName'] = $ARGS[1]
  59. $telefon['ContactCallCode'] = $ARGS[2]
  60. $telefon['ContactCallSchedule'] = $ARGS[3]
  61. !If file extension is not given, .png is assumed
  62. if instr($telefon['ContactIcon'],'.') = 0:
  63. $telefon['ContactIcon'] += '.png'
  64. end
  65. !If path is not given, default phone icon path is assumed
  66. if instr($telefon['ContactIcon'],'/') = 0:
  67. $telefon['ContactIcon'] = 'images/system/phone/icons/' + $telefon['ContactIcon']
  68. end
  69. !If Contact is not in available timeframe, we disable contact calling
  70. if dyneval('result = iif(<<$telefon["ContactCallSchedule"]>>,1,0)') = 0:
  71. $telefon['ContactCallCode'] = "gs 'telefon', 'phone_call_reject'"
  72. end
  73. $result = '<TABLE cellspacing="0" width="80%"><TR>
  74. <TD><img src="<<$telefon[''ContactIcon'']>>"></TD>
  75. <TD><<$telefon[''ContactNickName'']>></TD>
  76. <TD align="right"><a href="exec:$callerid = ''<<$telefon[''ContactIcon'']>>'' & <<$telefon[''ContactCallCode'']>>"><b>Call</b></a></TD>
  77. </TR></TABLE><br>'
  78. }
  79. if $ARGS[0] = 'start':
  80. gs 'stat'
  81. gs 'telefon','phone_call_receive'
  82. if npc_QW['A192'] = 1 and week = 6 and pcs_apprnc > 80:
  83. gt 'nastja', 'pos4'
  84. elseif npc_QW['A192'] = 2 and week ! 6 and zenit ! 0 and nastjaday ! daystart:
  85. gt 'nastja', 'pos13'
  86. elseif hour >= 8 and hour <= 20 and npc_QW['A192'] = 2 and week = 6 and pcs_apprnc > 80 and nastjaday ! daystart:
  87. gt 'nastja', 'pos12'
  88. elseif npc_QW['A192'] = 5 and week = 6 and nastjaday ! daystart:
  89. gt 'nastja', 'pos22'
  90. elseif npc_QW['A192'] = 6 and nastjaday ! daystart:
  91. gt 'nastja', 'pos31'
  92. else
  93. $callerid = 'images/system/phone/icons/icon_nastja.png'
  94. gs 'telefon','phone_call_reject'
  95. end
  96. end
  97. ! Reset Contact Call Stats Daily and Weekly
  98. !
  99. ! ARGS[1] = New Week if 1, 0 if same week
  100. if $ARGS[0] = 'DailyStatRefresh':
  101. i=0
  102. :DailyStatRefLoop
  103. if i < arrsize('$contact'):
  104. contactToday[i] = 0
  105. if ARGS[1] = 1:
  106. contactWeek[i] = 0
  107. end
  108. i += 1
  109. jump 'DailyStatRefLoop'
  110. end
  111. killvar 'i'
  112. end
  113. ! Determine if any Incoming calls should happen
  114. !
  115. ! ARGS[1] = Previous totminut
  116. ! ARGS[2] = Current totminut
  117. if $ARGS[0] = 'IncomingCheck':
  118. telefIncCheck['PrevTotalMinutes'] = ARGS[1]
  119. telefIncCheck['NewTotalMinutes'] = ARGS[2]
  120. if telefIncCheck['PrevTotalMinutes'] > telefIncCheck['NewTotalMinutes'] or telefon['LastIncCallCheck'] > telefIncCheck['NewTotalMinutes'] or telefon['LastIncCallCheck'] = 0:
  121. ! Time Cheat has been used, so we should do some cleanup
  122. telefon['LastIncCallCheck'] = telefIncCheck['NewTotalMinutes']
  123. end
  124. ! Limit the number of calls per day
  125. ! right now allow every 60 minutes
  126. if telefIncCheck['NewTotalMinutes'] - telefon['LastIncCallCheck'] > 60 and menu_off = 0:
  127. telefon['LastIncCallCheck'] = telefIncCheck['NewTotalMinutes']
  128. gs 'telefon','IncomingCallChooser'
  129. end
  130. killvar 'telefIncCheck'
  131. end
  132. if $ARGS[0] = 'IncomingCallChooser':
  133. ! When an Incoming call happens, choose who it comes from
  134. ! Add Contacts
  135. i=0
  136. :telefonIncLoop1
  137. if i < arrsize('$contact'):
  138. if $contactICode[i] ! "":
  139. if dyneval('result = iif(<<$contactISche[i]>>,1,0)') = 1:
  140. j = arrsize('$telefIncCall')
  141. if contactAnon[i] = 1:
  142. $telefIncIcon[j] = "images/system/phone/decline.png"
  143. $telefIncName[j] = "Unknown Caller"
  144. else
  145. $telefIncIcon[j] = $contactIcon[i]
  146. $telefIncName[j] = $npc_nickname[$contact[i]]
  147. end
  148. $telefIncCall[j] = $contactICode[i]
  149. $telefIncNPC[j] = $contact[i]
  150. end
  151. end
  152. i += 1
  153. jump 'telefonIncLoop1'
  154. end
  155. ! Add Lovers
  156. i=0
  157. :telefonIncLoop2
  158. if i < 3 and hour > 5 and hour < 20:
  159. if pcs_lovers[i] = 1 and svidanie[i] = 0 and loverday[i] ! daystart and rand(1,7) > 5:
  160. j = arrsize('$telefIncCall')
  161. $telefIncCall[j] = "cls & gs 'telefon', 'lover', <<i>>"
  162. $telefIncIcon[j] = 'images/characters/shared/<<lover_picture[i]>>.jpg'
  163. $telefIncName[j] = $loverdesc[i]
  164. end
  165. i += 1
  166. jump 'telefonIncLoop2'
  167. end
  168. if arrsize('$telefIncCall') > 0:
  169. j = rand(0,arrsize('$telefIncCall')-1)
  170. if $telefIncNPC[j] ! "":
  171. i = arrpos('$contact',$telefIncNPC[j])
  172. contactLastCall[i] = totminut
  173. contactToday[i] += 1
  174. contactWeek[i] += 1
  175. end
  176. gs 'telefon', 'IncomingCall', $telefIncIcon[j], $telefIncName[j], $telefIncCall[j]
  177. end
  178. killvar 'i'
  179. killvar 'j'
  180. killvar '$telefIncIcon'
  181. killvar '$telefIncName'
  182. killvar '$telefIncCall'
  183. killvar '$telefIncNPC'
  184. end
  185. if $ARGS[0] = 'IncomingCall':
  186. ! $ARGS[1] = Icon for contact
  187. ! $ARGS[2] = Nickname of contact
  188. ! $ARGS[3] = Code to execute for this Call
  189. $telefonIncC['Icon'] = $ARGS[1]
  190. $telefonIncC['Name'] = $ARGS[2]
  191. $telefonIncC['Code'] = $ARGS[3]
  192. PLAY 'sound/old_phone.mp3',30
  193. $telefon['body'] = '
  194. <font size=6><<$telefonIncC["Name"]>> calling</font><br>
  195. <img src="<<$telefonIncC["Icon"]>>"><br>
  196. <br>
  197. <br>
  198. <br>
  199. <a href="exec:<<$telefonIncC["Code"]>>"><img src="images/system/phone/call_accept.png"></a>
  200. <a href="exec:gt $loc, $metka"><img src="images/system/phone/decline.png"></a><br>
  201. <b><font color="red">Your phone is ringing</font></b><br>'
  202. dynamic $telefon['print']
  203. killvar '$telefonIncC'
  204. end
  205. if $ARGS[0] = 'mobilaraz':
  206. cls
  207. cla
  208. gs'din_bad'
  209. $caller = '<<$telsob>>'
  210. gs 'telefon','phone_balance'
  211. gs 'telefon','phone_call_receive'
  212. willAgree = (rand(0, 10) > 3)
  213. '"Yes, I''m listening," says a voice from the speaker.'
  214. if month > 5 and temper > 20 and sunWeather = 1:
  215. act 'Invite to the park':
  216. cla
  217. '"Let''s go for a walk in the park."'
  218. if willAgree:
  219. '<<$telsob>>, "See you in the park in an hour."'
  220. act 'Go':gt 'parksvid'
  221. else
  222. gs 'telefon','telotkaz',$telsob
  223. end
  224. end
  225. end
  226. act 'Invite to a movie':
  227. cla
  228. '"Want to go see a movie?"'
  229. if willAgree:
  230. '<<$telsob>>, "See you at the movie theater in an hour."'
  231. act 'Go':gt 'kinosvid'
  232. else
  233. gs 'telefon','telotkaz',$telsob
  234. end
  235. end
  236. act 'Invite to the pool hall':
  237. cla
  238. '"Let''s play pool."'
  239. if willAgree:
  240. '<<$telsob>>, "See you at the pool hall in an hour."'
  241. act 'Go':gt 'billsvid'
  242. else
  243. gs 'telefon','telotkaz',$telsob
  244. end
  245. end
  246. act 'Invite to the cafe':
  247. cla
  248. '"Let''s go to the cafe."'
  249. if willAgree:
  250. '<<$telsob>>, "See you at the cafe in an hour."'
  251. act 'Go':gt 'kafesvid'
  252. else
  253. gs 'telefon','telotkaz',$telsob
  254. end
  255. end
  256. act 'Invite to the casino':
  257. cla
  258. '"Let''s go to the casino."'
  259. if willAgree:
  260. '<<$telsob>>, "See you in the casino in an hour."'
  261. act 'Go':gt 'kazinosvid'
  262. else
  263. gs 'telefon','telotkaz',$telsob
  264. end
  265. end
  266. act 'Hangup':gt 'telefon', 'fin'
  267. end
  268. if $ARGS[0] = 'callingTheLover' and loverGender[ARGS[1]] = 1:
  269. cls
  270. cla
  271. gs'din_bad'
  272. lover_number = ARGS[1]
  273. $caller = '<<$loverdesc[lover_number]>>'
  274. $telsob = $caller
  275. $callerid = 'images/characters/shared/'+lover_picture[lover_number]+'.jpg'
  276. gs 'telefon','phone_balance'
  277. gs 'telefon','phone_call_receive'
  278. willAgree = (rand(0, 10) > 3)
  279. '"Yes, I''m listening," says a voice from the speaker.'
  280. if month > 5 and temper > 20 and sunWeather = 1:
  281. act 'Invite to the park':
  282. cla
  283. '"Let''s go for a walk in the park."'
  284. if willAgree:
  285. '<<$telsob>>, "See you in the park in an hour."'
  286. act 'Go': gt 'parksvid'
  287. else
  288. gs 'telefon','telotkaz',$telsob
  289. end
  290. end
  291. end
  292. act 'Invite to a movie':
  293. cla
  294. '"Want to go see a movie?"'
  295. if willAgree:
  296. '<<$telsob>>, "See you at the movie theater in an hour."'
  297. act 'Go': gt 'kinosvid'
  298. else
  299. gs 'telefon','telotkaz',$telsob
  300. end
  301. end
  302. if $home_town = 'city':
  303. act 'Invite to the pool hall':
  304. cla
  305. '"Let''s play pool."'
  306. if willAgree:
  307. '<<$telsob>>, "See you at the pool hall in an hour."'
  308. act 'Go': gt 'billsvid'
  309. else
  310. gs 'telefon','telotkaz',$telsob
  311. end
  312. end
  313. end
  314. act 'Invite to the cafe':
  315. cla
  316. '"Let''s go to the cafe."'
  317. if willAgree:
  318. '<<$telsob>>, "See you at the cafe in an hour."'
  319. act 'Go': gt 'kafesvid'
  320. else
  321. gs 'telefon','telotkaz',$telsob
  322. end
  323. end
  324. act 'Invite to the casino':
  325. cla
  326. '"Let''s go to the casino."'
  327. if willAgree:
  328. '<<$telsob>>, "See you in the casino in an hour."'
  329. act 'Go': gt 'kazinosvid'
  330. else
  331. gs 'telefon','telotkaz',$telsob
  332. end
  333. end
  334. act 'I think we should break up...':
  335. cla
  336. 'She sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  337. gs 'lover', 'remove', lover_number
  338. act 'Hangup':gt 'telefon', 'fin'
  339. end
  340. act 'Hangup':gt 'telefon', 'fin'
  341. end
  342. if $ARGS[0] = 'callingTheLover' and loverGender[ARGS[1]] = 0:
  343. cls
  344. cla
  345. gs'din_bad'
  346. lover_number = ARGS[1]
  347. $caller = '<<$loverdesc[lover_number]>>'
  348. $callerid = 'images/characters/shared/'+lover_picture[lover_number]+'.jpg'
  349. gs 'telefon','phone_balance'
  350. gs 'telefon','phone_call_receive'
  351. willAgree = (rand(0, 10) > 3)
  352. '"Yes, I''m listening," says a voice from the speaker.'
  353. if month > 5 and temper > 20 and sunWeather = 1:
  354. act 'Invite to the park':
  355. cla
  356. '"Let''s go for a walk in the park."'
  357. if willAgree:
  358. '<<$loverdesc[lover_number]>>, "See you in the park in an hour."'
  359. act 'Go':gt 'svidboy', 'parksvid'
  360. else
  361. gs 'telefon','telotkaz',$loverdesc[lover_number]
  362. end
  363. end
  364. end
  365. act 'Invite to a movie':
  366. cla
  367. '"Want to go see a movie?"'
  368. if willAgree:
  369. '<<$loverdesc[lover_number]>>, "See you at the movie theater in an hour."'
  370. act 'Go':gt 'svidboy', 'kinosvid'
  371. else
  372. gs 'telefon','telotkaz',$loverdesc[lover_number]
  373. end
  374. end
  375. if $home_town = 'city':
  376. act 'Invite to the pool hall':
  377. cla
  378. '"Let''s play pool."'
  379. if willAgree:
  380. '<<$loverdesc[lover_number]>>, "See you at the pool hall in an hour."'
  381. act 'Go':gt 'svidboy', 'billsvid'
  382. else
  383. gs 'telefon','telotkaz',$loverdesc[lover_number]
  384. end
  385. end
  386. end
  387. act 'Invite to the cafe':
  388. cla
  389. '"Let''s go to the cafe."'
  390. if willAgree:
  391. '<<$loverdesc[lover_number]>>, "See you at the cafe in an hour."'
  392. act 'Go':gt 'svidboy', 'kafesvid'
  393. else
  394. gs 'telefon','telotkaz',$loverdesc[lover_number]
  395. end
  396. end
  397. act 'I think we should break up...':
  398. cla
  399. 'He sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  400. gs 'lover', 'remove', lover_number
  401. act 'Hangup':gt 'telefon', 'fin'
  402. end
  403. act 'Hangup':gt 'telefon', 'fin'
  404. end
  405. !! NPC Date
  406. !! ARGS[1] = contactlist index
  407. !! $ARGS[2] = Date Location
  408. if $ARGS[0] = 'NPCDate':
  409. Call4Date["ContactIndex"] = ARGS[1]
  410. $Call4Date["Location"] = $ARGS[2]
  411. $Call4Date["NPC"] = $contact[Call4Date['ContactIndex']]
  412. $Call4Date["CallerName"] = $npc_nickname[$Call4Date["NPC"]]
  413. !! These variables are setup for certain downstream functions
  414. $caller = $Call4Date["CallerName"]
  415. $callerid = $contactIcon[Call4Date["ContactIndex"]]
  416. $boydesc = $Call4Date["CallerName"]
  417. pcs_mood += 10
  418. npc_rel[$Call4Date["NPC"]] += 3
  419. if $Call4Date["Location"] = 'park':
  420. if npc_gender[$Call4Date["NPC"]] = 0:
  421. gt 'dateM','datepark'
  422. else
  423. gt 'dateF','datepark'
  424. end
  425. elseif $Call4Date["Location"] = 'movie':
  426. if npc_gender[$Call4Date["NPC"]] = 0:
  427. gt 'dateM','datecinema'
  428. else
  429. !Not implemented yet
  430. !gt 'dateF','datecinema'
  431. end
  432. elseif $Call4Date["Location"] = 'bar':
  433. if npc_gender[$Call4Date["NPC"]] = 0:
  434. gt 'dateM','datebar'
  435. else
  436. gt 'dateF','datebar'
  437. end
  438. elseif $Call4Date["Location"] = 'cafe':
  439. if npc_gender[$Call4Date["NPC"]] = 0:
  440. gt 'dateM','datecafe'
  441. else
  442. !Not implemented yet
  443. !gt 'dateF','datecafe'
  444. end
  445. end
  446. killvar 'Call4Date'
  447. killvar '$Call4Date'
  448. end
  449. !! Sveta Calls the NPC
  450. !! ARGS[1] = contactlist index
  451. if $ARGS[0] = 'SvetaCallsNPC':
  452. cls
  453. cla
  454. Call4Date["ContactIndex"] = ARGS[1]
  455. $Call4Date["NPC"] = $contact[Call4Date['ContactIndex']]
  456. $Call4Date["CallerName"] = $npc_nickname[$Call4Date["NPC"]]
  457. if npc_gender[$Call4Date["NPC"]] = 0:
  458. $Call4Date["NPC-he"] = 'he'
  459. $Call4Date["NPC-He"] = 'He'
  460. $Call4Date["NPC-his"] = 'his'
  461. $Call4Date["NPC-His"] = 'His'
  462. else
  463. $Call4Date["NPC-he"] = 'her'
  464. $Call4Date["NPC-He"] = 'Her'
  465. $Call4Date["NPC-his"] = 'hers'
  466. $Call4Date["NPC-His"] = 'Hers'
  467. end
  468. !! These variables are setup for certain downstream functions
  469. $caller = $Call4Date["CallerName"]
  470. $callerid = $contactIcon[Call4Date["ContactIndex"]]
  471. gs 'telefon','phone_balance'
  472. gs 'telefon','phone_call_receive'
  473. Call4Date["willAgree"] = (rand(0, 10) > 3)
  474. '"Yes, I''m listening," says a voice from the speaker.'
  475. if month > 5 and temper > 20 and sunWeather = 1:
  476. act 'Invite to the park':
  477. cla
  478. '"Let''s go for a walk in the park."'
  479. if Call4Date["willAgree"]:
  480. '<<$Call4Date["CallerName"]>>, "See you in the park in an hour."'
  481. act 'Go':gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'park'
  482. else
  483. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  484. end
  485. end
  486. end
  487. act 'Invite to a movie':
  488. cla
  489. '"Want to go see a movie?"'
  490. if Call4Date["willAgree"]:
  491. '<<$Call4Date["CallerName"]>>, "See you at the movie theater in an hour."'
  492. act 'Go':gt gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'movie'
  493. else
  494. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  495. end
  496. end
  497. if $home_town = 'city':
  498. act 'Invite to the bar':
  499. cla
  500. '"Let''s go to the bar."'
  501. if Call4Date["willAgree"]:
  502. '<<$Call4Date["CallerName"]>>, "See you at the bar in an hour."'
  503. act 'Go':gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'bar'
  504. else
  505. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  506. end
  507. end
  508. end
  509. act 'Invite to the cafe':
  510. cla
  511. '"Let''s go to the cafe."'
  512. if Call4Date["willAgree"]:
  513. '<<$Call4Date["CallerName"]>>, "See you at the cafe in an hour."'
  514. act 'Go':gt gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'cafe'
  515. else
  516. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  517. end
  518. end
  519. act 'I think we should break up...':
  520. cla
  521. '<<$Call4Date["NPC-He"]>> sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  522. gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  523. act 'Hangup':gt 'telefon', 'fin'
  524. end
  525. act 'Hangup':gt 'telefon', 'fin'
  526. killvar 'Call4Date'
  527. killvar '$Call4Date'
  528. killvar '$DateNickName'
  529. end
  530. ! NPC Calls Sveta for a Date
  531. ! ARGS[1] = $contact index number
  532. if $ARGS[0] = 'NPCCallsForDate':
  533. cla
  534. clr
  535. Call4Date["ContactIndex"] = ARGS[1]
  536. $Call4Date["NPC"] = $contact[Call4Date['ContactIndex']]
  537. !!Pick a nickname that caller will use for Sveta
  538. $DateNickName[0] = 'cutie'
  539. $DateNickName[1] = 'honey'
  540. $DateNickName[2] = 'sweetie'
  541. $DateNickName[3] = 'baby'
  542. $DateNickName[4] = 'hot stuff'
  543. $DateNickName[5] = '<<$pcs_nickname>>'
  544. $Call4Date['SvetaName'] = $DateNickName[rand(0, arrsize('$DateNickName'))]
  545. $Call4Date['CallerName'] = $npc_nickname[$Call4Date["NPC"]]
  546. !! These variables are setup for certain downstream functions
  547. $caller = $Call4Date["CallerName"]
  548. $callerid = $contactIcon[Call4Date["ContactIndex"]]
  549. 'Hey <<$Call4Date["SvetaName"]>>, it''s me, <<$Call4Date["CallerName"]>>. How''s it going?'
  550. act 'Answer':
  551. cla
  552. '"Pretty good, you?"'
  553. '<<$Call4Date["CallerName"]>>, "Great, but I kind of miss you, can we meet today?"'
  554. if week > 1 and week < 5 and workKafe = 1:
  555. act 'Sorry, I''m working today':
  556. cla
  557. '"Sorry, I''m working today."'
  558. '<<$Call4Date["CallerName"]>>, "Okay, I''ll call tomorrow."'
  559. act 'Hang up':gt 'telefon', 'fin'
  560. end
  561. end
  562. act 'Tonight':
  563. cla
  564. npc_rel[$Call4Date["NPC"]] += 1
  565. contMeetDay[Call4Date["ContactIndex"]] = daystart
  566. '"How about this evening?"'
  567. '<<$Call4Date["CallerName"]>>, "Sounds great! When can I come to pick you up?"'
  568. act 'Pick a time':
  569. cla
  570. contMeetHour[Call4Date["ContactIndex"]] = input ("When do you want to be picked up. It is now <<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>>. [Enter the hour only 0 - 20]")
  571. if contMeetHour[Call4Date["ContactIndex"]] <= hour or contMeetHour[Call4Date["ContactIndex"]] > 23:contMeetHour[Call4Date["ContactIndex"]] = 20
  572. '"How about <<contMeetHour[Call4Date["ContactIndex"]]>>:00?."'
  573. '<<$Call4Date["CallerName"]>>, "Okay <<$Call4Date["SvetaName"]>>, see you at <<contMeetHour[Call4Date["ContactIndex"]]>>:00."'
  574. act 'Hang up':gt 'telefon', 'fin'
  575. end
  576. end
  577. act 'Maybe tomorrow':
  578. cla
  579. npc_rel[$Call4Date["NPC"]] -= 1
  580. '"I''m busy today. Call tomorrow."'
  581. if npc_rel[$Call4Date["NPC"]] <= 0:'<<$Call4Date["CallerName"]>>, Are you fucking me, you know what. Suck my dick.' & gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  582. if npc_rel[$Call4Date["NPC"]] > 0:'(<<$Call4Date["CallerName"]>>) - Okay, I''ll call tomorrow.'
  583. act 'Hang up': gt 'telefon', 'fin'
  584. end
  585. act 'I think we should break up...':
  586. cla
  587. 'He sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  588. gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  589. act 'Hang up': gt 'telefon', 'fin'
  590. end
  591. end
  592. act 'Hang up (end relationship)':
  593. cla
  594. gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  595. gt 'telefon', 'fin'
  596. end
  597. killvar 'Call4Date'
  598. killvar '$Call4Date'
  599. killvar '$DateNickName'
  600. end
  601. if $ARGS[0] = 'lover' and loverGender[ARGS[1]] = 0:
  602. cla
  603. clr
  604. lover_number = ARGS[1]
  605. ring = 0
  606. lover_days = daystart - loverday[lover_number]
  607. !gs 'stat'
  608. !gs 'telefon','phone_call_receive'
  609. svetrand = rand(0, 5)
  610. if svetrand = 0:$sveta = 'cutie'
  611. if svetrand = 1:$sveta = 'honey'
  612. if svetrand = 2:$sveta = 'sweetie'
  613. if svetrand = 3:$sveta = 'baby'
  614. if svetrand = 4:$sveta = 'hot stuff'
  615. if svetrand = 5:$sveta = '<<$pcs_nickname>>'
  616. 'Hey <<$sveta>>, it''s me, <<$loverdesc[lover_number]>>. How''s it going?'
  617. act 'Reply':
  618. cla
  619. '"Pretty good, you?"'
  620. '<<$loverdesc[lover_number]>>, "Great, but I kind of miss you, can we meet today?"'
  621. if (pregchem / 24) <= lover_days and knowpreg = 1 and pregtalk = 0:
  622. act 'Tell him he''s going to be a dad':
  623. cla
  624. pregtalk = 1
  625. '"Honey, I''m pregnant with your child."'
  626. if haraklover[lover_number] = 0:
  627. if loverrelation[lover_number] >= 90:
  628. loverlove[lover_number] = 1
  629. '<<$loverdesc[lover_number]>>, "This is wonderful! We have to celebrate!"'
  630. 'You start talking about living together. <<$loverdesc[lover_number]>> tells you that he is not against it in principle, but first he wants you to meet his parents.'
  631. 'He warns you that his mother is very demanding and rigorous. <<$loverdesc[lover_number]>> says that he loves his mother and does not want to upset her. Therefore, you must look gorgeous, wear a dress from a boutique, have well-groomed and curled hair and makeup in moderation.'
  632. 'When you are totally ready <<$loverdesc[lover_number]>> will take you to his parents.'
  633. act 'Hang up':gt 'telefon', 'fin'
  634. act 'Meet tonight':
  635. cla
  636. svidanie[lover_number] = 1
  637. '"How about this evening?"'
  638. '<<$loverdesc[lover_number]>>, "Sounds great! When can I come to pick you up?"'
  639. act 'Pick a time':
  640. cla
  641. meetday[lover_number] = daystart
  642. meethour[lover_number] = input ("When do you want to be picked up? It is now <<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>>. [Enter the hour only 0 - 20]")
  643. if meethour[lover_number] <= hour or meethour[lover_number] > 23:meethour[lover_number] = 20
  644. '"How about <<meethour[lover_number]>>:00?"'
  645. '<<$loverdesc[lover_number]>>, "Okay <<$sveta>>, see you at <<meethour[lover_number]>>:00."'
  646. act 'Hang up':gt 'telefon', 'fin'
  647. end
  648. end
  649. elseif loverrelation[lover_number] < 90:
  650. money += 20000
  651. '<<$loverdesc[lover_number]>> "I''m not yet ready to become a dad. I''ll give you the money for an abortion. Get rid of the child.'
  652. act 'Hang up':gt 'telefon', 'fin'
  653. end
  654. elseif haraklover[lover_number] = 1:
  655. money += 20000
  656. '<<$loverdesc[lover_number]>> "I''m not yet ready to become a dad. I''ll give you the money get an abortion.'
  657. act 'Hang up':gt 'telefon', 'fin'
  658. elseif haraklover[lover_number] = 2:
  659. pregtalk = 0
  660. '<<$loverdesc[lover_number]>>, "What? You whore! Someone fucked your pussy and now you drop it on me. You''re dumped.'
  661. gs 'lover', 'remove', lover_number
  662. act 'Hang up':gt 'telefon', 'fin'
  663. end
  664. end
  665. elseif (pregchem / 24) > lover_days and knowpreg = 1 and pregtalk = 0:
  666. act 'Honey, you will soon become a dad':
  667. cla
  668. loverrelation[lover_number] = 0
  669. '"Honey, I''m pregnant with your child."'
  670. '<<$loverdesc[lover_number]>>, "How the fuck did I manage that? Unless I own a time-machine and went back to before we met and fucked you, it''s someone elses, go and tell him. I don''t want to see you again, goodbye."'
  671. act 'Hang up.':gt 'telefon', 'fin'
  672. end
  673. elseif week > 1 and week < 5 and workKafe = 1:
  674. act 'Sorry, I''m working today':
  675. cla
  676. '"Sorry, I''m working today."'
  677. '<<$loverdesc[lover_number]>>, "Okay, I''ll call tomorrow."'
  678. act 'Hang up':gt 'telefon', 'fin'
  679. end
  680. end
  681. act 'Tonight':
  682. cla
  683. loverrelation[lover_number] += 1
  684. svidanie[lover_number] = 1
  685. meetday[lover_number] = daystart
  686. '"How about this evening?"'
  687. '<<$loverdesc[lover_number]>>, "Sounds great! When can I come to pick you up?"'
  688. act 'Pick a time':
  689. cla
  690. meethour[lover_number] = input ("When do you want to be picked up. It is now <<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>>. [Enter the hour only 0 - 20]")
  691. if meethour[lover_number] <= hour or meethour[lover_number] > 23:meethour[lover_number] = 20
  692. '"How about <<meethour[lover_number]>>:00?."'
  693. '<<$loverdesc[lover_number]>>, "Okay <<$sveta>>, see you at <<meethour[lover_number]>>:00."'
  694. act 'Hang up':gt 'telefon', 'fin'
  695. end
  696. end
  697. act 'Maybe tomorrow':
  698. cla
  699. loverrelation[lover_number] -= 1
  700. '"I''m busy today. Call tomorrow."'
  701. if loverrelation[lover_number] <= 0:'<<$loverdesc[lover_number]>>, Are you fucking me, you know what. Suck my dick.' & gs 'lover', 'remove', lover_number
  702. if loverrelation[lover_number] > 0:'(<<$loverdesc[lover_number]>>) - Okay, I''ll call tomorrow.'
  703. act 'Hang up': gt 'telefon', 'fin'
  704. end
  705. act 'I think we should break up...':
  706. cla
  707. 'He sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  708. gs 'lover', 'remove', lover_number
  709. act 'Hang up': gt 'telefon', 'fin'
  710. end
  711. end
  712. act 'Hang up (end relationship)':
  713. cla
  714. gs 'lover', 'remove', lover_number
  715. gt 'telefon', 'fin'
  716. end
  717. end
  718. if $ARGS[0] = 'lover' and loverGender[ARGS[1]] = 1:
  719. cla
  720. clr
  721. lover_number = ARGS[1]
  722. ring = 0
  723. lover_days = daystart - loverday[lover_number]
  724. !gs 'stat'
  725. !gs 'telefon','phone_call_receive'
  726. svetrand = rand(0, 5)
  727. if svetrand = 0:$sveta = 'cutie'
  728. if svetrand = 1:$sveta = 'honey'
  729. if svetrand = 2:$sveta = 'sweetie'
  730. if svetrand = 3:$sveta = 'baby'
  731. if svetrand = 4:$sveta = 'hot stuff'
  732. if svetrand = 5:$sveta = '<<$pcs_nickname>>'
  733. 'Hey <<$sveta>>, it''s me, <<$loverdesc[lover_number]>>. How''s it going?'
  734. act 'Reply':
  735. cla
  736. '"Pretty good, you?"'
  737. '<<$loverdesc[lover_number]>>, "Great, but I kind of miss you, can we meet today?"'
  738. act 'Tonight':
  739. cla
  740. loverrelation[lover_number] += 1
  741. svidanie[lover_number] = 1
  742. meetday[lover_number] = daystart
  743. '"How about this evening?"'
  744. '<<$loverdesc[lover_number]>>, "Sounds great! When can I come to pick you up?"'
  745. act 'Pick a time':
  746. cla
  747. meethour[lover_number] = input ("When do you want to be picked up. It is now <<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>>. [Enter the hour only 0 - 20]")
  748. if meethour[lover_number] <= hour or meethour[lover_number] > 23:meethour[lover_number] = 20
  749. '"How about <<meethour[lover_number]>>:00?."'
  750. '<<$loverdesc[lover_number]>>, "Okay <<$sveta>>, see you at <<meethour[lover_number]>>:00."'
  751. act 'Hang up':gt 'telefon', 'fin'
  752. end
  753. end
  754. act 'Maybe tomorrow':
  755. cla
  756. loverrelation[lover_number] -= 1
  757. '"I''m busy today. Call tomorrow."'
  758. if loverrelation[lover_number] <= 0:'<<$loverdesc[lover_number]>>, Are you fucking me, you know what. Fuck off.' & gs 'lover', 'remove', lover_number
  759. if loverrelation[lover_number] > 0:'(<<$loverdesc[lover_number]>>) - Okay, I''ll call tomorrow.'
  760. act 'Hang up': gt 'telefon', 'fin'
  761. end
  762. act 'I think we should break up...':
  763. cla
  764. 'She sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  765. gs 'lover', 'remove', lover_number
  766. act 'Hang up': gt 'telefon', 'fin'
  767. end
  768. end
  769. act 'Hang up (end relationship)':
  770. cla
  771. gs 'lover', 'remove', lover_number
  772. gt 'telefon', 'fin'
  773. end
  774. end
  775. if $ARGS[0] = 'phone_ring':
  776. $telefon['body'] = '
  777. <font size=6><<$caller>> calling</font><br>
  778. <img src="<<$callerid>>"><br>
  779. <br>
  780. <br>
  781. <br>
  782. <br>'
  783. dynamic $telefon['print']
  784. end &! --- phone_ring ---
  785. if $ARGS[0] = 'phone_call_receive':
  786. $telefon['body'] = '
  787. <font size=6>Talking to <<$caller>></font><br>
  788. <img src="<<$callerid>>"><br>'
  789. dynamic $telefon['print']
  790. end &! --- phone_call_receive ---
  791. if $ARGS[0] = 'phone_balance':
  792. if balans < 4:
  793. $telefon['body'] = '
  794. <font size=6>Not enough credit on your account</font><br>
  795. <img src="<<$callerid>>"><br><br>
  796. <a href="exec:gs ''telefon'', ''Phone_menu'' "><img src="images/system/phone/decline.png"></a><br>'
  797. dynamic $telefon['print']
  798. wait 3500
  799. cla
  800. gt $loc, $metka
  801. elseif balans >= 4:
  802. balans -= 4
  803. end
  804. end &! --- phone_balance ---
  805. if $ARGS[0] = 'Phone_call':
  806. $telefon['body'] = '
  807. <font size=6>Calling <<$npc_nickname[''A29'']>></font><br>
  808. <img src="images/system/phone/icons/icon_npc1.png"><br><br>
  809. <a href="exec:gs ''telefon'', ''Phone_contactlist'' "><img src="images/system/phone/decline.png"></a><br>'
  810. dynamic $telefon['print']
  811. wait 1500
  812. minut += 1
  813. $callerid = 'images/system/phone/icons/icon_npc1.png'
  814. gs 'telefon', 'phone_balance'
  815. $callerid = 'images/system/phone/icons/icon_npc1.png'
  816. gs 'telefon', 'phone_call_reject'
  817. end &! --- Phone_call ---
  818. if $ARGS[0] = 'phone_call_reject':
  819. $telefon['body'] = '
  820. <font size=6>Calling....</font><br>
  821. <img src="<<$callerid>>"><br><br>
  822. <a href="exec:gs ''telefon'', ''Phone_contactlist'' "><img src="images/system/phone/decline.png"></a><br>'
  823. dynamic $telefon['print']
  824. end &! --- phone_call_reject ---
  825. if $ARGS[0] = 'Phone_megafon':
  826. $telefon['body'] = '
  827. <font size=6>MegaFon</font><br>
  828. <img src="<<FUNC(''$phone_theme'')>>icon_megafon.png" height="80" width="80"><br><br>
  829. <b>The balance in the account:</b>
  830. <font size=5><<balans>> ₽.</font><br>'
  831. dynamic $telefon['print']
  832. end &! --- Phone_megafon ---
  833. if $ARGS[0] = 'AddContact':
  834. ! $ARGS[1] = NPC Array identifier
  835. ! $ARGS[2] = Icon
  836. ! $ARGS[3] = Code to execute for Call out
  837. ! $ARGS[4] = If statement code to determine schedule for outbound calls
  838. ! $ARGS[5] = Code to execute for Incoming call
  839. ! $ARGS[6] = if statement code for schedule of incoming calls
  840. ! ARGS[7] = Anonymous? 0 if not, 1 if yes
  841. $telefonCon['NPC'] = $ARGS[1]
  842. $telefonCon['Icon'] = $ARGS[2]
  843. $telefonCon['OutCode'] = $ARGS[3]
  844. $telefonCon['OutSched'] = $ARGS[4]
  845. $telefonCon['InCode'] = $ARGS[5]
  846. $telefonCon['InSched'] = $ARGS[6]
  847. telefonCon['Anonymous'] = ARGS[7]
  848. telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])
  849. if telefonCon['ContactListID'] = -1:
  850. telefonCon['ContactListID'] = arrsize('$contact')
  851. $contact[telefonCon['ContactListID']] = $telefonCon['NPC']
  852. end
  853. $contactIcon[telefonCon['ContactListID']] = $telefonCon['Icon']
  854. $contactOCode[telefonCon['ContactListID']] = $telefonCon['OutCode']
  855. $contactOSche[telefonCon['ContactListID']] = $telefonCon['OutSched']
  856. $contactICode[telefonCon['ContactListID']] = $telefonCon['InCode']
  857. $contactISche[telefonCon['ContactListID']] = $telefonCon['InSched']
  858. contactAnon[telefonCon['ContactListID']] = telefonCon['Anonymous']
  859. killvar 'telefonCon'
  860. killvar '$telefonCon'
  861. end &! --- AddContact ---
  862. if $ARGS[0] = 'DeleteContact':
  863. ! $ARGS[1] = NPC Array identifier
  864. $telefonCon['NPC'] = $ARGS[1]
  865. telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])
  866. if telefonCon['ContactListID'] > -1:
  867. killvar '$contact', telefonCon['ContactListID']
  868. killvar '$contactIcon', telefonCon['ContactListID']
  869. killvar '$contactCode', telefonCon['ContactListID']
  870. end
  871. killvar 'telefonCon'
  872. killvar '$telefonCon'
  873. end &! --- AddContact ---
  874. if $ARGS[0] = 'ContactList':
  875. $telefon['body'] = '
  876. <font size=6>Contacts</font><br>
  877. <img src="<<FUNC(''$phone_theme'')>>icon_call.png" height="80" width="80"><br><br>'
  878. !!iterating all Contacts
  879. i=0
  880. :contactloop2
  881. if i < arrsize('$contact'):
  882. if contactAnon[i] = 0:
  883. $telefon['body'] += dyneval($telefon['contact'],$contactIcon[i],$npc_nickname[$contact[i]],$contactOCode[i],$contactOSche[i])
  884. end
  885. i += 1
  886. jump 'contactloop2'
  887. end
  888. ! Oddball Contacts
  889. if telalla > 0:
  890. $telefon['body'] += dyneval($telefon['contact'],'icon_ira1','Alla',"$telsob = 'Alla' & gt 'telefon', 'mobilaraz'","hour >= 8 and hour <= 20")
  891. end
  892. if telmasha > 0:
  893. $telefon['body'] += dyneval($telefon['contact'],'icon_masha','Masha',"$telsob = 'Masha' & gt 'telefon', 'mobilaraz'","hour >= 8 and hour <= 20")
  894. end
  895. !! iterating all lovers
  896. lover_number = 0
  897. :loverloop2
  898. if pcs_lovers[lover_number] = 1 and svidanie[lover_number] = 0:
  899. $telefon['body'] += dyneval($telefon['contact'],'icon_bf'+lover_picture[lover_number],$loverdesc[lover_number],"lover_number = <<lover_number>> & gt 'telefon', 'callingTheLover', <<lover_number>>","hour > 6 and hour < 20")
  900. end
  901. lover_number += 1
  902. if lover_number < arrsize('pcs_lovers'): jump 'loverloop2'
  903. dynamic $telefon['print']
  904. killvar 'i'
  905. killvar 'lover_number'
  906. end &! --- ContactList ---
  907. if $ARGS[0] = 'Phone_contactlist':
  908. $telefon['body'] = '
  909. <font size=6>Contacts</font><br>
  910. <img src="<<FUNC(''$phone_theme'')>>icon_call.png" height="80" width="80"><br><br>'
  911. if StoryLine = 1:$telefon['body'] += dyneval($telefon['contact'],'icon_npc1',$npc_nickname['A29'],"gs 'telefon', 'Phone_call'")
  912. if hour >= 8 and hour <= 19:
  913. if telalla > 0:
  914. $telefon['body'] += dyneval($telefon['contact'],'icon_ira1','Alla',"$telsob = 'Alla' & gt 'telefon', 'mobilaraz'")
  915. end
  916. if telmasha > 0:
  917. $telefon['body'] += dyneval($telefon['contact'],'icon_masha','Masha',"$telsob = 'Masha' & gt 'telefon', 'mobilaraz'")
  918. end
  919. if telkat > 0:
  920. $telefon['body'] += dyneval($telefon['contact'],'icon_kat','Kate',"$telsob = 'Kate' & gt 'telefon', 'mobilaraz'")
  921. end
  922. !! iterating all lovers
  923. lover_number = 0
  924. :loverloop
  925. if pcs_lovers[lover_number] = 1 and svidanie[lover_number] = 0:
  926. $telefon['body'] += dyneval($telefon['contact'],'icon_bf'+lover_picture[lover_number],$loverdesc[lover_number],"lover_number = <<lover_number>> & gt 'telefon', 'callingTheLover', <<lover_number>>")
  927. end
  928. lover_number += 1
  929. if lover_number < arrsize('pcs_lovers'): jump 'loverloop'
  930. killvar 'lover_number'
  931. else
  932. if telalla > 0:
  933. $telefon['body'] += dyneval($telefon['contact'],'icon_ira1','Alla',"gs 'telefon', 'phone_call_reject'")
  934. end
  935. if telmasha > 0:
  936. $telefon['body'] += dyneval($telefon['contact'],'icon_masha','Masha',"gs 'telefon', 'phone_call_reject'")
  937. end
  938. if telkat > 0:
  939. $telefon['body'] += dyneval($telefon['contact'],'icon_kat','Kate',"gs 'telefon', 'phone_call_reject'")
  940. end
  941. !! iterating all lovers
  942. lover_number = 0
  943. :loverunavailableloop
  944. if pcs_lovers[lover_number] = 1 and svidanie[lover_number] = 0:
  945. $telefon['body'] += dyneval($telefon['contact'],'icon_bf'+lover_picture[lover_number],$loverdesc[lover_number],"lover_number = <<lover_number>> & gt 'telefon', 'phone_call_reject'")
  946. end
  947. lover_number += 1
  948. if lover_number < arrsize('pcs_lovers'): jump 'loverunavailableloop'
  949. killvar 'lover_number'
  950. end
  951. if npc_QW['A192'] > 0:
  952. $telefon['body'] += dyneval($telefon['contact'],'icon_nastja',$npc_nickname['A192'],"gs 'telefon', 'start'")
  953. end
  954. dummyas = arrsize('$contact')
  955. :din_bad_as
  956. dummyas -= 1
  957. if dummyas >= 0:
  958. pl '<<$contact[dummyas]>>'
  959. jump 'din_bad_as'
  960. end
  961. killvar 'dummyas'
  962. if arrsize('$contact')>0:$telefon['body'] += '<a href="exec:gs ''telefon'', ''Edit_Custom_list'' "><b>Edit Contacts</b></a><br>'
  963. dynamic $telefon['print']
  964. end &! --- Phone_contactlist ---
  965. if $ARGS[0] = 'Edit_Custom_list':
  966. clr
  967. dummyas = arrsize('$contact')
  968. :din_bad_as1
  969. dummyas -= 1
  970. if dummyas >= 0:
  971. $dummyedit = $contact[dummyas]
  972. $dummyedit1 = dyneval('$result = ''</a><a href="exec:killvar ''''$contact'''',<<dummyas>> & gs ''''telefon'''', ''''Edit_Custom_list'''' "><b>Remove</b>'' ')
  973. $dummyedit2 = $replace($dummyedit,'<b>Call</b>',$dummyedit1)
  974. pl $dummyedit2
  975. jump 'din_bad_as1'
  976. end
  977. killvar 'dummyas'
  978. killvar 'dummyedit'
  979. killvar 'dummyedit1'
  980. killvar 'dummyedit2'
  981. pl'<center><a href="exec:gs ''telefon'', ''Phone_menu'' "><img src="images/system/icon/back.png"></a></center>'
  982. !dynamic $telefon['print']
  983. end &! --- Edit_Custom_list ---
  984. if $ARGS[0] = 'Phone_notebook':
  985. gs 'housing', 'rent'
  986. $telefon['body'] = '
  987. <font size=6>Planner</font><br>
  988. <img src="<<FUNC(''$phone_theme'')>>icon_notebook.png" height="80" width="80"><br>
  989. <<year>>-<<$month>>-<<day>>, <<$week[week]>><br><br>'
  990. rent1 = -1
  991. rent4 = -1
  992. if home_owned[1] > 0 and ArendHouseSL > 0:rent1 = ArendHouseSL
  993. if home_owned[4] > 0 and ArendHouseSL4 > 0:rent4 = ArendHouseSL4
  994. d1 = day
  995. w1 = week
  996. m1 = month
  997. y1 = year
  998. i = 0
  999. $list = '<br>&emsp;<b>•</b> '
  1000. :pnotebook
  1001. daynum = daystart+i
  1002. $calendarday = ''
  1003. if m1 = 1 and d1 >= 1 and d1 <= 8:
  1004. $calendarday += $list + 'New Year holidays'
  1005. if d1 = 1:$calendarday += ', New Year'
  1006. if d1 = 7:$calendarday += ', Christmas'
  1007. end
  1008. if m1 = 2 and d1 = 23:$calendarday += $list + 'Defender of Fatherland Day'
  1009. if m1 = 3 and d1 = 8:$calendarday += $list + 'Women''s Day'
  1010. if m1 = 5 and d1 = 1:$calendarday += $list + 'Spring and Labor Day'
  1011. if m1 = 5 and d1 = 2:$calendarday += $list + 'National holiday'
  1012. if m1 = 5 and d1 = 9:$calendarday += $list + 'Victory Day'
  1013. if m1 = 6 and d1 = 12:$calendarday += $list + 'Russia Day'
  1014. if m1 = 6 and d1 = 13:$calendarday += $list + 'National holiday'
  1015. if m1 = 11 and d1 = 4:$calendarday += $list + 'Unity Day'
  1016. if storyline = 1 and SchoolAtestat = 0:
  1017. if m1 = 1 and d1 = 1:$calendarday += $list + 'First day of Winter break.'
  1018. if m1 = 1 and d1 = 15:$calendarday += $list + 'Last day of Winter break.'
  1019. if m1 = 3 and d1 = 20:$calendarday += $list + 'First day of Spring break.'
  1020. if m1 = 3 and d1 = 26:$calendarday += $list + 'Last day of Spring break.'
  1021. if school_year = 2003 and y1 = 2020 and m1 = 5 and d1 = 25:$calendarday += $list + 'Graduation Day!'
  1022. if school_year = 2004 and y1 = 2021 and m1 = 6 and d1 = 1:$calendarday += $list + 'First day of Summer break.'
  1023. if m1 = 8 and d1 = 31:$calendarday += $list + 'Last day of Summer break.'
  1024. if m1 = 11 and d1 = 4:$calendarday += $list + 'First day of Autumn break.'
  1025. if m1 = 11 and d1 = 11:$calendarday += $list + 'Last day of Autumn break.'
  1026. end
  1027. if daynum >= lastmens+28 and daynum < lastmens+31:$calendarday += $list + '<font color=''red''><b>Menstruation!</b></font>'
  1028. if daynum >= lastmens+12 and daynum < lastmens+14:$calendarday += $list + '<font color=#336600><b>Ovulation!</b></font>'
  1029. if pregchem >= 6720:$calendarday += $list + '<font color=''red''><b>Birthing day!</b></font>'
  1030. if w1 < 5 and (workSec >= 1 or PersSecWork = 1):$calendarday += $list + 'Working as a secretary. <i>(9:00 - 17:00)</i>'
  1031. if w1 < 5 and workFabrika = 1:
  1032. $calendarday += $list + 'Working as a seamstress. '
  1033. if age < 18:$calendarday += '<i>(16:00 - 20:00)</i>' else $calendarday += '<i>(8:00 - 16:00)</i>'
  1034. end
  1035. if w1 > 1 and w1 <= 5 and workhosp = 1:$calendarday += $list + 'Working as nurse. <i>(8:00 - 16:00)</i>'
  1036. if worksalon = 1 and (w1 = 1 or w1 = 3 or w1 = 5):$calendarday += $list + 'Working as masseuse. <i>(9:00 - 17:00)</i>'
  1037. !! if maidqw > 0:$calendarday += '<br>&emsp;<b>•</b> Working as maid. <i>(16:00 - 19:00)</i>'
  1038. if pfilmday[i] > 0:$calendarday += $list + 'Porn shoot: <i><<$porndesc[pfilmday[i]]>></i>'
  1039. if d1 = 25 and (PersSecWork = 1 or workKafe = 1 or workhosp = 1 or worksalon = 1 or tanwork = 1 or workSec = 1 or workFabrika = 1):$calendarday += $list + '<i>Pay day!</i>'
  1040. if d1 = nyp_day and m1 = 12 and SchoolAtestat = 0 and StoryLine = 1:$calendarday += $list + 'New Year''s party at 14:00!'
  1041. if (npc_QW['A33']-2) mod 2 = 1 and sisboyday+1 = daynum:
  1042. if sisboytrioQW = 1:
  1043. $calendarday += $list + '<font color="orange">Threesome with Anya and Roma at 18:00</font>'
  1044. else
  1045. $calendarday += $list + '<font color="orange">Anya having sex with Roma at 18:00</font>'
  1046. end
  1047. end
  1048. if sisboyparty = 2 and sisboyparty_day+1 = daynum:$calendarday += $list + '<font color="orange">Party at Rex, gathering before 18:00 at Community Center</font>'
  1049. if rent1 = 0:$calendarday += $list + 'Rent on city apartment expires!'
  1050. if rent4 = 0:$calendarday += $list + 'Rent on Pushkin apartment expires!'
  1051. if birthday = d1 and birthmonth = m1:$calendarday += $list + 'My birthday!'
  1052. if kid > 0:
  1053. k1 = kid
  1054. :kiddieloop
  1055. if daykid[k1] = d1 and monthkid[k1] = m1:$calendarday += $list + 'Birthday of my <<$polreb[k1]>> <<$kidname[k1]>>, my <<kid>>. baby!'
  1056. if k1 > 1:k1 -= 1 & jump 'kiddieloop'
  1057. end
  1058. if $calendarday ! '':
  1059. $telefon['body'] += '<b><<$monthName[m1]>> <<d1>>, <<$week[w1]>>:</b>'
  1060. $telefon['body'] += $calendarday +'<br>'
  1061. end
  1062. if i < 14:
  1063. rent1 -= 1
  1064. rent4 -= 1
  1065. i += 1
  1066. w1 += 1
  1067. if w1 > 7:w1 = 1
  1068. d1 += 1
  1069. if monthsend[m1] < d1:
  1070. m1 += 1 & d1 = 1
  1071. if m1 = 13: m1 = 1 & y1 += 1
  1072. end
  1073. jump 'pnotebook'
  1074. end
  1075. killvar 'calendarday'
  1076. killvar 'rent1'
  1077. killvar 'rent4'
  1078. killvar 'd1'
  1079. killvar 'w1'
  1080. killvar 'm1'
  1081. killvar 'y1'
  1082. killvar 'daynum'
  1083. dynamic $telefon['print']
  1084. end &! --- Phone_notebook ---
  1085. !!----------------------------------------Camera-------------------------------------------------
  1086. !!For setting the total numbers of selfies
  1087. if $ARGS[0] = 'Phone_selfie_totals':
  1088. bathroom_clotot = 20
  1089. bathroom_undtot = 20
  1090. bathroom_nudtot = 20
  1091. bathroom_titflash = 10
  1092. bathroom_assflash = 10
  1093. bathroom_pussyflash = 10
  1094. bathroom_bathtot = 24
  1095. bathroom_showertot = 25
  1096. bedroom_clotot = 27
  1097. bedroom_undtot = 20
  1098. bedroom_nudtot = 25
  1099. bedroom_titflash = 30
  1100. bedroom_assflash = 5
  1101. bedroom_pussyflash = 17
  1102. kitchen_clotot = 16
  1103. kitchen_undtot = 11
  1104. kitchen_nudtot = 19
  1105. kitchen_titflash = 20
  1106. kitchen_assflash = 1
  1107. kitchen_pussyflash = 5
  1108. livingroom_clotot = 17
  1109. livingroom_undtot = 21
  1110. livingroom_nudtot = 16
  1111. livingroom_titflash = 7
  1112. livingroom_assflash = 2
  1113. livingroom_pussyflash = 2
  1114. changingroom_clotot = 19
  1115. changingroom_undtot = 25
  1116. changingroom_nudtot = 25
  1117. changingroom_titflash = 28
  1118. changingroom_assflash = 16
  1119. changingroom_pussyflash = 27
  1120. park_clotot = 28
  1121. park_undtot = 0
  1122. park_nudtot = 10
  1123. park_titflash = 13
  1124. park_assflash = 1
  1125. park_pussyflash = 4
  1126. lockeroom_clotot = 21
  1127. lockeroom_undtot = 16
  1128. lockeroom_nudtot = 6
  1129. lockeroom_titflash = 9
  1130. lockeroom_assflash = 1
  1131. lockeroom_pussyflash = 10
  1132. beach_swim = 21
  1133. beach_nudtot = 15
  1134. beach_titflash = 11
  1135. beach_assflash = 1
  1136. beach_pussyflash = 2
  1137. end
  1138. !!for viewing photos on your phone
  1139. if $ARGS[0] = 'Phone_pictures':
  1140. gt 'phone_selfies', 'selfies'
  1141. end
  1142. !!picking the selfie image when taking photos, this sets the location variable
  1143. if $ARGS[0] = 'Phone_camera_selfie':
  1144. gs 'telefon', 'Phone_selfie_totals'
  1145. minut += rand(5,7)
  1146. if $location_type = 'bathroom':
  1147. $phone_loc = 'bathroom'
  1148. gs 'telefon', 'Phone_selfie_image'
  1149. elseif $locclass = 'bedr':
  1150. $phone_loc = 'bedroom'
  1151. gs 'telefon', 'Phone_selfie_image'
  1152. elseif $locclass = 'kitr':
  1153. $phone_loc = 'kitchen'
  1154. gs 'telefon', 'Phone_selfie_image'
  1155. elseif $locclass = 'livingr':
  1156. $phone_loc = 'livingroom'
  1157. gs 'telefon', 'Phone_selfie_image'
  1158. elseif $locclass = 'changingroom':
  1159. $phone_loc = 'changingroom'
  1160. gs 'telefon', 'Phone_selfie_image'
  1161. elseif $locclass = 'park':
  1162. $phone_loc = 'park'
  1163. gs 'telefon', 'Phone_selfie_image'
  1164. elseif $locclass = 'lockeroom':
  1165. $phone_loc = 'lockeroom'
  1166. gs 'telefon', 'Phone_selfie_image'
  1167. elseif $locclass = 'beach':
  1168. $phone_loc = 'beach'
  1169. gs 'telefon', 'Phone_selfie_image'
  1170. else
  1171. phone_rand = RAND(1,2)
  1172. phone_selfie[phone_rand] = 1
  1173. gs 'stat'
  1174. view 'images/system/phone/selfie/phone_selfie<<phone_rand>>.jpg'
  1175. end
  1176. !if spdirtyf > 0: phone_rand = RAND (m,n) - for SELF in the semen
  1177. !if photo_event_pic = x: phone_rand = RAND (x,y) - for photos during the events (by heart)
  1178. !view 'images/system/phone/phone_selfie<<phone_rand>>.jpg'
  1179. end
  1180. !!taking selfies, this chooses a random image for the location for clothed, underwear and nude
  1181. if $ARGS[0] = 'Phone_selfie_image':
  1182. if $flashing = '':
  1183. if $clothingworntype = 'swimwear':
  1184. !!changing to and unmixed variable so the rng will work
  1185. dynamic 'temp_swim = <<$phone_loc>>_swim'
  1186. phone_rand = rand(1,temp_swim)
  1187. !!Setting the image owned flag to 1
  1188. dynamic '<<$phone_loc>>_swim[<<phone_rand>>] = 1'
  1189. gs 'stat'
  1190. view 'images/pc/selfies/<<$phone_loc>>/bikini/<<phone_rand>>.jpg'
  1191. elseif $clothingworntype ! 'nude':
  1192. !!changing to and unmixed variable so the rng will work
  1193. dynamic 'temp_clotot = <<$phone_loc>>_clotot'
  1194. phone_rand = rand(1,temp_clotot)
  1195. !!Setting the image owned flag to 1
  1196. dynamic '<<$phone_loc>>_closelfie[<<phone_rand>>] = 1'
  1197. gs 'stat'
  1198. view 'images/pc/selfies/<<$phone_loc>>/clothed/<<phone_rand>>.jpg'
  1199. elseif $pantyworntype ! 'none':
  1200. dynamic 'temp_undtot = <<$phone_loc>>_undtot'
  1201. phone_rand = rand(1,temp_undtot)
  1202. dynamic '<<$phone_loc>>_undselfie[<<phone_rand>>] = 1'
  1203. gs 'stat'
  1204. view 'images/pc/selfies/<<$phone_loc>>/underwear/<<phone_rand>>.jpg'
  1205. else
  1206. dynamic 'temp_nudtot = <<$phone_loc>>_nudtot'
  1207. phone_rand = rand(1,temp_nudtot)
  1208. dynamic '<<$phone_loc>>_nudselfie[<<phone_rand>>] = 1'
  1209. gs 'stat'
  1210. view 'images/pc/selfies/<<$phone_loc>>/nude/<<phone_rand>>.jpg'
  1211. end
  1212. else
  1213. if $flashing = 'tits':
  1214. dynamic 'temp_titflash = <<$phone_loc>>_titflash'
  1215. phone_rand = rand(1,temp_titflash)
  1216. dynamic '<<$phone_loc>>_titflash[<<phone_rand>>] = 1'
  1217. gs 'stat'
  1218. view 'images/pc/selfies/<<$phone_loc>>/titflash/<<phone_rand>>.jpg'
  1219. elseif $flashing = 'ass':
  1220. dynamic 'temp_assflash = <<$phone_loc>>_assflash'
  1221. phone_rand = rand(1,temp_assflash)
  1222. dynamic '<<$phone_loc>>_assflash[<<phone_rand>>] = 1'
  1223. gs 'stat'
  1224. view 'images/pc/selfies/<<$phone_loc>>/assflash/<<phone_rand>>.jpg'
  1225. elseif $flashing = 'pussy':
  1226. dynamic 'temp_pussyflash = <<$phone_loc>>_pussyflash'
  1227. phone_rand = rand(1,temp_pussyflash)
  1228. dynamic '<<$phone_loc>>_pussyflash[<<phone_rand>>] = 1'
  1229. gs 'stat'
  1230. view 'images/pc/selfies/<<$phone_loc>>/pussyflash/<<phone_rand>>.jpg'
  1231. end
  1232. $flashing = ''
  1233. end
  1234. end
  1235. !!taking selfies in the shower or bath
  1236. if $ARGS[0] = 'Phone_selfie_image_bathing':
  1237. gs 'telefon', 'Phone_selfie_totals'
  1238. $phone_loc = 'bathroom'
  1239. minut += rand(5,7)
  1240. if $ARGS[1] = 'shower':
  1241. !!changing to and unmixed variable so the rng will work
  1242. dynamic 'temp_showertot = bathroom_showertot'
  1243. phone_rand = rand(1,temp_showertot)
  1244. !!Setting the image owned flag to 1
  1245. dynamic '<<$phone_loc>>_showerselfie[<<phone_rand>>] = 1'
  1246. gs 'stat'
  1247. view 'images/pc/selfies/<<$phone_loc>>/shower/<<phone_rand>>.jpg'
  1248. elseif $ARGS[1] = 'bath':
  1249. dynamic 'temp_bathtot = bathroom_bathtot'
  1250. phone_rand = rand(1,temp_bathtot)
  1251. dynamic '<<$phone_loc>>_bathselfie[<<phone_rand>>] = 1'
  1252. gs 'stat'
  1253. view 'images/pc/selfies/<<$phone_loc>>/bath/<<phone_rand>>.jpg'
  1254. end
  1255. end
  1256. !!for taking photos - only selfies for now
  1257. if $ARGS[0] = 'Phone_camera':
  1258. if $location_type = 'bathroom':
  1259. $phone_loc = 'bathroom'
  1260. elseif $locclass = 'bedr':
  1261. $phone_loc = 'bedroom'
  1262. elseif $locclass = 'kitr':
  1263. $phone_loc = 'kitchen'
  1264. elseif $locclass = 'livingr':
  1265. $phone_loc = 'livingroom'
  1266. elseif $locclass = 'changingroom':
  1267. $phone_loc = 'changingroom'
  1268. elseif $locclass = 'park':
  1269. $phone_loc = 'park'
  1270. elseif $locclass = 'lockeroom':
  1271. $phone_loc = 'lockeroom'
  1272. elseif $locclass = 'beach':
  1273. $phone_loc = 'beach'
  1274. else
  1275. $phone_loc = ''
  1276. end
  1277. $telefon['body'] = '<font size=6>Camera</font><br>
  1278. <img src="<<FUNC(''$phone_theme'')>>icon_camera.png" height="80" width="80"><br><br>'
  1279. !! Take a selfie depending on which clothes you are wearing
  1280. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''Phone_camera_selfie'' "><b>Take a selfie</b></a><br>'
  1281. !! Flashing selfie
  1282. if $clothingworntype ! 'nude' and ($phone_loc = 'bedroom' or $phone_loc = 'kitchen' or $phone_loc = 'livingroom' or $phone_loc = 'changingroom' or $phone_loc = 'park' or $phone_loc = 'lockeroom' or $phone_loc = 'beach'):
  1283. if $phone_loc = 'bedroom':
  1284. $telefon['body'] += '
  1285. <a href="exec:photoskl_exp += 1 & gs ''telefon'', ''titflash'' "><b>Flash your tits for a selfie</b></a><br>
  1286. <a href="exec:photoskl_exp += 1 & gs ''telefon'', ''assflash'' "><b>Flash your ass for a selfie</b></a><br>
  1287. <a href="exec:photoskl_exp += 1 & gs ''telefon'', ''pussyflash'' "><b>Flash your pussy for a selfie</b></a><br>'
  1288. else
  1289. if pcs_inhib >= 35 or exhibitionist_lvl > 0:
  1290. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''titflash'' "><b>Flash your tits for a selfie</b></a><br>'
  1291. end
  1292. if exhibitionist_lvl > 0:
  1293. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''assflash'' "><b>Flash your ass for a selfie</b></a><br>'
  1294. end
  1295. if exhibitionist_lvl > 1:
  1296. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''pussyflash'' "><b>Flash your pussy for a selfie</b></a><br>'
  1297. end
  1298. end
  1299. end
  1300. dynamic $telefon['print']
  1301. end
  1302. if $ARGS[0] = 'titflash':
  1303. $flashing = 'tits'
  1304. gs 'telefon', 'Phone_camera_selfie'
  1305. end
  1306. if $ARGS[0] = 'assflash':
  1307. $flashing = 'ass'
  1308. gs 'telefon', 'Phone_camera_selfie'
  1309. end
  1310. if $ARGS[0] = 'pussyflash':
  1311. $flashing = 'pussy'
  1312. gs 'telefon', 'Phone_camera_selfie'
  1313. end
  1314. !!-----------------------------------end of Camera------------------------------------------
  1315. if $ARGS[0] = 'Phone_wheather':
  1316. $telefon['body'] = '
  1317. <font size=6>Weather</font><br>
  1318. <img src="<<FUNC(''$phone_theme'')>>icon_weather.png" height="80" width="80"><br><br>
  1319. <b>Temperature:</b><br>
  1320. <<$temperature>>. <<$osadki>><br>
  1321. P.O.P. today is <<weatherFall>>%<br>'
  1322. dynamic $telefon['print']
  1323. end &! --- Phone_wheather ---
  1324. if $ARGS[0] = 'Phone_calendar':
  1325. $telefon['body'] = '
  1326. <font size=6>Calendar</font><br>
  1327. <img src="<<FUNC(''$phone_theme'')>>icon_calendar.png" height="80" width="80"><br><br>
  1328. <B>Today:</B><br>
  1329. <<$week[week]>>, <<day>> <<$month>> <<year>><br>'
  1330. dynamic $telefon['print']
  1331. end &! --- Phone_calendar ---
  1332. if $ARGS[0] = 'Phone_media':
  1333. $telefon['body'] = '
  1334. <font size=6>Media</font><br>
  1335. <img src="<<FUNC(''$phone_theme'')>>icon_music.png" height="80" width="80"><br>
  1336. <b>This option is not active</b><br>'
  1337. dynamic $telefon['print']
  1338. end &! --- Phone_media ---
  1339. if $ARGS[0] = 'Phone_sms':
  1340. $telefon['body'] = '
  1341. <font size=6>SMS</font><br>
  1342. <img src="<<FUNC(''$phone_theme'')>>icon_sms.png" height="80" width="80"><br>
  1343. <b>This option is not active</b><br>'
  1344. dynamic $telefon['print']
  1345. end &! --- Phone_sms ---
  1346. if $ARGS[0] = 'Phone_menu':
  1347. $telefon['body'] = '
  1348. <a href="exec:gs ''telefon'', ''Phone_camera'' "><img src="<<FUNC(''$phone_theme'')>>icon_camera.png" height="80" width="80"></a>
  1349. <a href="exec:gs ''telefon'', ''Phone_calendar'' "><img src="<<FUNC(''$phone_theme'')>>icon_calendar.png" height="80" width="80"></a>
  1350. <a href="exec:gs ''telefon'', ''Phone_pictures'' "><img src="<<FUNC(''$phone_theme'')>>icon_pictures.png" height="80" width="80"></a>
  1351. <br>
  1352. <a href="exec:gs ''telefon'', ''Phone_media'' "><img src="<<FUNC(''$phone_theme'')>>icon_music.png" height="80" width="80"></a>
  1353. <a href="exec:gs ''telefon'', ''Phone_notebook'' "><img src="<<FUNC(''$phone_theme'')>>icon_notebook.png" height="80" width="80"></a>
  1354. <a href="exec:gs ''telefon'', ''Phone_wheather'' "><img src="<<FUNC(''$phone_theme'')>>icon_weather.png" height="80" width="80"></a>
  1355. <br>
  1356. <a href="exec:gs ''telefon'', ''ContactList'' "><img src="<<FUNC(''$phone_theme'')>>icon_call.png" height="80" width="80"></a>
  1357. <a href="exec:gs ''telefon'', ''Phone_sms'' "><img src="<<FUNC(''$phone_theme'')>>icon_sms.png" height="80" width="80"></a>
  1358. <a href="exec:gs ''telefon'', ''Phone_megafon'' "><img src="<<FUNC(''$phone_theme'')>>icon_megafon.png" height="80" width="80"></a>
  1359. <br>'
  1360. if menu_off = 1:
  1361. $telefon['body'] += '<a href="exec:gs ''obj_din'', ''menu_disabled''"><img src="<<FUNC(''$phone_theme'')>>icon_settings.png" height="80" width="80"></a><br>'
  1362. else
  1363. $telefon['body'] += '<a href="exec:killvar ''menu_page'' & gs ''Cheatmenu_din'' & dynamic $cheatmenu[''setting'']"><img src="<<FUNC(''$phone_theme'')>>icon_settings.png" height="80" width="80"></a><br>'
  1364. end
  1365. dynamic $telefon['print']
  1366. end &! --- Phone_menu ---
  1367. if $ARGS[0] = 'Add_contact':
  1368. $dummy = INPUT('Enter a note:')
  1369. $contact[arrsize('$contact')] = dyneval($telefon['contact'],$ARGS[1],$dummy,$ARGS[2])
  1370. killvar '$dummy'
  1371. end &! --- Add_contact ---
  1372. if $ARGS[0] = 'telotkaz':
  1373. cla
  1374. minut += 10
  1375. '<<$ARGS[1]>>, "Sorry, I''m busy right now, maybe next time."'
  1376. act 'Hangup':gt 'telefon', 'fin'
  1377. end &! --- telotkaz ---
  1378. if $ARGS[0] = 'fin':
  1379. killvar 'lover_number'
  1380. cla
  1381. gt $loc, $metka
  1382. end
  1383. if $ARGS[0] = 'setup':
  1384. ! array $$phonetheme_name is built.
  1385. ! might need a tweak to have it rebuilt when new themes are available.
  1386. $phonetheme_name[0] = 'Custom_Standard'
  1387. $phonetheme_name[1] = 'Bimbo'
  1388. $phonetheme_name[2] = 'Custom_Aluminus'
  1389. $phonetheme_name[3] = 'Custom_Bottlecapped'
  1390. $phonetheme_name[4] = 'Custom_Galactic'
  1391. $phonetheme_name[5] = 'Custom_Vectored'
  1392. $phonetheme_name[6] = 'Custom_Veneer'
  1393. $phonetheme_name[7] = 'Custom_Voidwalker'
  1394. $phonetheme_name[8] = 'Custom_Voidwalker Red'
  1395. $phonetheme_name[9] = 'Custom_Voidwalker Toxic'
  1396. $phonetheme_name[10] = 'Gopnik'
  1397. $phonetheme_name[11] = 'Sports'
  1398. $phonetheme_name[12] = 'Succubus'
  1399. $phonetheme_name[13] = 'Woodshop'
  1400. phonetheme[0] = 1
  1401. end
  1402. --- telefon ---------------------------------