telefon.qsrc 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982
  1. # telefon
  2. !2021/05/02
  3. !! Draw screens for mobile phone.
  4. !!
  5. !! The base storage for Contacts is controlled by the Array "$contact". This array is a list of NPC identifiers
  6. !! telling us which ones are in your contact list. There are several other ancillary arrays that support the functions
  7. !! of a contact. Each of these has matching indexes to the $contact array. These are mostly used internally, but a
  8. !! writer can make use of them if they need to.
  9. !!
  10. !! ContactList arrays:
  11. !! $contact[] = NPC code for contact. ('A129', 'A29', 'B13', 'C14')
  12. !! $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
  13. !! $contactOCode[] = Code to execute if call is placed to this contact
  14. !! $contactOSche[] = If statement code to determine schedule for outbound calls
  15. !! $contactICode[] = Code to execute for Incoming call
  16. !! $contactISche[] = if statement code for schedule of incoming calls
  17. !! contactAnon[] = 0 if contact number is known to Sveta, 1 for Anonymous
  18. !! contactToday[] = Calls from this contact today
  19. !! contactWeek[] = Calls from this contact this week
  20. !! contactLastCall[] = last time this Contact called
  21. !
  22. !! Add a contact with AddContact
  23. !! 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>
  24. !! Example, to Add Mother:
  25. !! gs 'telefon', 'AddContact', 'A29', 'icon_npc1', "gs 'telefon', 'Phone_call'", "hour >= 8 and hour <= 20", "gs 'telefon', 'lover'", "hour >= 8 and hour <= 20", 0
  26. !!
  27. !! Remove a contact with DeleteContact
  28. !! gs 'telefon', 'DeleteContact', <NPC Code>
  29. !! Example, to delete Mom:
  30. !! gs 'telefon', 'DeleteContact', 'A29'
  31. !!
  32. !! Header for Phone Screen. Keeps consistent and in one place
  33. $telefon['header'] = {
  34. if telefon['UnreadSMS'] > 0:
  35. $telefon['SMSstatus'] = 'You have <<telefon[''UnreadSMS'']>> unread message(s)'
  36. else
  37. $telefon['SMSstatus'] = ''
  38. end
  39. $result = '<center>
  40. <b><<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>></b><br>
  41. <TABLE cellspacing="0" width="80%">
  42. <TR>
  43. <TD><img src="images/system/icons/icon_statusbar_left.png"></TD>
  44. <TD><<$telefon[''SMSstatus'']>></TD>
  45. <TD align="right"><img src="images/system/icons/icon_statusbar_right.png"></TD>
  46. </TR>
  47. </TABLE><br>'
  48. }
  49. !! Footer for phone screen. Body should be between these two
  50. $telefon['footer'] = {
  51. if $telefon['backButton'] = '': $telefon['backButton'] = 'gs ''telefon'', ''Phone_menu'''
  52. $result = ' <a href="exec:<<$telefon[''backButton'']>>"><img src="images/system/icons/back.png"></a><br><br>
  53. <a href="exec:gs''stat''">Put Phone Away.</a><br>
  54. </center>'
  55. $telefon['backButton'] = 'gs ''telefon'', ''Phone_menu'''
  56. }
  57. !! ''''This is how we print the screen on to the Additional Dscription window
  58. $telefon['print'] = {
  59. clr
  60. pl func('cleanHTML',dyneval($telefon['header']) + $telefon['body'] + dyneval($telefon['footer']))
  61. }
  62. !! This is the formatting function for a row in the Contact List. SHould be run as a DYNEVAL()
  63. $telefon['contact'] = {
  64. !! Contact Row in phone contact list
  65. !! $ARGS[0] = NPC icon
  66. !! $ARGS[1] = NPC Nickname
  67. !! $ARGS[2] = Code to execute for making a Call
  68. !! $ARGS[3] = if statement for determining if NPC is avaiable
  69. $telefon['ContactIcon'] = $ARGS[0]
  70. $telefon['ContactNickName'] = $ARGS[1]
  71. $telefon['ContactCallCode'] = $ARGS[2]
  72. $telefon['ContactCallSchedule'] = $ARGS[3]
  73. !!If file extension is not given, .png is assumed
  74. if instr($telefon['ContactIcon'],'.') = 0:
  75. $telefon['ContactIcon'] += '.png'
  76. end
  77. !!If path is not given, default phone icon path is assumed
  78. if instr($telefon['ContactIcon'],'/') = 0:
  79. $telefon['ContactIcon'] = 'images/system/phone/icons/' + $telefon['ContactIcon']
  80. end
  81. !!If Contact is not in available timeframe, we disable contact calling
  82. if dyneval('result = iif(<<$telefon["ContactCallSchedule"]>>,1,0)') = 0:
  83. $telefon['ContactCallCode'] = "gs 'telefon', 'phone_call_reject'"
  84. end
  85. $result = '<TR>
  86. <TD><img src="<<$telefon[''ContactIcon'']>>" width="75"></TD>
  87. <TD><<$telefon[''ContactNickName'']>></TD>
  88. <TD align="right"><a href="exec:$callerid = ''<<$telefon[''ContactIcon'']>>'' & <<$telefon[''ContactCallCode'']>>"><b>Call</b></a></TD>
  89. </TR>'
  90. }
  91. if $ARGS[0] = 'AddContact':
  92. !! $ARGS[1] = NPC Array identifier
  93. !! $ARGS[2] = Icon
  94. !! $ARGS[3] = Code to execute for Call out
  95. !! $ARGS[4] = If statement code to determine schedule for outbound calls
  96. !! $ARGS[5] = Code to execute for Incoming call
  97. !! $ARGS[6] = if statement code for schedule of incoming calls
  98. !! ARGS[7] = Anonymous? 0 if not, 1 if yes
  99. $telefonCon['NPC'] = $ARGS[1]
  100. $telefonCon['Icon'] = $ARGS[2]
  101. $telefonCon['OutCode'] = $ARGS[3]
  102. $telefonCon['OutSched'] = $ARGS[4]
  103. $telefonCon['InCode'] = $ARGS[5]
  104. $telefonCon['InSched'] = $ARGS[6]
  105. telefonCon['Anonymous'] = ARGS[7]
  106. telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])
  107. if telefonCon['ContactListID'] = -1:
  108. telefonCon['ContactListID'] = arrsize('$contact')
  109. $contact[telefonCon['ContactListID']] = $telefonCon['NPC']
  110. end
  111. $contactIcon[telefonCon['ContactListID']] = $telefonCon['Icon']
  112. $contactOCode[telefonCon['ContactListID']] = $telefonCon['OutCode']
  113. $contactOSche[telefonCon['ContactListID']] = $telefonCon['OutSched']
  114. $contactICode[telefonCon['ContactListID']] = $telefonCon['InCode']
  115. $contactISche[telefonCon['ContactListID']] = $telefonCon['InSched']
  116. contactAnon[telefonCon['ContactListID']] = telefonCon['Anonymous']
  117. killvar 'telefonCon'
  118. killvar '$telefonCon'
  119. end &! --- AddContact ---
  120. if $ARGS[0] = 'DeleteContact':
  121. !! $ARGS[1] = NPC Array identifier
  122. $telefonCon['NPC'] = $ARGS[1]
  123. telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])
  124. if telefonCon['ContactListID'] > -1:
  125. killvar '$contact', telefonCon['ContactListID']
  126. killvar '$contactIcon', telefonCon['ContactListID']
  127. killvar '$contactCode', telefonCon['ContactListID']
  128. end
  129. killvar 'telefonCon'
  130. killvar '$telefonCon'
  131. end &! --- AddContact ---
  132. if $ARGS[0] = 'ContactList':
  133. $telefon['body'] = '
  134. <font size=6>Contacts</font><br>
  135. <img src="<<FUNC(''$phone_theme'')>>icon_call.png" height="80" width="80"><br><br>
  136. <TABLE cellspacing="0" width="80%">'
  137. !!iterating all Contacts
  138. i=0
  139. :contactloop2
  140. if i < arrsize('$contact'):
  141. if contactAnon[i] = 0:
  142. $telefon['body'] += dyneval($telefon['contact'],$contactIcon[i],$npc_nickname[$contact[i]],$contactOCode[i],$contactOSche[i])
  143. end
  144. i += 1
  145. jump 'contactloop2'
  146. end
  147. !! Oddball Contacts
  148. if telalla > 0:
  149. $telefon['body'] += dyneval($telefon['contact'],'icon_ira1','Alla',"$telsob = 'Alla' & gt 'telefon', 'mobilaraz'","hour >= 8 and hour <= 20")
  150. end
  151. if telmasha > 0:
  152. $telefon['body'] += dyneval($telefon['contact'],'icon_masha','Masha',"$telsob = 'Masha' & gt 'telefon', 'mobilaraz'","hour >= 8 and hour <= 20")
  153. end
  154. !! iterating all lovers
  155. lover_number = 0
  156. :loverloop2
  157. if pcs_lovers[lover_number] = 1 and svidanie[lover_number] = 0:
  158. $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")
  159. end
  160. lover_number += 1
  161. if lover_number < arrsize('pcs_lovers'): jump 'loverloop2'
  162. $telefon['body'] += '</TABLE><br>'
  163. dynamic $telefon['print']
  164. killvar 'i'
  165. killvar 'lover_number'
  166. end &! --- ContactList ---
  167. !! Reset Contact Call Stats Daily and Weekly
  168. !!
  169. !! ARGS[1] = New Week if 1, 0 if same week
  170. if $ARGS[0] = 'DailyStatRefresh':
  171. i=0
  172. :DailyStatRefLoop
  173. if i < arrsize('$contact'):
  174. contactToday[i] = 0
  175. if ARGS[1] = 1:
  176. contactWeek[i] = 0
  177. end
  178. i += 1
  179. jump 'DailyStatRefLoop'
  180. end
  181. killvar 'i'
  182. end
  183. !! Determine if any Incoming calls should happen
  184. !!
  185. !! ARGS[1] = Previous totminut
  186. !! ARGS[2] = Current totminut
  187. if $ARGS[0] = 'IncomingCheck':
  188. telefIncCheck['PrevTotalMinutes'] = ARGS[1]
  189. telefIncCheck['NewTotalMinutes'] = ARGS[2]
  190. if telefIncCheck['PrevTotalMinutes'] > telefIncCheck['NewTotalMinutes'] or telefon['LastIncCallCheck'] > telefIncCheck['NewTotalMinutes'] or telefon['LastIncCallCheck'] = 0:
  191. !! Time Cheat has been used, so we should do some cleanup
  192. telefon['LastIncCallCheck'] = telefIncCheck['NewTotalMinutes']
  193. end
  194. !! Limit the number of calls per day
  195. !! right now allow every 60 minutes
  196. if telefIncCheck['NewTotalMinutes'] - telefon['LastIncCallCheck'] > 60 and menu_off = 0 and phone_off = 0:
  197. telefon['LastIncCallCheck'] = telefIncCheck['NewTotalMinutes']
  198. gs 'telefon','IncomingCallChooser'
  199. end
  200. killvar 'telefIncCheck'
  201. end
  202. if $ARGS[0] = 'IncomingCallChooser':
  203. !! When an Incoming call happens, choose who it comes from
  204. !! Add Contacts
  205. i=0
  206. :telefonIncLoop1
  207. if i < arrsize('$contact'):
  208. if $contactICode[i] ! "":
  209. if dyneval('result = iif(<<$contactISche[i]>>,1,0)') = 1:
  210. j = arrsize('$telefIncCall')
  211. if contactAnon[i] = 1:
  212. $telefIncIcon[j] = "images/system/phone/decline.png"
  213. $telefIncName[j] = "Unknown Caller"
  214. else
  215. $telefIncIcon[j] = $contactIcon[i]
  216. $telefIncName[j] = $npc_nickname[$contact[i]]
  217. end
  218. $telefIncCall[j] = $contactICode[i]
  219. $telefIncNPC[j] = $contact[i]
  220. end
  221. end
  222. i += 1
  223. jump 'telefonIncLoop1'
  224. end
  225. !! Add Lovers
  226. i=0
  227. :telefonIncLoop2
  228. if i < 3 and hour > 5 and hour < 20:
  229. if pcs_lovers[i] = 1 and svidanie[i] = 0 and loverday[i] ! daystart and rand(1,100) > 95:
  230. j = arrsize('$telefIncCall')
  231. $telefIncCall[j] = "cls & gs 'telefon', 'lover', <<i>>"
  232. $telefIncIcon[j] = 'images/characters/shared/headshots_generic/<<lover_picture[i]>>.jpg'
  233. $telefIncName[j] = $loverdesc[i]
  234. end
  235. i += 1
  236. jump 'telefonIncLoop2'
  237. end
  238. if arrsize('$telefIncCall') > 0:
  239. j = rand(0,arrsize('$telefIncCall')-1)
  240. if $telefIncNPC[j] ! "":
  241. i = arrpos('$contact',$telefIncNPC[j])
  242. contactLastCall[i] = totminut
  243. contactToday[i] += 1
  244. contactWeek[i] += 1
  245. end
  246. gs 'telefon', 'IncomingCall', $telefIncIcon[j], $telefIncName[j], $telefIncCall[j]
  247. end
  248. killvar 'i'
  249. killvar 'j'
  250. killvar '$telefIncIcon'
  251. killvar '$telefIncName'
  252. killvar '$telefIncCall'
  253. killvar '$telefIncNPC'
  254. end
  255. if $ARGS[0] = 'IncomingCall':
  256. !! $ARGS[1] = Icon for contact
  257. !! $ARGS[2] = Nickname of contact
  258. !! $ARGS[3] = Code to execute for this Call
  259. $telefonIncC['Icon'] = $ARGS[1]
  260. $telefonIncC['Name'] = $ARGS[2]
  261. $telefonIncC['Code'] = $ARGS[3]
  262. PLAY 'sound/old_phone.mp3',30
  263. $telefon['body'] = '
  264. <font size=6><<$telefonIncC["Name"]>> calling</font><br>
  265. <img src="<<$telefonIncC["Icon"]>>" width="200"><br>
  266. <br>
  267. <br>
  268. <br>
  269. <a href="exec:<<$telefonIncC["Code"]>>"><img src="images/system/phone/call_accept.png"></a>
  270. <a href="exec:gt $loc, $loc_arg"><img src="images/system/phone/decline.png"></a><br>
  271. <b><font color="red">Your phone is ringing</font></b><br>'
  272. dynamic $telefon['print']
  273. killvar '$telefonIncC'
  274. end
  275. !---------------------------------------------------------------------------------------
  276. ! Generic Calls for dates
  277. !! NPC Date
  278. !! ARGS[1] = contactlist index
  279. !! $ARGS[2] = Date Location
  280. if $ARGS[0] = 'NPCDate':
  281. Call4Date["ContactIndex"] = ARGS[1]
  282. $Call4Date["Location"] = $ARGS[2]
  283. $Call4Date["NPC"] = $contact[Call4Date['ContactIndex']]
  284. $Call4Date["CallerName"] = $npc_nickname[$Call4Date["NPC"]]
  285. !! These variables are setup for certain downstream functions
  286. $caller = $Call4Date["CallerName"]
  287. $callerid = $contactIcon[Call4Date["ContactIndex"]]
  288. $boydesc = $Call4Date["CallerName"]
  289. pcs_mood += 10
  290. npc_rel[$Call4Date["NPC"]] += 3
  291. if $Call4Date["Location"] = 'city_park':
  292. if npc_gender[$Call4Date["NPC"]] = 0:
  293. gt 'dateM','datepark'
  294. else
  295. gt 'dateF','datepark'
  296. end
  297. elseif $Call4Date["Location"] = 'movie':
  298. if npc_gender[$Call4Date["NPC"]] = 0:
  299. gt 'dateM','datecinema'
  300. else
  301. !Not implemented yet
  302. !gt 'dateF','datecinema'
  303. end
  304. elseif $Call4Date["Location"] = 'bar':
  305. if npc_gender[$Call4Date["NPC"]] = 0:
  306. gt 'dateM','datebar'
  307. else
  308. gt 'dateF','datebar'
  309. end
  310. elseif $Call4Date["Location"] = 'cafe':
  311. if npc_gender[$Call4Date["NPC"]] = 0:
  312. gt 'dateM','datecafe'
  313. else
  314. !Not implemented yet
  315. !gt 'dateF','datecafe'
  316. end
  317. end
  318. killvar 'Call4Date'
  319. killvar '$Call4Date'
  320. end
  321. !! Sveta Calls the NPC
  322. !! ARGS[1] = contactlist index
  323. if $ARGS[0] = 'SvetaCallsNPC':
  324. cls
  325. cla
  326. Call4Date["ContactIndex"] = ARGS[1]
  327. $Call4Date["NPC"] = $contact[Call4Date['ContactIndex']]
  328. $Call4Date["CallerName"] = $npc_nickname[$Call4Date["NPC"]]
  329. if npc_gender[$Call4Date["NPC"]] = 0:
  330. $Call4Date["NPC-he"] = 'he'
  331. $Call4Date["NPC-He"] = 'He'
  332. $Call4Date["NPC-his"] = 'his'
  333. $Call4Date["NPC-His"] = 'His'
  334. else
  335. $Call4Date["NPC-he"] = 'her'
  336. $Call4Date["NPC-He"] = 'Her'
  337. $Call4Date["NPC-his"] = 'hers'
  338. $Call4Date["NPC-His"] = 'Hers'
  339. end
  340. !! These variables are setup for certain downstream functions
  341. $caller = $Call4Date["CallerName"]
  342. $callerid = $contactIcon[Call4Date["ContactIndex"]]
  343. gs 'telefon','phone_balance'
  344. gs 'telefon','phone_call_receive'
  345. Call4Date["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 Call4Date["willAgree"]:
  352. '<<$Call4Date["CallerName"]>>, "See you in the park in an hour."'
  353. act 'Go':gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'city_park'
  354. else
  355. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  356. end
  357. end
  358. end
  359. act 'Invite to a movie':
  360. cla
  361. '"Want to go see a movie?"'
  362. if Call4Date["willAgree"]:
  363. '<<$Call4Date["CallerName"]>>, "See you at the movie theater in an hour."'
  364. act 'Go':gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'movie'
  365. else
  366. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  367. end
  368. end
  369. if $home_town = 'city':
  370. act 'Invite to the bar':
  371. cla
  372. '"Let''s go to the bar."'
  373. if Call4Date["willAgree"]:
  374. '<<$Call4Date["CallerName"]>>, "See you at the bar in an hour."'
  375. act 'Go':gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'bar'
  376. else
  377. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  378. end
  379. end
  380. end
  381. act 'Invite to the cafe':
  382. cla
  383. '"Let''s go to the cafe."'
  384. if Call4Date["willAgree"]:
  385. '<<$Call4Date["CallerName"]>>, "See you at the cafe in an hour."'
  386. act 'Go':gt 'telefon', 'NPCDate', Call4Date["ContactIndex"], 'cafe'
  387. else
  388. gs 'telefon','telotkaz',$Call4Date["CallerName"]
  389. end
  390. end
  391. !!Willpower checks for resistance
  392. if npc_rel[$Call4Date["NPC"]] <= 25:
  393. $Call4Date["loverResist"] = 'easy'
  394. elseif npc_rel[$Call4Date["NPC"]] <= 50:
  395. $Call4Date["loverResist"] = 'medium'
  396. else
  397. $Call4Date["loverResist"] = 'hard'
  398. end
  399. gs 'willpower', 'misc', 'self', $Call4Date["loverResist"]
  400. if will_cost <= pcs_willpwr:
  401. act 'I think we should break up... (<<will_cost>> Willpower)':
  402. *clr & cla
  403. gs 'willpower', 'pay', 'self'
  404. gs 'stat'
  405. '<<$Call4Date["NPC-He"]>> sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  406. gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  407. act 'Hang up': gt 'telefon', 'fin'
  408. end
  409. else
  410. act 'I think we should break up... (<font color="red"><<will_cost>> Willpower</font>)':
  411. '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  412. end
  413. end
  414. act 'Hangup':gt 'telefon', 'fin'
  415. killvar 'Call4Date'
  416. killvar '$Call4Date'
  417. killvar '$DateNickName'
  418. end
  419. !! NPC Calls Sveta for a Date
  420. !! ARGS[1] = $contact index number
  421. if $ARGS[0] = 'NPCCallsForDate':
  422. cla
  423. clr
  424. Call4Date["ContactIndex"] = ARGS[1]
  425. $Call4Date["NPC"] = $contact[Call4Date['ContactIndex']]
  426. if npc_gender[$Call4Date["NPC"]] = 0:
  427. $Call4Date["NPC-he"] = 'he'
  428. $Call4Date["NPC-He"] = 'He'
  429. $Call4Date["NPC-his"] = 'his'
  430. $Call4Date["NPC-His"] = 'His'
  431. else
  432. $Call4Date["NPC-he"] = 'her'
  433. $Call4Date["NPC-He"] = 'Her'
  434. $Call4Date["NPC-his"] = 'hers'
  435. $Call4Date["NPC-His"] = 'Hers'
  436. end
  437. !!Pick a nickname that caller will use for Sveta
  438. $DateNickName[0] = 'cutie'
  439. $DateNickName[1] = 'honey'
  440. $DateNickName[2] = 'sweetie'
  441. $DateNickName[3] = 'baby'
  442. $DateNickName[4] = 'hot stuff'
  443. $DateNickName[5] = '<<$pcs_nickname>>'
  444. $Call4Date['SvetaName'] = $DateNickName[rand(0, arrsize('$DateNickName'))]
  445. $Call4Date['CallerName'] = $npc_nickname[$Call4Date["NPC"]]
  446. !! These variables are setup for certain downstream functions
  447. $caller = $Call4Date["CallerName"]
  448. $callerid = $contactIcon[Call4Date["ContactIndex"]]
  449. 'Hey <<$Call4Date["SvetaName"]>>, it''s me, <<$Call4Date["CallerName"]>>. How''s it going?'
  450. act 'Answer':
  451. cla
  452. '"Pretty good, you?"'
  453. '<<$Call4Date["CallerName"]>>, "Great, but I kind of miss you, can we meet today?"'
  454. if week > 1 and week < 5 and workKafe = 1:
  455. act 'Sorry, I''m working today':
  456. cla
  457. '"Sorry, I''m working today."'
  458. '<<$Call4Date["CallerName"]>>, "Okay, I''ll call tomorrow."'
  459. act 'Hang up':gt 'telefon', 'fin'
  460. end
  461. end
  462. act 'Tonight':
  463. cla
  464. npc_rel[$Call4Date["NPC"]] += 1
  465. contMeetDay[Call4Date["ContactIndex"]] = daystart
  466. '"How about this evening?"'
  467. '<<$Call4Date["CallerName"]>>, "Sounds great! When can I come to pick you up?"'
  468. act 'Pick a time':
  469. cla
  470. 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]")
  471. if contMeetHour[Call4Date["ContactIndex"]] <= hour or contMeetHour[Call4Date["ContactIndex"]] > 23:contMeetHour[Call4Date["ContactIndex"]] = 20
  472. '"How about <<contMeetHour[Call4Date["ContactIndex"]]>>:00?."'
  473. '<<$Call4Date["CallerName"]>>, "Okay <<$Call4Date["SvetaName"]>>, see you at <<contMeetHour[Call4Date["ContactIndex"]]>>:00."'
  474. act 'Hang up':gt 'telefon', 'fin'
  475. end
  476. end
  477. act 'Maybe tomorrow':
  478. cla
  479. npc_rel[$Call4Date["NPC"]] -= 1
  480. '"I''m busy today. Call tomorrow."'
  481. if npc_rel[$Call4Date["NPC"]] <= 0:'<<$Call4Date["CallerName"]>>, Are you fucking me, you know what. Suck my dick.' & gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  482. if npc_rel[$Call4Date["NPC"]] > 0:'(<<$Call4Date["CallerName"]>>) - Okay, I''ll call tomorrow.'
  483. act 'Hang up': gt 'telefon', 'fin'
  484. end
  485. !!Willpower checks for resistance
  486. if npc_rel[$Call4Date["NPC"]] <= 25:
  487. $Call4Date["loverResist"] = 'easy'
  488. elseif npc_rel[$Call4Date["NPC"]] <= 50:
  489. $Call4Date["loverResist"] = 'medium'
  490. else
  491. $Call4Date["loverResist"] = 'hard'
  492. end
  493. gs 'willpower', 'misc', 'self', $Call4Date["loverResist"]
  494. if will_cost <= pcs_willpwr:
  495. act 'I think we should break up... (<<will_cost>> Willpower)':
  496. *clr & cla
  497. gs 'willpower', 'pay', 'self'
  498. gs 'stat'
  499. '<<$Call4Date["NPC-He"]>> sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  500. gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  501. act 'Hang up': gt 'telefon', 'fin'
  502. end
  503. else
  504. act 'I think we should break up... (<font color="red"><<will_cost>> Willpower</font>)':
  505. '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  506. end
  507. end
  508. end
  509. act 'Hang up (end relationship)':
  510. cla
  511. gs 'telefon', 'DeleteContact', $Call4Date["NPC"]
  512. gt 'telefon', 'fin'
  513. end
  514. killvar 'Call4Date'
  515. killvar '$Call4Date'
  516. killvar '$DateNickName'
  517. end
  518. if $ARGS[0] = 'start':
  519. gs 'stat'
  520. gs 'telefon','phone_call_receive'
  521. if npc_QW['A192'] = 1 and week = 6 and pcs_apprnc > 80:
  522. gt 'nastja', 'pos4'
  523. elseif npc_QW['A192'] = 2 and week ! 6 and zenit ! 0 and nastjaday ! daystart:
  524. gt 'nastja', 'pos13'
  525. elseif hour >= 8 and hour <= 20 and npc_QW['A192'] = 2 and week = 6 and pcs_apprnc > 80 and nastjaday ! daystart:
  526. gt 'nastja', 'pos12'
  527. elseif npc_QW['A192'] = 5 and week = 6 and nastjaday ! daystart:
  528. gt 'nastja', 'pos22'
  529. elseif npc_QW['A192'] = 6 and nastjaday ! daystart:
  530. gt 'nastja', 'pos31'
  531. else
  532. $callerid = 'images/system/phone/icons/icon_nastja.png'
  533. gs 'telefon','phone_call_reject'
  534. end
  535. end
  536. !--------------------------------------------------------------------------------------------------
  537. ! Old telephone system. Some of this should be removed.
  538. if $ARGS[0] = 'phone_ring':
  539. $telefon['body'] = '
  540. <font size=6><<$caller>> calling</font><br>
  541. <img src="<<$callerid>>"><br>
  542. <br>
  543. <br>
  544. <br>
  545. <br>'
  546. dynamic $telefon['print']
  547. end &! --- phone_ring ---
  548. if $ARGS[0] = 'phone_call_receive':
  549. $telefon['body'] = '
  550. <font size=6>Talking to <<$caller>></font><br>
  551. <img src="<<$callerid>>"><br>'
  552. dynamic $telefon['print']
  553. end &! --- phone_call_receive ---
  554. if $ARGS[0] = 'phone_balance':
  555. if balans < 4:
  556. $telefon['body'] = '
  557. <font size=6>Not enough credit on your account</font><br>
  558. <img src="<<$callerid>>"><br><br>
  559. <a href="exec:gs ''telefon'', ''Phone_menu'' "><img src="images/system/phone/decline.png"></a><br>'
  560. dynamic $telefon['print']
  561. wait 3500
  562. cla
  563. gt $loc, $loc_arg
  564. elseif balans >= 4:
  565. balans -= 4
  566. end
  567. end &! --- phone_balance ---
  568. if $ARGS[0] = 'Phone_call':
  569. $telefon['body'] = '
  570. <font size=6>Calling <<$npc_nickname[''A29'']>></font><br>
  571. <img src="images/system/phone/icons/icon_npc1.png"><br><br>
  572. <a href="exec:gs ''telefon'', ''Phone_contactlist'' "><img src="images/system/phone/decline.png"></a><br>'
  573. dynamic $telefon['print']
  574. wait 1500
  575. minut += 1
  576. $callerid = 'images/system/phone/icons/icon_npc1.png'
  577. gs 'telefon', 'phone_balance'
  578. $callerid = 'images/system/phone/icons/icon_npc1.png'
  579. gs 'telefon', 'phone_call_reject'
  580. end &! --- Phone_call ---
  581. if $ARGS[0] = 'phone_call_reject':
  582. $telefon['body'] = '
  583. <font size=6>Calling...</font><br>
  584. <img src="<<$callerid>>"><br><br>
  585. <a href="exec:gs ''telefon'', ''Phone_contactlist'' "><img src="images/system/phone/decline.png"></a><br>'
  586. dynamic $telefon['print']
  587. end &! --- phone_call_reject ---
  588. if $ARGS[0] = 'Phone_megafon':
  589. $telefon['body'] = '
  590. <font size=6>MegaFon</font><br>
  591. <img src="<<FUNC(''$phone_theme'')>>icon_megafon.png" height="80" width="80"><br><br>
  592. <b>The balance in the account:</b>
  593. <font size=5><<balans>> ₽.</font><br>'
  594. dynamic $telefon['print']
  595. end &! --- Phone_megafon ---
  596. if $ARGS[0] = 'Edit_Custom_list':
  597. clr
  598. dummyas = arrsize('$contact')
  599. :din_bad_as1
  600. dummyas -= 1
  601. if dummyas >= 0:
  602. $dummyedit = $contact[dummyas]
  603. $dummyedit1 = dyneval('$result = ''</a><a href="exec:killvar ''''$contact'''',<<dummyas>> & gs ''''telefon'''', ''''Edit_Custom_list'''' "><b>Remove</b>'' ')
  604. $dummyedit2 = $replace($dummyedit,'<b>Call</b>',$dummyedit1)
  605. pl $dummyedit2
  606. jump 'din_bad_as1'
  607. end
  608. killvar 'dummyas'
  609. killvar 'dummyedit'
  610. killvar 'dummyedit1'
  611. killvar 'dummyedit2'
  612. pl'<center><a href="exec:gs ''telefon'', ''Phone_menu'' "><img src="images/system/icons/back.png"></a></center>'
  613. !dynamic $telefon['print']
  614. end &! --- Edit_Custom_list ---
  615. if $ARGS[0] = 'mobilaraz':
  616. cls
  617. cla
  618. gs'din_bad'
  619. $caller = '<<$telsob>>'
  620. gs 'telefon','phone_balance'
  621. gs 'telefon','phone_call_receive'
  622. willAgree = (rand(0, 10) > 3)
  623. '"Yes, I''m listening," says a voice from the speaker.'
  624. if month > 5 and temper > 20 and sunWeather = 1:
  625. act 'Invite to the park':
  626. cla
  627. '"Let''s go for a walk in the park."'
  628. if willAgree:
  629. '<<$telsob>>, "See you in the park in an hour."'
  630. act 'Go':gt 'parksvid'
  631. else
  632. gs 'telefon','telotkaz',$telsob
  633. end
  634. end
  635. end
  636. act 'Invite to a movie':
  637. cla
  638. '"Want to go see a movie?"'
  639. if willAgree:
  640. '<<$telsob>>, "See you at the movie theater in an hour."'
  641. act 'Go':gt 'kinosvid'
  642. else
  643. gs 'telefon','telotkaz',$telsob
  644. end
  645. end
  646. act 'Invite to the pool hall':
  647. cla
  648. '"Let''s play pool."'
  649. if willAgree:
  650. '<<$telsob>>, "See you at the pool hall in an hour."'
  651. act 'Go':gt 'billsvid'
  652. else
  653. gs 'telefon','telotkaz',$telsob
  654. end
  655. end
  656. act 'Invite to the cafe':
  657. cla
  658. '"Let''s go to the cafe."'
  659. if willAgree:
  660. '<<$telsob>>, "See you at the cafe in an hour."'
  661. act 'Go':gt 'kafesvid'
  662. else
  663. gs 'telefon','telotkaz',$telsob
  664. end
  665. end
  666. act 'Invite to the casino':
  667. cla
  668. '"Let''s go to the casino."'
  669. if willAgree:
  670. '<<$telsob>>, "See you in the casino in an hour."'
  671. act 'Go':gt 'kazinosvid'
  672. else
  673. gs 'telefon','telotkaz',$telsob
  674. end
  675. end
  676. act 'Hangup':gt 'telefon', 'fin'
  677. end
  678. !----------------End Old Telephone----------------------------
  679. !-----------------------------------------------------------------------------
  680. ! Support for Hardcoded Lovers (BF/GF)
  681. if $ARGS[0] = 'callingTheLover' and loverGender[ARGS[1]] = 1:
  682. cls
  683. cla
  684. gs'din_bad'
  685. lover_number = ARGS[1]
  686. $caller = '<<$loverdesc[lover_number]>>'
  687. $telsob = $caller
  688. $callerid = 'images/characters/shared/headshots_generic/'+lover_picture[lover_number]+'.jpg'
  689. gs 'telefon','phone_balance'
  690. gs 'telefon','phone_call_receive'
  691. willAgree = (rand(0, 10) > 3)
  692. '"Yes, I''m listening," says a voice from the speaker.'
  693. if month > 5 and temper > 20 and sunWeather = 1:
  694. act 'Invite to the park':
  695. cla
  696. '"Let''s go for a walk in the park."'
  697. if willAgree:
  698. '<<$telsob>>, "See you in the park in an hour."'
  699. act 'Go': gt 'parksvid'
  700. else
  701. gs 'telefon','telotkaz',$telsob
  702. end
  703. end
  704. end
  705. act 'Invite to a movie':
  706. cla
  707. '"Want to go see a movie?"'
  708. if willAgree:
  709. '<<$telsob>>, "See you at the movie theater in an hour."'
  710. act 'Go': gt 'kinosvid'
  711. else
  712. gs 'telefon','telotkaz',$telsob
  713. end
  714. end
  715. if $home_town = 'city':
  716. act 'Invite to the pool hall':
  717. cla
  718. '"Let''s play pool."'
  719. if willAgree:
  720. '<<$telsob>>, "See you at the pool hall in an hour."'
  721. act 'Go': gt 'billsvid'
  722. else
  723. gs 'telefon','telotkaz',$telsob
  724. end
  725. end
  726. end
  727. act 'Invite to the cafe':
  728. cla
  729. '"Let''s go to the cafe."'
  730. if willAgree:
  731. '<<$telsob>>, "See you at the cafe in an hour."'
  732. act 'Go': gt 'kafesvid'
  733. else
  734. gs 'telefon','telotkaz',$telsob
  735. end
  736. end
  737. act 'Invite to the casino':
  738. cla
  739. '"Let''s go to the casino."'
  740. if willAgree:
  741. '<<$telsob>>, "See you in the casino in an hour."'
  742. act 'Go': gt 'kazinosvid'
  743. else
  744. gs 'telefon','telotkaz',$telsob
  745. end
  746. end
  747. act 'I think we should break up...':
  748. cla
  749. 'She sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  750. gs 'lover', 'remove', lover_number
  751. act 'Hangup':gt 'telefon', 'fin'
  752. end
  753. act 'Hangup':gt 'telefon', 'fin'
  754. end
  755. if $ARGS[0] = 'callingTheLover' and loverGender[ARGS[1]] = 0:
  756. cls
  757. cla
  758. gs'din_bad'
  759. lover_number = ARGS[1]
  760. $caller = '<<$loverdesc[lover_number]>>'
  761. $callerid = 'images/characters/shared/headshots_generic/'+lover_picture[lover_number]+'.jpg'
  762. gs 'telefon','phone_balance'
  763. gs 'telefon','phone_call_receive'
  764. willAgree = (rand(0, 10) > 3)
  765. '"Yes, I''m listening," says a voice from the speaker.'
  766. if month > 5 and temper > 20 and sunWeather = 1:
  767. act 'Invite to the park':
  768. cla
  769. '"Let''s go for a walk in the park."'
  770. if willAgree:
  771. '<<$loverdesc[lover_number]>>, "See you in the park in an hour."'
  772. act 'Go':gt 'svidboy', 'parksvid'
  773. else
  774. gs 'telefon','telotkaz',$loverdesc[lover_number]
  775. end
  776. end
  777. end
  778. act 'Invite to a movie':
  779. cla
  780. '"Want to go see a movie?"'
  781. if willAgree:
  782. '<<$loverdesc[lover_number]>>, "See you at the movie theater in an hour."'
  783. act 'Go':gt 'svidboy', 'kinosvid'
  784. else
  785. gs 'telefon','telotkaz',$loverdesc[lover_number]
  786. end
  787. end
  788. if $home_town = 'city':
  789. act 'Invite to the pool hall':
  790. cla
  791. '"Let''s play pool."'
  792. if willAgree:
  793. '<<$loverdesc[lover_number]>>, "See you at the pool hall in an hour."'
  794. act 'Go':gt 'svidboy', 'billsvid'
  795. else
  796. gs 'telefon','telotkaz',$loverdesc[lover_number]
  797. end
  798. end
  799. end
  800. act 'Invite to the cafe':
  801. cla
  802. '"Let''s go to the cafe."'
  803. if willAgree:
  804. '<<$loverdesc[lover_number]>>, "See you at the cafe in an hour."'
  805. act 'Go':gt 'svidboy', 'kafesvid'
  806. else
  807. gs 'telefon','telotkaz',$loverdesc[lover_number]
  808. end
  809. end
  810. act 'I think we should break up...':
  811. cla
  812. 'He sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  813. gs 'lover', 'remove', lover_number
  814. act 'Hangup':gt 'telefon', 'fin'
  815. end
  816. act 'Hangup':gt 'telefon', 'fin'
  817. end
  818. if $ARGS[0] = 'lover' and loverGender[ARGS[1]] = 0:
  819. cla
  820. clr
  821. lover_number = ARGS[1]
  822. ring = 0
  823. lover_days = daystart - loverday[lover_number]
  824. !gs 'stat'
  825. !gs 'telefon','phone_call_receive'
  826. svetrand = rand(0, 5)
  827. if svetrand = 0:$sveta = 'cutie'
  828. if svetrand = 1:$sveta = 'honey'
  829. if svetrand = 2:$sveta = 'sweetie'
  830. if svetrand = 3:$sveta = 'baby'
  831. if svetrand = 4:$sveta = 'hot stuff'
  832. if svetrand = 5:$sveta = '<<$pcs_nickname>>'
  833. 'Hey <<$sveta>>, it''s me, <<$loverdesc[lover_number]>>. How''s it going?'
  834. act 'Reply':
  835. cla
  836. '"Pretty good, you?"'
  837. '<<$loverdesc[lover_number]>>, "Great, but I kind of miss you, can we meet today?"'
  838. if (pregchem / 24) <= lover_days and knowpreg = 1 and pregtalk = 0:
  839. act 'Tell him he''s going to be a dad':
  840. cla
  841. pregtalk = 1
  842. '"Honey, I''m pregnant with your child."'
  843. if haraklover[lover_number] = 0:
  844. if loverrelation[lover_number] >= 90:
  845. loverlove[lover_number] = 1
  846. '<<$loverdesc[lover_number]>>, "This is wonderful! We have to celebrate!"'
  847. 'You start talking about living together. <<$loverdesc[lover_number]>> tells you that he is not against it on principle, but first he wants you to meet his parents.'
  848. '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, and have well-groomed and curled hair and makeup in moderation.'
  849. 'When you are totally ready <<$loverdesc[lover_number]>> will take you to his parents.'
  850. act 'Hang up':gt 'telefon', 'fin'
  851. act 'Meet tonight':
  852. cla
  853. svidanie[lover_number] = 1
  854. '"How about this evening?"'
  855. '<<$loverdesc[lover_number]>>, "Sounds great! When can I come to pick you up?"'
  856. act 'Pick a time':
  857. cla
  858. meetday[lover_number] = daystart
  859. 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]")
  860. if meethour[lover_number] <= hour or meethour[lover_number] > 23:meethour[lover_number] = 20
  861. '"How about <<meethour[lover_number]>>:00?"'
  862. '<<$loverdesc[lover_number]>>, "Okay <<$sveta>>, see you at <<meethour[lover_number]>>:00."'
  863. act 'Hang up':gt 'telefon', 'fin'
  864. end
  865. end
  866. elseif loverrelation[lover_number] < 90:
  867. money += 20000
  868. '<<$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.'
  869. act 'Hang up':gt 'telefon', 'fin'
  870. end
  871. elseif haraklover[lover_number] = 1:
  872. money += 20000
  873. '<<$loverdesc[lover_number]>> "I''m not yet ready to become a dad. I''ll give you the money get an abortion.'
  874. act 'Hang up':gt 'telefon', 'fin'
  875. elseif haraklover[lover_number] = 2:
  876. pregtalk = 0
  877. '<<$loverdesc[lover_number]>>, "What? You whore! Someone fucked your pussy, and now you drop it on me. You''re dumped.'
  878. gs 'lover', 'remove', lover_number
  879. act 'Hang up':gt 'telefon', 'fin'
  880. end
  881. end
  882. elseif (pregchem / 24) > lover_days and knowpreg = 1 and pregtalk = 0:
  883. act 'Honey, you will soon become a dad':
  884. cla
  885. loverrelation[lover_number] = 0
  886. '"Honey, I''m pregnant with your child."'
  887. '<<$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 else''s, go and tell him. I don''t want to see you again, goodbye."'
  888. act 'Hang up.':gt 'telefon', 'fin'
  889. end
  890. elseif week > 1 and week < 5 and workKafe = 1:
  891. act 'Sorry, I''m working today':
  892. cla
  893. '"Sorry, I''m working today."'
  894. '<<$loverdesc[lover_number]>>, "Okay, I''ll call tomorrow."'
  895. act 'Hang up':gt 'telefon', 'fin'
  896. end
  897. end
  898. act 'Tonight':
  899. cla
  900. loverrelation[lover_number] += 1
  901. svidanie[lover_number] = 1
  902. meetday[lover_number] = daystart
  903. '"How about this evening?"'
  904. '<<$loverdesc[lover_number]>>, "Sounds great! When can I come to pick you up?"'
  905. act 'Pick a time':
  906. cla
  907. 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]")
  908. if meethour[lover_number] <= hour or meethour[lover_number] > 23:meethour[lover_number] = 20
  909. '"How about <<meethour[lover_number]>>:00?."'
  910. '<<$loverdesc[lover_number]>>, "Okay <<$sveta>>, see you at <<meethour[lover_number]>>:00."'
  911. act 'Hang up':gt 'telefon', 'fin'
  912. end
  913. end
  914. act 'Maybe tomorrow':
  915. cla
  916. loverrelation[lover_number] -= 1
  917. '"I''m busy today. Call tomorrow."'
  918. if loverrelation[lover_number] <= 0:'<<$loverdesc[lover_number]>>, Are you fucking me, you know what. Suck my dick.' & gs 'lover', 'remove', lover_number
  919. if loverrelation[lover_number] > 0:'(<<$loverdesc[lover_number]>>) - Okay, I''ll call tomorrow.'
  920. act 'Hang up': gt 'telefon', 'fin'
  921. end
  922. act 'I think we should break up...':
  923. cla
  924. 'He sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  925. gs 'lover', 'remove', lover_number
  926. act 'Hang up': gt 'telefon', 'fin'
  927. end
  928. end
  929. act 'Hang up (end relationship)':
  930. cla
  931. gs 'lover', 'remove', lover_number
  932. gt 'telefon', 'fin'
  933. end
  934. end
  935. if $ARGS[0] = 'lover' and loverGender[ARGS[1]] = 1:
  936. cla
  937. clr
  938. lover_number = ARGS[1]
  939. ring = 0
  940. lover_days = daystart - loverday[lover_number]
  941. !gs 'stat'
  942. !gs 'telefon','phone_call_receive'
  943. svetrand = rand(0, 5)
  944. if svetrand = 0:$sveta = 'cutie'
  945. if svetrand = 1:$sveta = 'honey'
  946. if svetrand = 2:$sveta = 'sweetie'
  947. if svetrand = 3:$sveta = 'baby'
  948. if svetrand = 4:$sveta = 'hot stuff'
  949. if svetrand = 5:$sveta = '<<$pcs_nickname>>'
  950. 'Hey <<$sveta>>, it''s me, <<$loverdesc[lover_number]>>. How''s it going?'
  951. act 'Reply':
  952. cla
  953. '"Pretty good, you?"'
  954. '<<$loverdesc[lover_number]>>, "Great, but I kind of miss you, can we meet today?"'
  955. act 'Tonight':
  956. cla
  957. loverrelation[lover_number] += 1
  958. svidanie[lover_number] = 1
  959. meetday[lover_number] = daystart
  960. '"How about this evening?"'
  961. '<<$loverdesc[lover_number]>>, "Sounds great! When can I come to pick you up?"'
  962. act 'Pick a time':
  963. cla
  964. 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]")
  965. if meethour[lover_number] <= hour or meethour[lover_number] > 23:meethour[lover_number] = 20
  966. '"How about <<meethour[lover_number]>>:00?."'
  967. '<<$loverdesc[lover_number]>>, "Okay <<$sveta>>, see you at <<meethour[lover_number]>>:00."'
  968. act 'Hang up':gt 'telefon', 'fin'
  969. end
  970. end
  971. act 'Maybe tomorrow':
  972. cla
  973. loverrelation[lover_number] -= 1
  974. '"I''m busy today. Call tomorrow."'
  975. if loverrelation[lover_number] <= 0:'<<$loverdesc[lover_number]>>, Are you fucking me, you know what. Fuck off.' & gs 'lover', 'remove', lover_number
  976. if loverrelation[lover_number] > 0:'(<<$loverdesc[lover_number]>>) - Okay, I''ll call tomorrow.'
  977. act 'Hang up': gt 'telefon', 'fin'
  978. end
  979. act 'I think we should break up...':
  980. cla
  981. 'She sounds hurt, but you insist it is for the best. You both say goodbye and part ways.'
  982. gs 'lover', 'remove', lover_number
  983. act 'Hang up': gt 'telefon', 'fin'
  984. end
  985. end
  986. act 'Hang up (end relationship)':
  987. cla
  988. gs 'lover', 'remove', lover_number
  989. gt 'telefon', 'fin'
  990. end
  991. end
  992. !---------------------- End of Lover support
  993. if $ARGS[0] = 'Phone_notebook':
  994. gs 'housing', 'rent'
  995. $telefon['body'] = '
  996. <font size=6>Planner</font><br>
  997. <img src="<<FUNC(''$phone_theme'')>>icon_notebook.png" height="80" width="80"><br>
  998. <<year>>-<<$month>>-<<day>>, <<$week[week]>><br><br>'
  999. rent1 = -1
  1000. rent4 = -1
  1001. if home_owned[1] > 0 and ArendHouseSL > 0:rent1 = ArendHouseSL
  1002. if home_owned[4] > 0 and ArendHouseSL4 > 0:rent4 = ArendHouseSL4
  1003. d1 = day
  1004. w1 = week
  1005. m1 = month
  1006. y1 = year
  1007. i = 0
  1008. $list = '<br>&emsp;<b>•</b> '
  1009. :pnotebook
  1010. daynum = daystart+i
  1011. $calendarday = ''
  1012. if m1 = 1 and d1 >= 1 and d1 <= 8:
  1013. $calendarday += $list + 'New Year holidays'
  1014. if d1 = 1:$calendarday += ', New Year'
  1015. if d1 = 7:$calendarday += ', Christmas'
  1016. end
  1017. if m1 = 2 and d1 = 23:$calendarday += $list + 'Defender of Fatherland Day'
  1018. if m1 = 3 and d1 = 8:$calendarday += $list + 'Women''s Day'
  1019. if m1 = 5 and d1 = 1:$calendarday += $list + 'Spring and Labor Day'
  1020. if m1 = 5 and d1 = 2:$calendarday += $list + 'National holiday'
  1021. if m1 = 5 and d1 = 9:$calendarday += $list + 'Victory Day'
  1022. if m1 = 6 and d1 = 12:$calendarday += $list + 'Russia Day'
  1023. if m1 = 6 and d1 = 13:$calendarday += $list + 'National holiday'
  1024. if m1 = 11 and d1 = 4:$calendarday += $list + 'Unity Day'
  1025. if storyline = 1 and SchoolAtestat = 0:
  1026. if m1 = 1 and d1 = 1:$calendarday += $list + 'First day of Winter break.'
  1027. if m1 = 1 and d1 = 15:$calendarday += $list + 'Last day of Winter break.'
  1028. if m1 = 3 and d1 = 20:$calendarday += $list + 'First day of Spring break.'
  1029. if m1 = 3 and d1 = 26:$calendarday += $list + 'Last day of Spring break.'
  1030. if y1 = 2017 and m1 = 5 and d1 = 25:$calendarday += $list + 'Graduation Day!'
  1031. if m1 = 6 and d1 = 1:$calendarday += $list + 'First day of Summer break.'
  1032. if m1 = 8 and d1 = 31:$calendarday += $list + 'Last day of Summer break.'
  1033. if m1 = 11 and d1 = 4:$calendarday += $list + 'First day of Autumn break.'
  1034. if m1 = 11 and d1 = 11:$calendarday += $list + 'Last day of Autumn break.'
  1035. end
  1036. if daynum >= daylastperiod+28 and daynum < daylastperiod+31:$calendarday += $list + '<font color=''red''><b>Menstruation!</b></font>'
  1037. if daynum >= daylastperiod+12 and daynum < daylastperiod+14:$calendarday += $list + '<font color=#336600><b>Ovulation!</b></font>'
  1038. if pregchem >= 6720:$calendarday += $list + '<font color=''red''><b>Birthing day!</b></font>'
  1039. if w1 < 5 and (workSec >= 1 or BurgerQW['Secretary'] = 1):$calendarday += $list + 'Working as a secretary. <i>(9:00 - 17:00)</i>'
  1040. if w1 < 5 and workFabrika = 1:
  1041. $calendarday += $list + 'Working as a seamstress. '
  1042. if age < 18:$calendarday += '<i>(16:00 - 20:00)</i>' else $calendarday += '<i>(8:00 - 16:00)</i>'
  1043. end
  1044. if w1 > 1 and w1 <= 5 and workhosp = 1:$calendarday += $list + 'Working as a nurse. <i>(8:00 - 16:00)</i>'
  1045. if worksalon = 1 and (w1 = 1 or w1 = 3 or w1 = 5):$calendarday += $list + 'Working as a masseuse. <i>(9:00 - 17:00)</i>'
  1046. !! if maidqw > 0:$calendarday += '<br>&emsp;<b>•</b> Working as maid. <i>(16:00 - 19:00)</i>'
  1047. if pfilmday[i] > 0:$calendarday += $list + 'Porn shoot: <i><<$porndesc[pfilmday[i]]>></i>'
  1048. if d1 = 25 and (BurgerQW['Secretary'] = 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>'
  1049. if d1 = nyp_day and m1 = 12 and SchoolAtestat = 0 and StoryLine = 1:$calendarday += $list + 'New Year''s party at 14:00!'
  1050. if (npc_QW['A33']-2) mod 2 = 1 and sisboyday+1 = daynum:
  1051. if sisboytrioQW = 1:
  1052. $calendarday += $list + '<font color="orange">Threesome with Anya and Roma at 18:00</font>'
  1053. else
  1054. $calendarday += $list + '<font color="orange">Anya having sex with Roma at 18:00</font>'
  1055. end
  1056. end
  1057. if sisboyparty = 2 and sisboyparty_day+1 = daynum:$calendarday += $list + '<font color="orange">Party at Rex''s, gathering before 18:00 at Community Center</font>'
  1058. if rent1 = 0:$calendarday += $list + 'Rent on city apartment expires!'
  1059. if rent4 = 0:$calendarday += $list + 'Rent on Pushkin apartment expires!'
  1060. if birthday = d1 and birthmonth = m1:$calendarday += $list + 'My birthday!'
  1061. if kid > 0:
  1062. k1 = kid
  1063. :kiddieloop
  1064. if daykid[k1] = d1 and monthkid[k1] = m1:$calendarday += $list + 'Birthday of my <<$polreb[k1]>> <<$kidname[k1]>>, my <<kid>>. baby!'
  1065. if k1 > 1:k1 -= 1 & jump 'kiddieloop'
  1066. end
  1067. if $calendarday ! '':
  1068. $telefon['body'] += '<b><<$monthName[m1]>> <<d1>>, <<$week[w1]>>:</b>'
  1069. $telefon['body'] += $calendarday +'<br>'
  1070. end
  1071. if i < 14:
  1072. rent1 -= 1
  1073. rent4 -= 1
  1074. i += 1
  1075. w1 += 1
  1076. if w1 > 7:w1 = 1
  1077. d1 += 1
  1078. if monthsend[m1] < d1:
  1079. m1 += 1 & d1 = 1
  1080. if m1 = 13: m1 = 1 & y1 += 1
  1081. end
  1082. jump 'pnotebook'
  1083. end
  1084. killvar 'calendarday'
  1085. killvar 'rent1'
  1086. killvar 'rent4'
  1087. killvar 'd1'
  1088. killvar 'w1'
  1089. killvar 'm1'
  1090. killvar 'y1'
  1091. killvar 'daynum'
  1092. dynamic $telefon['print']
  1093. end &! --- Phone_notebook ---
  1094. !!----------------------------------------Camera-------------------------------------------------
  1095. !!for viewing photos on your phone
  1096. if $ARGS[0] = 'Phone_pictures':
  1097. gt 'phone_selfies', 'selfies'
  1098. end
  1099. !!picking the selfie image when taking photos, this sets the location variable
  1100. !{
  1101. $ARGS[1] is phone location if left blank it is a generic selfie (one of the locations in $selfieLoc[])
  1102. $ARGS[2] is for flashing when clothed if left blank then it is not flashing
  1103. }
  1104. if $ARGS[0] = 'Phone_camera_selfie':
  1105. minut += rand(5,7)
  1106. if $ARGS[1] <> '':
  1107. gs 'telefon', 'Phone_selfie_image', $ARGS[1], $ARGS[2]
  1108. else
  1109. phone_rand = RAND(1,selfieClotot[0])
  1110. dynamic '<<$selfieLoc[0]>>_closelfie[<<phone_rand>>] = 1'
  1111. gs 'stat'
  1112. if usePopUps = 1:
  1113. msg '<img src="images/pc/activities/phone/selfies/<<$selfieLoc[0]>>/clothed/<<$selfieFilePrefix[0]>><<phone_rand>>.jpg">'
  1114. else
  1115. view 'images/pc/activities/phone/selfies/<<$selfieLoc[0]>>/clothed/<<$selfieFilePrefix[0]>><<phone_rand>>.jpg'
  1116. end
  1117. end
  1118. !if spdirtyf > 0: phone_rand = RAND (m,n) - for SELF in the semen
  1119. !if photo_event_pic = x: phone_rand = RAND (x,y) - for photos during the events (by heart)
  1120. !msg '<img src="images/system/phone/phone_selfie<<phone_rand>>.jpg">'
  1121. end
  1122. !!taking selfies, this chooses a random image for the location for clothed, underwear and nude
  1123. !{
  1124. $ARGS[1] is phone location (one of the locations in $selfieLoc[])
  1125. $ARGS[2] is for flashing when clothed if left blank then it is not flashing
  1126. }
  1127. if $ARGS[0] = 'Phone_selfie_image':
  1128. if $ARGS[2] = '':
  1129. if PCloswimwear = 1:
  1130. !!changing to and unmixed variable so the rng will work
  1131. if Enable_Android = 1:
  1132. dynamic 'temp_swim = <<selfieSwimtot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>'
  1133. else
  1134. dynamic 'temp_swim = <<selfieSwimtot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>'
  1135. end
  1136. if temp_swim > 0:
  1137. phone_rand = rand(1,temp_swim)
  1138. !!Setting the image owned flag to 1
  1139. dynamic '<<$ARGS[1]>>_swim[<<phone_rand>>] = 1'
  1140. gs 'stat'
  1141. if usePopUps = 1:
  1142. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/bikini/<<phone_rand>>.jpg">'
  1143. else
  1144. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/bikini/<<phone_rand>>.jpg'
  1145. end
  1146. end
  1147. elseif $clothingworntype ! 'nude':
  1148. !!changing to and unmixed variable so the rng will work
  1149. if Enable_Android = 1:
  1150. dynamic 'temp_clotot = <<selfieClotot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>'
  1151. else
  1152. dynamic 'temp_clotot = <<selfieClotot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>'
  1153. end
  1154. if temp_clotot > 0:
  1155. phone_rand = rand(1,temp_clotot)
  1156. !!Setting the image owned flag to 1
  1157. dynamic '<<$ARGS[1]>>_closelfie[<<phone_rand>>] = 1'
  1158. gs 'stat'
  1159. if usePopUps = 1:
  1160. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/clothed/<<phone_rand>>.jpg">'
  1161. else
  1162. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/clothed/<<phone_rand>>.jpg'
  1163. end
  1164. end
  1165. elseif $pantyworntype ! 'none':
  1166. if Enable_Android = 1:
  1167. dynamic 'temp_undtot = <<selfieUndtot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>'
  1168. else
  1169. dynamic 'temp_undtot = <<selfieUndtot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>'
  1170. end
  1171. if temp_undtot > 0:
  1172. phone_rand = rand(1,temp_undtot)
  1173. dynamic '<<$ARGS[1]>>_undselfie[<<phone_rand>>] = 1'
  1174. gs 'stat'
  1175. if usePopUps = 1:
  1176. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/underwear/<<phone_rand>>.jpg">'
  1177. else
  1178. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/underwear/<<phone_rand>>.jpg'
  1179. end
  1180. end
  1181. else
  1182. if Enable_Android = 1:
  1183. dynamic 'temp_nudtot = <<selfieNudtot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>'
  1184. else
  1185. dynamic 'temp_nudtot = <<selfieNudtot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>'
  1186. end
  1187. if temp_nudtot > 0:
  1188. phone_rand = rand(1,temp_nudtot)
  1189. dynamic '<<$ARGS[1]>>_nudselfie[<<phone_rand>>] = 1'
  1190. gs 'stat'
  1191. if usePopUps = 1:
  1192. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/nude/<<phone_rand>>.jpg">'
  1193. else
  1194. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/nude/<<phone_rand>>.jpg'
  1195. end
  1196. end
  1197. end
  1198. else
  1199. if $ARGS[2] = 'tits':
  1200. if Enable_Android = 1:
  1201. dynamic 'temp_titflash = <<selfieTitflash[arrpos(''$selfieLoc'', $ARGS[1],1)]>>'
  1202. else
  1203. dynamic 'temp_titflash = <<selfieTitflash[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>'
  1204. end
  1205. if temp_titflash > 0:
  1206. phone_rand = rand(1,temp_titflash)
  1207. dynamic '<<$ARGS[1]>>_titflash[<<phone_rand>>] = 1'
  1208. gs 'stat'
  1209. if usePopUps = 1:
  1210. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/titflash/<<phone_rand>>.jpg">'
  1211. else
  1212. view 'images/pc/activities/selfies/phone/<<$ARGS[1]>>/titflash/<<phone_rand>>.jpg'
  1213. end
  1214. end
  1215. elseif $ARGS[2] = 'ass':
  1216. if Enable_Android = 1:
  1217. dynamic 'temp_assflash = <<selfieAssflash[arrpos(''$selfieLoc'', $ARGS[1],1)]>>'
  1218. else
  1219. dynamic 'temp_assflash = <<selfieAssflash[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>'
  1220. end
  1221. if temp_assflash > 0:
  1222. phone_rand = rand(1,temp_assflash)
  1223. dynamic '<<$ARGS[1]>>_assflash[<<phone_rand>>] = 1'
  1224. gs 'stat'
  1225. if usePopUps = 1:
  1226. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/assflash/<<phone_rand>>.jpg">'
  1227. else
  1228. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/assflash/<<phone_rand>>.jpg'
  1229. end
  1230. end
  1231. elseif $ARGS[2] = 'pussy':
  1232. if Enable_Android = 1:
  1233. dynamic 'temp_pussyflash = <<selfiePussyflash[arrpos(''$selfieLoc'', $ARGS[1],1)]>>'
  1234. else
  1235. dynamic 'temp_pussyflash = <<selfiePussyflash[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>'
  1236. end
  1237. if temp_pussyflash > 0:
  1238. phone_rand = rand(1,temp_pussyflash)
  1239. dynamic '<<$ARGS[1]>>_pussyflash[<<phone_rand>>] = 1'
  1240. gs 'stat'
  1241. if usePopUps = 1:
  1242. msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/pussyflash/<<phone_rand>>.jpg">'
  1243. else
  1244. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/pussyflash/<<phone_rand>>.jpg'
  1245. end
  1246. end
  1247. end
  1248. end
  1249. end
  1250. !!taking selfies in the shower or bath
  1251. if $ARGS[0] = 'Phone_selfie_image_bathing':
  1252. minut += rand(5,7)
  1253. if $ARGS[1] = 'shower':
  1254. !!changing to and unmixed variable so the rng will work
  1255. if Enable_Android = 1:
  1256. dynamic 'temp_showertot = <<selfieShowertot[arrpos(''$selfieLoc'', ''bathroom'',1)]>>'
  1257. else
  1258. dynamic 'temp_showertot = <<selfieShowertot[arrpos(1, ''$selfieLoc'', ''bathroom'')]>>'
  1259. end
  1260. phone_rand = rand(1,temp_showertot)
  1261. !!Setting the image owned flag to 1
  1262. dynamic 'bathroom_showerselfie[<<phone_rand>>] = 1'
  1263. gs 'stat'
  1264. if usePopUps = 1:
  1265. msg '<img src="images/pc/activities/phone/selfies/bathroom/shower/<<phone_rand>>.jpg">'
  1266. else
  1267. view 'images/pc/activities/phone/selfies/bathroom/shower/<<phone_rand>>.jpg'
  1268. end
  1269. elseif $ARGS[1] = 'bath':
  1270. if Enable_Android = 1:
  1271. dynamic 'temp_bathtot = <<selfieBathtot[arrpos(''$selfieLoc'', ''bathroom'',1)]>>'
  1272. else
  1273. dynamic 'temp_bathtot = <<selfieBathtot[arrpos(1, ''$selfieLoc'', ''bathroom'')]>>'
  1274. end
  1275. phone_rand = rand(1,temp_bathtot)
  1276. dynamic 'bathroom_bathselfie[<<phone_rand>>] = 1'
  1277. gs 'stat'
  1278. if usePopUps = 1:
  1279. msg '<img src="images/pc/activities/phone/selfies/bathroom/bath/<<phone_rand>>.jpg">'
  1280. else
  1281. view 'images/pc/activities/selfies/phone/bathroom/bath/<<phone_rand>>.jpg'
  1282. end
  1283. end
  1284. end
  1285. !!for taking photos - only selfies for now
  1286. if $ARGS[0] = 'Phone_camera':
  1287. gs 'phone_selfies', 'Phone_selfie_totals'
  1288. if $locclass = 'bedr':
  1289. $phone_loc = 'bedroom'
  1290. elseif $locclass = 'kitr':
  1291. $phone_loc = 'kitchen'
  1292. elseif $locclass = 'livingr':
  1293. $phone_loc = 'livingroom'
  1294. elseif $locclass = 'changingroom':
  1295. $phone_loc = 'changingroom'
  1296. elseif $locclass = 'city_park':
  1297. $phone_loc = 'park'
  1298. elseif $locclass = 'lockeroom':
  1299. $phone_loc = 'lockeroom'
  1300. elseif $locclass = 'beach':
  1301. $phone_loc = 'beach'
  1302. elseif $locclass = 'beach':
  1303. $phone_loc = 'beach'
  1304. elseif $locclass = 'classroom':
  1305. $phone_loc = 'classroom'
  1306. elseif $locclass = 'school_bathroom':
  1307. $phone_loc = 'school_bathroom'
  1308. elseif $locclass = 'restroom':
  1309. $phone_loc = 'restroom'
  1310. elseif $location_type = 'bathroom':
  1311. $phone_loc = 'bathroom'
  1312. else
  1313. $phone_loc = ''
  1314. end
  1315. $telefon['body'] = '<font size=6>Camera</font><br>
  1316. <img src="<<FUNC(''$phone_theme'')>>icon_camera.png" height="80" width="80"><br><br>'
  1317. !! Take a selfie depending on which clothes you are wearing
  1318. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''Phone_camera_selfie'', ''<<$phone_loc>>'' "><b>Take a selfie</b></a><br>'
  1319. !! Flashing selfie
  1320. if $clothingworntype ! 'nude' and $phone_loc <> '':
  1321. if Enable_Android = 1:
  1322. locIndex = arrpos('$selfieLoc', $phone_loc,1)
  1323. else
  1324. locIndex = arrpos(1, '$selfieLoc', $phone_loc)
  1325. end
  1326. if (pcs_inhib >= 35 or exhibitionist_lvl > 0 or $phone_loc = 'bedroom') and dyneval("result = <<selfieTitflash[locIndex]>>") > 0:
  1327. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''Phone_camera_selfie'', ''<<$phone_loc>>'', ''tits'' "><b>Flash your tits for a selfie</b></a><br>'
  1328. end
  1329. if (exhibitionist_lvl > 0 or $phone_loc = 'bedroom') and dyneval("result = <<selfieAssflash[locIndex]>>") > 0:
  1330. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''Phone_camera_selfie'', ''<<$phone_loc>>'', ''ass'' "><b>Flash your ass for a selfie</b></a><br>'
  1331. end
  1332. if (exhibitionist_lvl > 1 or $phone_loc = 'bedroom') and dyneval("result = <<selfiePussyflash[locIndex]>>") > 0:
  1333. $telefon['body'] += '<a href="exec:photoskl_exp += 1 & gs ''telefon'', ''Phone_camera_selfie'', ''<<$phone_loc>>'', ''pussy'' "><b>Flash your pussy for a selfie</b></a><br>'
  1334. end
  1335. end
  1336. dynamic $telefon['print']
  1337. end
  1338. !!-----------------------------------end of Camera------------------------------------------
  1339. !!-----------------------------------start of sms------------------------------------------
  1340. !{
  1341. Send SMS lists the current contacts, then clicking on a contact gives a list of messages that can be sent.
  1342. Receive messages lists the sms messages sent to the player, these can be deleted, they will be in bold until read.
  1343. To add an incoming message
  1344. gs 'telefon', 'add_sms', 'A1', 'Test message the text goes here', 'images\pc\selfies\bathroom\underwear\1.jpg', 'images\pc\selfies\school_bathroom\pussyflash\1.jpg'
  1345. A1 is the NPC code (A1 is Dmitriy Nosov "Dimka")
  1346. You can have up to 4 pictures attached to the message
  1347. To add an out going message that can be sent
  1348. gs 'telefon', 'add_sms_to_send', 'A1', 'Test message the text goes here'
  1349. To add a contact if it doesn't exist
  1350. if arrpos('$contact', 'A1') = -1: gs 'telefon', 'AddContact', 'A1', 'images/characters/pavlovsk/school/head/1.jpg', "", "1 = 0", "", "", 0
  1351. SMS Arrays storing received messages and messages that can be sent
  1352. Received Messages
  1353. telefon['UnreadSMS'] = number of unread SMS messages
  1354. $SMSContact[] = NPC code for contact. ('A129', 'A29', 'B13', 'C14') that sent the sms
  1355. $SMSMessage[] = text for the sms message
  1356. $SMSTime[] = date time the message was received
  1357. $SMSPicture1[] = url for first picture sent as part of the message
  1358. $SMSPicture2[] = url for second picture sent as part of the message
  1359. $SMSPicture3[] = url for third picture sent as part of the message
  1360. $SMSPicture4[] = url for fourth picture sent as part of the message
  1361. SMSMessageRead[] = 0 unread, 1 read
  1362. Send Messages
  1363. $SMSSendContact[] = NPC code for contact. ('A129', 'A29', 'B13', 'C14') that sent the sms
  1364. $SMSSendMessage[] = text for the sms message
  1365. $SMSSendCode[] = Code to execute for Incoming call
  1366. SMSSendRepeatable[] = 0 delete option after send, 1 don't delete option
  1367. $SMSSendDeleteId[] = id passed by the caller
  1368. }
  1369. if $ARGS[0] = 'Phone_sms':
  1370. $telefon['body'] = '
  1371. <font size=6>SMS</font><br>
  1372. <img src="<<FUNC(''$phone_theme'')>>icon_sms.png" height="80" width="80"><br>'
  1373. $telefon['body'] += '<b><a href="exec:gs ''telefon'', ''send_sms''">Send new SMS</a></b><br>'
  1374. $telefon['body'] += '<TABLE cellspacing="0" width="80%"><TR><TH>icon</TH><TH>Name</TH><TH align="right">Received</TH><TH></TH></TR>'
  1375. !!iterating all Messages
  1376. !!reset and recalculate unread messages count, in case they get out of sync
  1377. telefon['UnreadSMS'] = 0
  1378. i=0
  1379. :smsloop
  1380. if i < arrsize('$SMSContact'):
  1381. !! if the person sending is in the contact list display the names and icon
  1382. telefon['contactid'] = arrpos('$contact',$SMSContact[i])
  1383. if telefon['contactid'] = -1:
  1384. $telefonCon['NPCName'] = ''
  1385. $telefonCon['Icon'] = 'icon_na.png'
  1386. else
  1387. $telefonCon['NPCName'] = $npc_nickname[$contact[telefon['contactid']]]
  1388. $telefonCon['Icon'] = $contactIcon[telefon['contactid']]
  1389. end
  1390. if SMSMessageRead[i] = 0: telefon['UnreadSMS'] += 1
  1391. $telefon['body'] += dyneval($telefon['SMS'],i,$telefonCon['Icon'],$telefonCon['NPCName'],$SMSTime[i],SMSMessageRead[i])
  1392. i += 1
  1393. jump 'smsloop'
  1394. end
  1395. $telefon['body'] += '</TABLE><br>'
  1396. dynamic $telefon['print']
  1397. killvar 'i'
  1398. end &! --- Phone_sms ---
  1399. !{
  1400. New SMS Message
  1401. If NPC is not in the contacts list of the phone it will be displayed as unknown until the contact has been added
  1402. $ARGS[1] = NPC code for contact. ('A129', 'A29', 'B13', 'C14')
  1403. $ARGS[2] = Message text to be displayed
  1404. $ARGS[3] = path to a picture to be displayed (optional)
  1405. $ARGS[4] = path to a picture to be displayed (optional)
  1406. $ARGS[5] = path to a picture to be displayed (optional)
  1407. $ARGS[6] = path to a picture to be displayed (optional)
  1408. }
  1409. if $ARGS[0] = 'add_sms':
  1410. $SMSContact[telefon['SMSCount']] = $ARGS[1]
  1411. $SMSMessage[telefon['SMSCount']] = $ARGS[2]
  1412. $SMSTime[telefon['SMSCount']] = '<<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>> <<$week[week]>> <<day>> <<$month>> <<year>>'
  1413. $SMSPicture1[telefon['SMSCount']] = $ARGS[3]
  1414. $SMSPicture2[telefon['SMSCount']] = $ARGS[4]
  1415. $SMSPicture3[telefon['SMSCount']] = $ARGS[5]
  1416. $SMSPicture4[telefon['SMSCount']] = $ARGS[6]
  1417. SMSMessageRead[telefon['SMSCount']] = 0
  1418. telefon['SMSCount'] += 1
  1419. telefon['UnreadSMS'] += 1
  1420. end
  1421. if $ARGS[0] = 'delete_sms':
  1422. telefon['SMSid'] = ARGS[1]
  1423. killvar '$SMSContact', telefon['SMSid']
  1424. killvar '$SMSMessage', telefon['SMSid']
  1425. killvar '$SMSTime', telefon['SMSid']
  1426. killvar '$SMSPicture1', telefon['SMSid']
  1427. killvar '$SMSPicture2', telefon['SMSid']
  1428. killvar '$SMSPicture3', telefon['SMSid']
  1429. killvar '$SMSPicture4', telefon['SMSid']
  1430. killvar 'SMSMessageRead', telefon['SMSid']
  1431. telefon['SMSCount'] -= 1
  1432. gs 'telefon', 'Phone_sms'
  1433. end
  1434. if $ARGS[0] = 'show_sms':
  1435. telefon['SMSid'] = ARGS[1]
  1436. !!set to read and update the number of unread messages
  1437. if SMSMessageRead[telefon['SMSid']] = 0:
  1438. telefon['UnreadSMS'] -= 1
  1439. SMSMessageRead[telefon['SMSid']] = 1
  1440. end
  1441. !! Get image and name if in phone contacts otherwise show unknown
  1442. telefon['contactid'] = arrpos('$contact',$SMSContact[telefon['SMSid']])
  1443. if telefon['contactid'] = -1:
  1444. $telefonCon['NPCName'] = ''
  1445. $telefonCon['Icon'] = 'icon_na.png'
  1446. else
  1447. $telefonCon['NPCName'] = $npc_nickname[$contact[telefon['contactid']]]
  1448. $telefonCon['Icon'] = $contactIcon[telefon['contactid']]
  1449. end
  1450. !!If file extension is not given, .png is assumed
  1451. if instr($telefonCon['Icon'],'.') = 0:
  1452. $telefonCon['Icon'] += '.png'
  1453. end
  1454. !!If path is not given, default phone icon path is assumed
  1455. if instr($telefonCon['Icon'],'/') = 0:
  1456. $telefonCon['Icon'] = 'images/system/phone/icons/' + $telefonCon['Icon']
  1457. end
  1458. $telefon['body'] = '
  1459. <font size=6>SMS</font><br>
  1460. <img src="<<FUNC(''$phone_theme'')>>icon_sms.png" height="80" width="80"><br>'
  1461. $telefon['body'] += '<TABLE cellspacing="0" width="80%">'
  1462. $telefon['body'] += '<TR><TD><img src="<<$telefonCon[''Icon'']>>"></TD><TD><<$telefonCon[''NPCName'']>></TD></TR>'
  1463. $telefon['body'] += '<TR><TD colspan="2"><<$SMSMessage[telefon[''SMSid'']]>></TD></TR>'
  1464. if $SMSPicture1[telefon['SMSid']] <> '':
  1465. $telefon['body'] += '<TR><TD colspan="2"><img src="<<$SMSPicture1[telefon[''SMSid'']]>>"></TD></TR>'
  1466. end
  1467. if $SMSPicture2[telefon['SMSid']] <> '':
  1468. $telefon['body'] += '<TR><TD colspan="2"><img src="<<$SMSPicture2[telefon[''SMSid'']]>>"></TD></TR>'
  1469. end
  1470. if $SMSPicture3[telefon['SMSid']] <> '':
  1471. $telefon['body'] += '<TR><TD colspan="2"><img src="<<$SMSPicture3[telefon[''SMSid'']]>>"></TD></TR>'
  1472. end
  1473. if $SMSPicture4[telefon['SMSid']] <> '':
  1474. $telefon['body'] += '<TR><TD colspan="2"><img src="<<$SMSPicture4[telefon[''SMSid'']]>>"></TD></TR>'
  1475. end
  1476. $telefon['body'] += '</TABLE><br>'
  1477. $telefon['backButton'] = 'gs ''telefon'', ''Phone_sms'''
  1478. dynamic $telefon['print']
  1479. end
  1480. !! This is the formatting function for a row in the SMS message table. SHould be run as a DYNEVAL()
  1481. !{
  1482. SMS Row in messages table
  1483. ARGS[0] = message id
  1484. $ARGS[1] = NPC icon
  1485. $ARGS[2] = NPC Nickname
  1486. $ARGS[3] = Time received
  1487. $ARGS[4] = 0 unread, 1 read
  1488. }
  1489. $telefon['SMS'] = {
  1490. telefon['SMSid'] = ARGS[0]
  1491. $telefon['ContactIcon'] = $ARGS[1]
  1492. $telefon['ContactNickName'] = $ARGS[2]
  1493. $telefon['SMSTime'] = $ARGS[3]
  1494. telefon['SMSStatus'] = ARGS[4]
  1495. !!If file extension is not given, .png is assumed
  1496. if instr($telefon['ContactIcon'],'.') = 0:
  1497. $telefon['ContactIcon'] += '.png'
  1498. end
  1499. !!If path is not given, default phone icon path is assumed
  1500. if instr($telefon['ContactIcon'],'/') = 0:
  1501. $telefon['ContactIcon'] = 'images/system/phone/icons/' + $telefon['ContactIcon']
  1502. end
  1503. !! unread will be bold
  1504. if telefon['SMSStatus'] = 0:
  1505. $telefon['SMSstyle1'] = '<b>'
  1506. $telefon['SMSstyle2'] = '</b>'
  1507. else
  1508. $telefon['SMSstyle1'] = ''
  1509. $telefon['SMSstyle2'] = ''
  1510. end
  1511. $result = '<TR>
  1512. <TD><img src="<<$telefon[''ContactIcon'']>>"></TD>
  1513. <TD><<$telefon[''SMSstyle1'']>><<$telefon[''ContactNickName'']>><<$telefon[''SMSstyle2'']>></TD>
  1514. <TD align="right"><<$telefon[''SMSstyle1'']>><a href="exec:gs ''telefon'', ''show_sms'', <<telefon[''SMSid'']>>"><<$telefon[''SMSTime'']>></a><<$telefon[''SMSstyle2'']>></TD>
  1515. <TD><<$telefon[''SMSstyle1'']>><a href="exec:gs ''telefon'', ''delete_sms'', <<telefon[''SMSid'']>>">Delete</a><<$telefon[''SMSstyle2'']>></TD>
  1516. </TR>'
  1517. }
  1518. !! List of Contacts that you can send sms messages to
  1519. if $ARGS[0] = 'send_sms':
  1520. $telefon['backButton'] = 'gs ''telefon'', ''Phone_sms'''
  1521. $telefon['body'] = '
  1522. <font size=6>Send SMS</font><br>
  1523. <img src="<<FUNC(''$phone_theme'')>>icon_sms.png" height="80" width="80"><br>'
  1524. $telefon['body'] += '<TABLE cellspacing="0" width="80%">'
  1525. !!iterating all Contacts
  1526. i=0
  1527. :smscontactloop
  1528. if i < arrsize('$contact'):
  1529. if contactAnon[i] = 0:
  1530. $telefon['body'] += dyneval($telefon['contactsms'],i)
  1531. end
  1532. i += 1
  1533. jump 'smscontactloop'
  1534. end
  1535. $telefon['body'] += '</TABLE><br>'
  1536. dynamic $telefon['print']
  1537. killvar 'i'
  1538. end
  1539. !! This is the formatting function for a row in the Contact List. SHould be run as a DYNEVAL()
  1540. !! $ARGS[0] = index of contact in the conntact arrays
  1541. $telefon['contactsms'] = {
  1542. !! Contact Row in phone contact list
  1543. $telefon['ContactIcon'] = $contactIcon[ARGS[0]]
  1544. $telefon['ContactNPCcode'] = $contact[ARGS[0]]
  1545. !!If file extension is not given, .png is assumed
  1546. if instr($telefon['ContactIcon'],'.') = 0:
  1547. $telefon['ContactIcon'] += '.png'
  1548. end
  1549. !!If path is not given, default phone icon path is assumed
  1550. if instr($telefon['ContactIcon'],'/') = 0:
  1551. $telefon['ContactIcon'] = 'images/system/phone/icons/' + $telefon['ContactIcon']
  1552. end
  1553. $result = '
  1554. <TR>
  1555. <TD><img src="<<$telefon[''ContactIcon'']>>" width="75"></TD>
  1556. <TD><<$npc_nickname[$telefon[''ContactNPCcode'']]>></TD>
  1557. <TD><a href="exec:gs ''telefon'', ''npcSendListSms'', ''<<$telefon[''ContactNPCcode'']>>''">New Message</a></TD>
  1558. </TR>'
  1559. }
  1560. !! List of SMS messages available to be sent to an NPC
  1561. !! $ARGS[1] = NPC code for the contact we want to display messages for
  1562. if $ARGS[0] = 'npcSendListSms':
  1563. $telefon['backButton'] = 'gs ''telefon'', ''send_sms'''
  1564. $telefon['body'] = '
  1565. <font size=6>Send SMS</font><br>
  1566. <img src="<<FUNC(''$phone_theme'')>>icon_sms.png" height="80" width="80"><br>'
  1567. $telefon['body'] += '<TABLE cellspacing="0" width="80%">'
  1568. !!iterating all send sms messages
  1569. i=0
  1570. :npcSendListSmsLoop
  1571. if i < arrsize('$SMSSendContact'):
  1572. if $SMSSendContact[i] = $ARGS[1]:
  1573. $telefon['body'] += dyneval($telefon['smsMessageToSend'],i)
  1574. end
  1575. i += 1
  1576. jump 'npcSendListSmsLoop'
  1577. end
  1578. $telefon['body'] += '</TABLE><br>'
  1579. dynamic $telefon['print']
  1580. killvar 'i'
  1581. end
  1582. !! This is the formatting function for a row in the messages to send List. SHould be run as a DYNEVAL()
  1583. !! ARGS[0] = index of the message
  1584. $telefon['smsMessageToSend'] = {
  1585. $telefon['ContactNPCcode'] = $SMSSendContact[ARGS[0]]
  1586. $result = '
  1587. <TR>
  1588. <TD><<$npc_nickname[$telefon[''ContactNPCcode'']]>></TD>
  1589. <TD><a href="exec: gs ''telefon'', ''smsSendMessage'', ''<<ARGS[0]>>''"><<$SMSSendMessage[ARGS[0]]>></a></TD>
  1590. </TR>'
  1591. }
  1592. if $ARGS[0] = 'smsSendMessage':
  1593. dynamic '<<$SMSSendCode[ARGS[1]]>>'
  1594. if SMSSendRepeatable[ARGS[1]] = 0:
  1595. gs 'telefon', 'delete_sms_send_index', ARGS[1]
  1596. end
  1597. gs 'telefon', 'Phone_sms'
  1598. end
  1599. !{
  1600. Add a new message that can be sent by the player
  1601. $ARGS[1] NPC code for contact. ('A129', 'A29', 'B13', 'C14') that sent the sms
  1602. $ARGS[2] text for the sms message
  1603. $ARGS[3] Code to execute when the sms is sent
  1604. ARGS[4] 0 delete option after send, 1 dont delete option
  1605. $ARGS[5] id passed by the caller to identify the option to be deleted if it needs to be removed from the options
  1606. }
  1607. if $ARGS[0] = 'add_sms_to_send':
  1608. i = arrsize('$SMSSendContact')
  1609. $SMSSendContact[i] = $ARGS[1]
  1610. $SMSSendMessage[i] = $ARGS[2]
  1611. $SMSSendCode[i] = $ARGS[3]
  1612. SMSSendRepeatable[i] = ARGS[4]
  1613. $SMSSendDeleteId[i] = $ARGS[5]
  1614. end
  1615. if $ARGS[0] = 'delete_sms_send_index':
  1616. killvar '$SMSSendContact', ARGS[1]
  1617. killvar '$SMSSendMessage', ARGS[1]
  1618. killvar '$SMSSendCode', ARGS[1]
  1619. killvar 'SMSSendRepeatable', ARGS[1]
  1620. killvar '$SMSSendDeleteId', ARGS[1]
  1621. end
  1622. !{
  1623. $ARGS[1] = NPC code for contact. ('A129', 'A29', 'B13', 'C14')
  1624. $ARGS[2] = Delete id of the message ($SMSSendDeleteId)
  1625. }
  1626. if $ARGS[0] = 'delete_sms_send_id':
  1627. $telefon['SMStoDeleteFound'] = 'No'
  1628. i = 0
  1629. :findSmsToDeleteLoop
  1630. if (i < arrsize('$SMSSendContact')) and $telefon['SMStoDeleteFound'] = 'No':
  1631. if $SMSSendContact[i] = $ARGS[1] and $SMSSendDeleteId[i] = $ARGS[2]:
  1632. gs 'telefon', 'delete_sms_send_index', i
  1633. $telefon['SMStoDeleteFound'] = 'Yes'
  1634. end
  1635. i += 1
  1636. jump 'findSmsToDeleteLoop'
  1637. end
  1638. end
  1639. !!-----------------------------------end of sms------------------------------------------
  1640. if $ARGS[0] = 'Phone_wheather':
  1641. $telefon['body'] = '
  1642. <font size=6>Weather</font><br>
  1643. <img src="<<FUNC(''$phone_theme'')>>icon_weather.png" height="80" width="80"><br><br>
  1644. <b>Temperature:</b><br>
  1645. <<$temperature>>. <<$osadki>><br>
  1646. P.O.P. today is <<weatherFall>>%<br>'
  1647. dynamic $telefon['print']
  1648. end &! --- Phone_wheather ---
  1649. if $ARGS[0] = 'Phone_calendar':
  1650. $telefon['body'] = '
  1651. <font size=6>Calendar</font><br>
  1652. <img src="<<FUNC(''$phone_theme'')>>icon_calendar.png" height="80" width="80"><br><br>
  1653. <B>Today:</B><br>
  1654. <<$week[week]>>, <<day>> <<$month>> <<year>><br>'
  1655. dynamic $telefon['print']
  1656. end &! --- Phone_calendar ---
  1657. if $ARGS[0] = 'Phone_media':
  1658. $telefon['body'] = '
  1659. <font size=6>Media</font><br>
  1660. <img src="<<FUNC(''$phone_theme'')>>icon_music.png" height="80" width="80"><br>
  1661. <b>This option is not active</b><br>'
  1662. dynamic $telefon['print']
  1663. end &! --- Phone_media ---
  1664. if $ARGS[0] = 'Phone_menu':
  1665. if phone_off = 0:
  1666. $telefon['body'] = '
  1667. <a href="exec:gs ''telefon'', ''Phone_camera'' "><img src="<<FUNC(''$phone_theme'')>>icon_camera.png" height="80" width="80"></a>
  1668. <a href="exec:gs ''telefon'', ''Phone_calendar'' "><img src="<<FUNC(''$phone_theme'')>>icon_calendar.png" height="80" width="80"></a>
  1669. <a href="exec:gs ''telefon'', ''Phone_pictures'' "><img src="<<FUNC(''$phone_theme'')>>icon_pictures.png" height="80" width="80"></a>
  1670. <br>
  1671. <a href="exec:gs ''telefon'', ''Phone_media'' "><img src="<<FUNC(''$phone_theme'')>>icon_music.png" height="80" width="80"></a>
  1672. <a href="exec:gs ''telefon'', ''Phone_notebook'' "><img src="<<FUNC(''$phone_theme'')>>icon_notebook.png" height="80" width="80"></a>
  1673. <a href="exec:gs ''telefon'', ''Phone_wheather'' "><img src="<<FUNC(''$phone_theme'')>>icon_weather.png" height="80" width="80"></a>
  1674. <br>
  1675. <a href="exec:gs ''telefon'', ''ContactList'' "><img src="<<FUNC(''$phone_theme'')>>icon_call.png" height="80" width="80"></a>
  1676. <a href="exec:gs ''telefon'', ''Phone_sms'' "><img src="<<FUNC(''$phone_theme'')>>icon_sms.png" height="80" width="80"></a>
  1677. <a href="exec:gs ''telefon'', ''Phone_megafon'' "><img src="<<FUNC(''$phone_theme'')>>icon_megafon.png" height="80" width="80"></a>
  1678. <br>'
  1679. if menu_off = 1:
  1680. $telefon['body'] += '<a href="exec:gs ''obj_din'', ''menu_disabled''"><img src="<<FUNC(''$phone_theme'')>>icon_settings.png" height="80" width="80"></a><br>'
  1681. else
  1682. $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>'
  1683. end
  1684. dynamic $telefon['print']
  1685. else
  1686. '<font color="red"><b>Your phone is disabled for this event</b></font>'
  1687. end
  1688. end &! --- Phone_menu ---
  1689. if $ARGS[0] = 'Add_contact':
  1690. $dummy = INPUT('Enter a note:')
  1691. $contact[arrsize('$contact')] = dyneval($telefon['contact'],$ARGS[1],$dummy,$ARGS[2])
  1692. killvar '$dummy'
  1693. end &! --- Add_contact ---
  1694. if $ARGS[0] = 'telotkaz':
  1695. cla
  1696. minut += 10
  1697. '<<$ARGS[1]>>, "Sorry, I''m busy right now, maybe next time."'
  1698. act 'Hangup':gt 'telefon', 'fin'
  1699. end &! --- telotkaz ---
  1700. if $ARGS[0] = 'fin':
  1701. killvar 'lover_number'
  1702. cla
  1703. gt $loc, $loc_arg
  1704. end
  1705. if $ARGS[0] = 'setup':
  1706. !! array $$phonetheme_name is built.
  1707. !! might need a tweak to have it rebuilt when new themes are available.
  1708. $phonetheme_name[0] = 'Custom_Standard'
  1709. $phonetheme_name[1] = 'Bimbo'
  1710. $phonetheme_name[2] = 'Custom_Aluminus'
  1711. $phonetheme_name[3] = 'Custom_Bottlecapped'
  1712. $phonetheme_name[4] = 'Custom_Galactic'
  1713. $phonetheme_name[5] = 'Custom_Vectored'
  1714. $phonetheme_name[6] = 'Custom_Veneer'
  1715. $phonetheme_name[7] = 'Custom_Voidwalker'
  1716. $phonetheme_name[8] = 'Custom_Voidwalker Red'
  1717. $phonetheme_name[9] = 'Custom_Voidwalker Toxic'
  1718. $phonetheme_name[10] = 'Gopnik'
  1719. $phonetheme_name[11] = 'Sports'
  1720. $phonetheme_name[12] = 'Succubus'
  1721. $phonetheme_name[13] = 'Woodshop'
  1722. phonetheme[0] = 1
  1723. end
  1724. --- telefon ---------------------------------