telefon.qsrc 51 KB

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