1
0

telefon.qsrc 49 KB

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