phone.tw 106 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584
  1. :: phone_widgets[widget]
  2. <<widget 'phoneConversation'>>
  3. <<set $conversationNpcID = _args[0]>>
  4. <<set _conversationPassage = _args[1]>>
  5. <div class="call conversation">
  6. <<image $npcs.get(_callingNpcID,'image')>>
  7. <h2><<=$npcs.get(_callingNpcID,'fullname')>></h2>
  8. <div id="phoneConversationBody">
  9. <<include _conversationPassage>>
  10. </div>
  11. </div>
  12. <</widget>>
  13. <<widget 'phoneConversationEnd'>>
  14. <<set _label = _args[0]>>
  15. <<link _label>>
  16. <<phoneOverlayRemove>>
  17. <</link>>
  18. <</widget>>
  19. <<widget "phoneCoversationOption" container>>
  20. <<set _label = _args[0]>>
  21. <<capture _contents>>
  22. <<link _label>>
  23. <<replace "#phoneConversationBody">>
  24. _contents
  25. <</replace>>
  26. <</link>>
  27. <</capture>>
  28. <</widget>>
  29. <<widget 'phoneMain'>>
  30. <<if !$phoneTheme>><<set $phoneTheme = 'Custom_Standard'>><</if>>
  31. <<set _iconFolder = 'system/phone/theme/'+$phoneTheme+'/'>>
  32. <<phoneOverlayAdd>>
  33. <<phoneMainMenu>>
  34. <</phoneOverlayAdd>>
  35. <</widget>>
  36. <<widget 'phoneMainMenu'>>
  37. <div id="mainMenu">
  38. <<linkedImage `_iconFolder+'icon_sms.png'`>>
  39. <<replace '#phonecontents'>>
  40. <<phoneSMSMenu>>
  41. <</replace>>
  42. <</linkedImage>>
  43. <<linkedImage `_iconFolder+'icon_calendar.png'`>>
  44. <</linkedImage>>
  45. <<linkedImage `_iconFolder+'icon_call.png'`>>
  46. <</linkedImage>>
  47. <<linkedImage `_iconFolder+'icon_camera.png'`>>
  48. <</linkedImage>>
  49. <<linkedImage `_iconFolder+'icon_megafon.png'`>>
  50. <</linkedImage>>
  51. <<linkedImage `_iconFolder+'icon_music.png'`>>
  52. <</linkedImage>>
  53. <<linkedImage `_iconFolder+'icon_notebook.png'`>>
  54. <</linkedImage>>
  55. <<linkedImage `_iconFolder+'icon_pictures.png'`>>
  56. <</linkedImage>>
  57. <<linkedImage `_iconFolder+'icon_settings.png'`>>
  58. <</linkedImage>>
  59. <<linkedImage `_iconFolder+'icon_weather.png'`>>
  60. <</linkedImage>>
  61. </div>
  62. <</widget>>
  63. <<widget 'phoneRing'>>
  64. <<set _callingNpcID = _args[0]>>
  65. <<set _callingTopic = _args[1]>>
  66. <<phoneOverlayAdd>>
  67. <div class="call incomming">
  68. <<image $npcs.get(_callingNpcID,'image')>>
  69. <h2><<=$npcs.get(_callingNpcID,'fullname')>></h2>
  70. <div class="answerButton">
  71. <<link "Answer">>
  72. <<replace "#phonecontents">>
  73. <<phoneConversation _callingNpcID _callingTopic>>
  74. <</replace>>
  75. <</link>>
  76. </div>
  77. </div>
  78. <</phoneOverlayAdd>>
  79. <</widget>>
  80. <<widget "phoneOverlayAdd" container>>
  81. <<done>>
  82. <<append "#passages">>
  83. <div id="phoneContainer">
  84. <div id="phone">
  85. <div id="head"><<time_current>><span id="signalStrength">📶</span></div>
  86. <div id="phonecontents">_contents</div>
  87. </div>
  88. </div>
  89. <</append>>
  90. <<timed 1s>>
  91. <<append "#phoneContainer">>
  92. <<link "">>
  93. <<phoneOverlayRemove>>
  94. <</link>>
  95. <</append>>
  96. <</timed>>
  97. <</done>>
  98. <</widget>>
  99. <<widget 'phoneOverlayRemove'>>
  100. <<remove "#phoneContainer">>
  101. <</widget>>
  102. <<widget 'phoneReceivePendingCall'>>
  103. <<set _callNpcs = []>>
  104. <<for _npcID range $npcs.datingNPCs>>
  105. <<set _npcNextDateExpected = $npcs.get(_npcID,'date.nextDateExpected')>>
  106. <<if _npcNextDateExpected >= 0 and _npcNextDateExpected <= $time.daystart>>
  107. <<set _dayTheNPCWantsToCall = $time.daystart - _npcNextDateExpected>>
  108. <<set _weight = Math.pow(_dayTheNPCWantsToCall + 1 , 2)>>
  109. <<run _callNpcs.push({
  110. npcId: _npcID,
  111. weight: _weight,
  112. topic: 'boyfriendPhoneIncomming'
  113. })>>
  114. <</if>>
  115. <</for>>
  116. <<if _callNpcs.length > 0>>
  117. <<set _callData = _callNpcs.getRandomWeighted()>>
  118. <<run console.log('Phone',_callNpcs,_callData)>>
  119. <<phoneRing _callData.npcId _callData.topic>>
  120. <</if>>
  121. <</widget>>
  122. <<widget 'phoneSMSMenu'>>
  123. <<if !$sms or Object.keys($sms).length == 0>>
  124. <p>You don't have any messages.</p>
  125. <<else>>
  126. <div id="smsSenderOverview">
  127. <<for _npcId, _smsData range $sms>>
  128. <div class="sender">
  129. <<image $npcs.get(_npcId,'image')>>
  130. <div class="nickname"><<=$npcs.get(_npcId,'usedname')>></div>
  131. <<capture _npcId>>
  132. <<link "">>
  133. <<replace "#phonecontents">>
  134. <<smsShow _npcId>>
  135. <</replace>>
  136. <</link>>
  137. <</capture>>
  138. </div>
  139. <</for>>
  140. </div>
  141. <</if>>
  142. <</widget>>
  143. <<widget 'smsSend'>>
  144. <<set _sms_npcId = _args[0]>>
  145. <<set _sms_datetime = _args[1]>>
  146. <<set _sms_bodyPassage = _args[2]>>
  147. <<if !$sms>><<set $sms = {}>><</if>>
  148. <<if !$sms[_sms_npcId]>><<set $sms[_sms_npcId] = {messages:[],unread:0}>><</if>>
  149. <<set _message = {time:_sms_datetime,body:_sms_bodyPassage, seed: rand(0,999999)}>>
  150. <<run $sms[_sms_npcId].messages.push(_message)>>
  151. <<set $sms[_sms_npcId].unread += 1>>
  152. <<run console.log('SMS generated',_sms_npcId,_message)>>
  153. <</widget>>
  154. <<widget 'smsShow'>>
  155. <<set _sms_npc_id = _args[0]>>
  156. <!-- <<set _sms = $sms[_sms_npc_id].messages.toReversed()>> -->
  157. <<set _sms = $sms[_sms_npc_id].messages>>
  158. <<for _sm range _sms>>
  159. <div class="sms">
  160. <div class="messageBody">
  161. <<randomSeed _sm.seed>>
  162. <!-- Use seed to make sure that a message that contains random elements will always stay the same. -->
  163. <<include _sm.body>>
  164. <</randomSeed>>
  165. </div>
  166. <div class="time"><<time_print _sm.time>></div>
  167. </div>
  168. <</for>>
  169. <</widget>>
  170. :: telefon
  171. <<set $here = 'telefon'>>
  172. <<set $ARGS = $location_var[$here]>>
  173. <<info "Deactivated: telefon">>
  174. :: telefon_deactivated
  175. <!-- !2021/05/06-->
  176. <!-- !! Draw screens for mobile phone.-->
  177. <!-- !!-->
  178. <!-- !! The base storage for Contacts is controlled by the Array "$contact". This array is a list of NPC identifiers-->
  179. <!-- !! telling us which ones are in your contact list. There are several other ancillary arrays that support the functions-->
  180. <!-- !! of a contact. Each of these has matching indexes to the $contact array. These are mostly used internally, but a-->
  181. <!-- !! writer can make use of them if they need to.-->
  182. <!-- !!-->
  183. <!-- !! ContactList arrays:-->
  184. <!-- !! $contact[] = NPC code for contact. ('A129', 'A29', 'B13', 'C14')-->
  185. <!-- !! $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-->
  186. <!-- !! $contactOCode[] = Code to execute if call is placed to this contact-->
  187. <!-- !! $contactOSche[] = If statement code to determine schedule for outbound calls-->
  188. <!-- !! $contactICode[] = Code to execute for Incoming call-->
  189. <!-- !! $contactISche[] = if statement code for schedule of incoming calls-->
  190. <!-- !! contactAnon[] = 0 if contact number is known to Sveta, 1 for Anonymous-->
  191. <!-- !! contactToday[] = Calls from this contact today-->
  192. <!-- !! contactWeek[] = Calls from this contact this week-->
  193. <!-- !! contactLastCall[] = last time this Contact called-->
  194. <!-- !-->
  195. <!-- !! Add a contact with AddContact-->
  196. <!-- !! 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>-->
  197. <!-- !! Example, to Add Mother:-->
  198. <!-- !! gs 'telefon', 'AddContact', 'A29', 'icon_npc1', "gs 'telefon', 'Phone_call'", "hour >= 8 and hour <= 20", "gs 'telefon', 'lover'", "hour >= 8 and hour <= 20", 0-->
  199. <!-- !!-->
  200. <!-- !! Remove a contact with DeleteContact-->
  201. <!-- !! gs 'telefon', 'DeleteContact', <NPC Code>-->
  202. <!-- !! Example, to delete Mom:-->
  203. <!-- !! gs 'telefon', 'DeleteContact', 'A29'-->
  204. <!-- !!-->
  205. <!-- !! Header for Phone Screen. Keeps consistent and in one place-->
  206. <!-- !! Footer for phone screen. Body should be between these two-->
  207. <!-- !! ''''This is how we print the screen on to the Additional Dscription window-->
  208. <!-- !! This is the formatting function for a row in the Contact List. SHould be run as a DYNEVAL()-->
  209. <<if $location_var[$here][0] == 'AddContact'>>
  210. <!-- !! $ARGS[1] = NPC Array identifier-->
  211. <!-- !! $ARGS[2] = Icon-->
  212. <!-- !! $ARGS[3] = Code to execute for Call out-->
  213. <!-- !! $ARGS[4] = If statement code to determine schedule for outbound calls-->
  214. <!-- !! $ARGS[5] = Code to execute for Incoming call-->
  215. <!-- !! $ARGS[6] = if statement code for schedule of incoming calls-->
  216. <!-- !! ARGS[7] = Anonymous? 0 if not, 1 if yes-->
  217. <<setinit $telefonCon['NPC'] = $location_var[$here][1]>>
  218. <<setinit $telefonCon['Icon'] = $location_var[$here][2]>>
  219. <<setinit $telefonCon['OutCode'] = $location_var[$here][3]>>
  220. <<setinit $telefonCon['OutSched'] = $location_var[$here][4]>>
  221. <<setinit $telefonCon['InCode'] = $location_var[$here][5]>>
  222. <<setinit $telefonCon['InSched'] = $location_var[$here][6]>>
  223. <<setinit $telefonCon['Anonymous'] = $ARGS[7]>>
  224. <<setinit $telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])>>
  225. <<if getvar("$telefonCon['ContactListID']") == -1>>
  226. <<setinit $telefonCon['ContactListID'] = arrsize('$contact')>>
  227. <<setinit $contact[$telefonCon['ContactListID']] = $telefonCon['NPC']>>
  228. <</if>>
  229. <<setinit $contactIcon[$telefonCon['ContactListID']] = $telefonCon['Icon']>>
  230. <<setinit $contactOCode[$telefonCon['ContactListID']] = $telefonCon['OutCode']>>
  231. <<setinit $contactOSche[$telefonCon['ContactListID']] = $telefonCon['OutSched']>>
  232. <<setinit $contactICode[$telefonCon['ContactListID']] = $telefonCon['InCode']>>
  233. <<setinit $contactISche[$telefonCon['ContactListID']] = $telefonCon['InSched']>>
  234. <<setinit $contactAnon[$telefonCon['ContactListID']] = $telefonCon['Anonymous']>>
  235. <<set $telefonCon to null>>
  236. <<set $telefonCon to null>>
  237. <</if>>
  238. <<if $location_var[$here][0] == 'DeleteContact'>>
  239. <!-- !! $ARGS[1] = NPC Array identifier-->
  240. <<setinit $telefonCon['NPC'] = $location_var[$here][1]>>
  241. <<setinit $telefonCon['ContactListID'] = arrpos('$contact',$telefonCon['NPC'])>>
  242. <<if getvar("$telefonCon['ContactListID']") > -1>>
  243. <<set $contact[$telefonCon['ContactListID']] to null>>
  244. <<set $contactIcon[$telefonCon['ContactListID']] to null>>
  245. <<set $contactCode[$telefonCon['ContactListID']] to null>>
  246. <</if>>
  247. <<set $telefonCon to null>>
  248. <<set $telefonCon to null>>
  249. <</if>>
  250. <<if $location_var[$here][0] == 'ContactList'>>
  251. <<setinit $telefon['body'] = >>
  252. <font size=6>Contacts</font><br>
  253. <img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_call.png" height="80" width="80"><br><br>
  254. <!-- FAILED TO CONVERT
  255. <TABLE cellspacing="0" width="80%">'
  256. -----
  257. <<set ERROR: FAILED TO CONVERT LITERAL: """<TABLE cellspacing""" = ERROR: FAILED TO CONVERT LITERAL: """"0" width="80""" % ERROR: FAILED TO CONVERT LITERAL: """">'""">>
  258. -->
  259. <<warn "CONVERSION ERROR 6061d446a950b4869623028a78c479f5">>
  260. <!-- !!iterating all Contacts-->
  261. <<set $i = 0>>
  262. <<warn 'JUMP MARKER ENCOUNTERED: :contactloop2'>>
  263. <<if $i < arrsize('$contact')>>
  264. <<if getvar("$contactAnon["+$i+"]") == 0>>
  265. <<setinit $telefon['body'] += dyneval($telefon['contact'],$contactIcon[$i],$npcs.get($contact[$i,'nickname')],$contactOCode[$i],$contactOSche[$i])>>
  266. <</if>>
  267. <<set $i += 1>>
  268. <<warn 'JUMP COMMAND ENCOUNTERED: jump contactloop2'>>
  269. <</if>>
  270. <!-- !! Oddball Contacts-->
  271. <<if getvar("$telalla") > 0>>
  272. <!-- FAILED TO CONVERT
  273. $telefon['body'] += dyneval($telefon['contact'],'icon_ira1','Alla',"$telsob = 'Alla' & gt 'telefon', 'mobilaraz'","hour >= 8 and hour <= 20")
  274. -----
  275. <<setinit $telefon['body'] += dyneval($telefon['contact'],'icon_ira1','Alla',"$telsob = 'Alla'>> <<set gt 'telefon' , 'mobilaraz'" , ERROR: FAILED TO CONVERT LITERAL: """"hour >""" = 8 and hour <= 20")>>
  276. -->
  277. <<warn "CONVERSION ERROR ccf3b4e0d1f785904385534b4daa3100">>
  278. <</if>>
  279. <<if getvar("$telmasha") > 0>>
  280. <!-- FAILED TO CONVERT
  281. $telefon['body'] += dyneval($telefon['contact'],'icon_masha','Masha',"$telsob = 'Masha' & gt 'telefon', 'mobilaraz'","hour >= 8 and hour <= 20")
  282. -----
  283. <<setinit $telefon['body'] += dyneval($telefon['contact'],'icon_masha','Masha',"$telsob = 'Masha'>> <<set gt 'telefon' , 'mobilaraz'" , ERROR: FAILED TO CONVERT LITERAL: """"hour >""" = 8 and hour <= 20")>>
  284. -->
  285. <<warn "CONVERSION ERROR 46b55441aa048469706a8d74d2e89a03">>
  286. <</if>>
  287. <!-- !! iterating all lovers-->
  288. <<set $lover_number = 0>>
  289. <<warn 'JUMP MARKER ENCOUNTERED: :loverloop2'>>
  290. <<if getvar("$pcs_lovers["+$lover_number+"]") == 1 and getvar("$svidanie["+$lover_number+"]") == 0>>
  291. <!-- FAILED TO CONVERT
  292. $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")
  293. -----
  294. <<setinit $telefon['body'] += dyneval($telefon['contact'],'icon_bf'+lover_picture[$lover_number],$loverdesc[$lover_number],"lover_number = <<lover_number>>>> <<gt 'telefon' 'callingTheLover' ERROR: FAILED TO CONVERT LITERAL: """<<lover_number>>"""" "hour > 6 and hour < 20")>>
  295. -->
  296. <<warn "CONVERSION ERROR dbf7fe231ad912237b6aa866ea279eeb">>
  297. <</if>>
  298. <<set $lover_number += 1>>
  299. <<if $lover_number < arrsize('pcs_lovers')>>
  300. <<warn 'JUMP COMMAND ENCOUNTERED: jump loverloop2'>>
  301. <</if>>
  302. <<setinit $telefon['body'] += '</TABLE><br>'>>
  303. <<telefon['print']>>
  304. <<set $i to null>>
  305. <<set $lover_number to null>>
  306. <</if>>
  307. <!-- !! Reset Contact Call Stats Daily and Weekly-->
  308. <!-- !!-->
  309. <!-- !! ARGS[1] = New Week if 1, 0 if same week-->
  310. <<if $location_var[$here][0] == 'DailyStatRefresh'>>
  311. <<set $i = 0>>
  312. <<warn 'JUMP MARKER ENCOUNTERED: :DailyStatRefLoop'>>
  313. <<if $i < arrsize('$contact')>>
  314. <<setinit $contactToday[$i] = 0>>
  315. <<if $location_var[$here][1] == 1>>
  316. <<setinit $contactWeek[$i] = 0>>
  317. <</if>>
  318. <<set $i += 1>>
  319. <<warn 'JUMP COMMAND ENCOUNTERED: jump DailyStatRefLoop'>>
  320. <</if>>
  321. <<set $i to null>>
  322. <</if>>
  323. <!-- !! Determine if any Incoming calls should happen-->
  324. <!-- !!-->
  325. <!-- !! ARGS[1] = Previous totminut-->
  326. <!-- !! ARGS[2] = Current totminut-->
  327. <<if $location_var[$here][0] == 'IncomingCheck'>>
  328. <<setinit $telefIncCheck['PrevTotalMinutes'] = $ARGS[1]>>
  329. <<setinit $telefIncCheck['NewTotalMinutes'] = $ARGS[2]>>
  330. <<if $telefIncCheck['PrevTotalMinutes'] > $telefIncCheck['NewTotalMinutes'] or $telefon['LastIncCallCheck'] > $telefIncCheck['NewTotalMinutes'] or getvar("$telefon['LastIncCallCheck']") == 0>>
  331. <!-- !! Time Cheat has been used, so we should do some cleanup-->
  332. <<setinit $telefon['LastIncCallCheck'] = $telefIncCheck['NewTotalMinutes']>>
  333. <</if>>
  334. <!-- !! Limit the number of calls per day-->
  335. <!-- !! right now allow every 60 minutes-->
  336. <<if $telefIncCheck['NewTotalMinutes'] - getvar("$telefon['LastIncCallCheck']") > 60 and getvar("$menu_off") == 0 and getvar("$phone_off") == 0>>
  337. <<setinit $telefon['LastIncCallCheck'] = $telefIncCheck['NewTotalMinutes']>>
  338. <<gs 'telefon' 'IncomingCallChooser'>>
  339. <</if>>
  340. <<set $telefIncCheck to null>>
  341. <</if>>
  342. <<if $location_var[$here][0] == 'IncomingCallChooser'>>
  343. <!-- !! When an Incoming call happens, choose who it comes from-->
  344. <!-- !! Add Contacts-->
  345. <<set $i = 0>>
  346. <<warn 'JUMP MARKER ENCOUNTERED: :telefonIncLoop1'>>
  347. <<if $i < arrsize('$contact')>>
  348. <<if $contactICode[$i] != "">>
  349. <<if dyneval('$result = iif(<<$contactISche[$i]>>,1,0)') = 1>>
  350. <<set $j = arrsize('$telefIncCall')>>
  351. <<if getvar("$contactAnon["+$i+"]") == 1>>
  352. <<setinit $telefIncIcon[$j] = "images/system/phone/decline.png">>
  353. <<setinit $telefIncName[$j] = "Unknown Caller">>
  354. <<else>>
  355. <<setinit $telefIncIcon[$j] = $contactIcon[$i]>>
  356. <<setinit $telefIncName[$j] = $npcs.get($contact[$i,'nickname')]>>
  357. <</if>>
  358. <<setinit $telefIncCall[$j] = $contactICode[$i]>>
  359. <<setinit $telefIncNPC[$j] = $contact[$i]>>
  360. <</if>>
  361. <</if>>
  362. <<set $i += 1>>
  363. <<warn 'JUMP COMMAND ENCOUNTERED: jump telefonIncLoop1'>>
  364. <</if>>
  365. <!-- !! Add Lovers-->
  366. <<set $i = 0>>
  367. <<warn 'JUMP MARKER ENCOUNTERED: :telefonIncLoop2'>>
  368. <<if getvar("$i") < 3 and $time.hour > 5 and $time.hour < 20>>
  369. <<if getvar("$pcs_lovers["+$i+"]") == 1 and getvar("$svidanie["+$i+"]") == 0 and $loverday[$i] != $time.daystart and rand(1,100) > 95>>
  370. <<set $j = arrsize('$telefIncCall')>>
  371. <!-- FAILED TO CONVERT
  372. $telefIncCall[j] = "cls & gs 'telefon', 'lover', <<i>>"
  373. -----
  374. <<setinit $telefIncCall[$j] = "cls>> <<gs 'telefon' 'lover' ERROR: FAILED TO CONVERT LITERAL: """<<i>>"""">>
  375. -->
  376. <<warn "CONVERSION ERROR 2fd82560cc77d708040d80eab4c492b0">>
  377. <<setinit $telefIncIcon[$j] = 'images/characters/shared/headshots_generic/lover_picture[$i].jpg'>>
  378. <<setinit $telefIncName[$j] = $loverdesc[$i]>>
  379. <</if>>
  380. <<set $i += 1>>
  381. <<warn 'JUMP COMMAND ENCOUNTERED: jump telefonIncLoop2'>>
  382. <</if>>
  383. <<if arrsize('$telefIncCall') > 0>>
  384. <<set $j = rand(0,arrsize('$telefIncCall')-1)>>
  385. <<if $telefIncNPC[$j] != "">>
  386. <<set $i = arrpos('$contact',$telefIncNPC[$j])>>
  387. <<setinit $contactLastCall[$i] = $totminut>>
  388. <<setinit $contactToday[$i] += 1>>
  389. <<setinit $contactWeek[$i] += 1>>
  390. <</if>>
  391. <<gs 'telefon' 'IncomingCall' $telefIncIcon[$j] $telefIncName[$j] $telefIncCall[$j]>>
  392. <</if>>
  393. <<set $i to null>>
  394. <<set $j to null>>
  395. <<set $telefIncIcon to null>>
  396. <<set $telefIncName to null>>
  397. <<set $telefIncCall to null>>
  398. <<set $telefIncNPC to null>>
  399. <</if>>
  400. <<if $location_var[$here][0] == 'IncomingCall'>>
  401. <!-- !! $ARGS[1] = Icon for contact-->
  402. <!-- !! $ARGS[2] = Nickname of contact-->
  403. <!-- !! $ARGS[3] = Code to execute for this Call-->
  404. <<setinit $telefonIncC['Icon'] = $location_var[$here][1]>>
  405. <<setinit $telefonIncC['Name'] = $location_var[$here][2]>>
  406. <<setinit $telefonIncC['Code'] = $location_var[$here][3]>>
  407. <<setinit $telefon['body'] = >>
  408. <font size=6><<$telefonIncC["Name"]>> calling</font><br>
  409. <img src="<<$telefonIncC["Icon"]>>" width="200"><br>
  410. <br>
  411. <br>
  412. <br>
  413. <a href="exec:<<$telefonIncC["Code"]>>"><<image `'images/system/phone/call_accept.png'`>></a>
  414. <a href="exec:gt $loc, $loc_arg"><<image `'images/system/phone/decline.png'`>></a><br>
  415. <!-- FAILED TO CONVERT
  416. <b><font color="red">Your phone is ringing</font></b><br>'
  417. -----
  418. <<set ERROR: FAILED TO CONVERT LITERAL: """<b><font color""" = ERROR: FAILED TO CONVERT LITERAL: """"red">Your phone is ringing<""" / ERROR: FAILED TO CONVERT LITERAL: """font><""" / ERROR: FAILED TO CONVERT LITERAL: """b><br>'""">>
  419. -->
  420. <<warn "CONVERSION ERROR 6df1f9d9d669df4415284b2dc86e89df">>
  421. <<telefon['print']>>
  422. <<set $telefonIncC to null>>
  423. <</if>>
  424. <!-- !----------------------------------------------------------------------------------------->
  425. <!-- ! Generic Calls for dates-->
  426. <!-- !! NPC Date-->
  427. <!-- !! ARGS[1] = contactlist index-->
  428. <!-- !! $ARGS[2] = Date Location-->
  429. <<if $location_var[$here][0] == 'NPCDate'>>
  430. <<setinit $Call4Date["ContactIndex"] = $ARGS[1]>>
  431. <<setinit $Call4Date["Location"] = $location_var[$here][2]>>
  432. <<setinit $Call4Date["NPC"] = $contact[$Call4Date['ContactIndex']]>>
  433. <<setinit $Call4Date["CallerName"] = $npcs.get($Call4Date["NPC",'nickname')]>>
  434. <!-- !! These variables are setup for certain downstream functions-->
  435. <<set $caller = $Call4Date["CallerName"]>>
  436. <<set $callerid = $contactIcon[$Call4Date["ContactIndex"]]>>
  437. <<set $boydesc = $Call4Date["CallerName"]>>
  438. <<set $pc.mood += 10>>
  439. <<setinit $npcs.get($Call4Date["NPC",'rel')] += 3>>
  440. <<if $Call4Date["Location"] == 'city_park'>>
  441. <<if $npcs.get($Call4Date["NPC",'gender')] == 0>>
  442. <<gt 'dateM' 'datepark'>>
  443. <<else>>
  444. <<gt 'dateF' 'datepark'>>
  445. <</if>>
  446. <<elseif $Call4Date["Location"] == 'movie'>>
  447. <<if $npcs.get($Call4Date["NPC",'gender')] == 0>>
  448. <<gt 'dateM' 'datecinema'>>
  449. <<else>>
  450. <!-- !Not implemented yet-->
  451. <!-- !gt 'dateF','datecinema'-->
  452. <</if>>
  453. <<elseif $Call4Date["Location"] == 'bar'>>
  454. <<if $npcs.get($Call4Date["NPC",'gender')] == 0>>
  455. <<gt 'dateM' 'datebar'>>
  456. <<else>>
  457. <<gt 'dateF' 'datebar'>>
  458. <</if>>
  459. <<elseif $Call4Date["Location"] == 'cafe'>>
  460. <<if $npcs.get($Call4Date["NPC",'gender')] == 0>>
  461. <<gt 'dateM' 'datecafe'>>
  462. <<else>>
  463. <!-- !Not implemented yet-->
  464. <!-- !gt 'dateF','datecafe'-->
  465. <</if>>
  466. <</if>>
  467. <<set $Call4Date to null>>
  468. <<set $Call4Date to null>>
  469. <</if>>
  470. <!-- !! Sveta Calls the NPC-->
  471. <!-- !! ARGS[1] = contactlist index-->
  472. <<if $location_var[$here][0] == 'SvetaCallsNPC'>>
  473. <<setinit $Call4Date["ContactIndex"] = $ARGS[1]>>
  474. <<setinit $Call4Date["NPC"] = $contact[$Call4Date['ContactIndex']]>>
  475. <<setinit $Call4Date["CallerName"] = $npcs.get($Call4Date["NPC",'nickname')]>>
  476. <<if $npcs.get($Call4Date["NPC",'gender')] == 0>>
  477. <<setinit $Call4Date["NPC-he"] = 'he'>>
  478. <<setinit $Call4Date["NPC-He"] = 'He'>>
  479. <<setinit $Call4Date["NPC-his"] = 'his'>>
  480. <<setinit $Call4Date["NPC-His"] = 'His'>>
  481. <<else>>
  482. <<setinit $Call4Date["NPC-he"] = 'her'>>
  483. <<setinit $Call4Date["NPC-He"] = 'Her'>>
  484. <<setinit $Call4Date["NPC-his"] = 'hers'>>
  485. <<setinit $Call4Date["NPC-His"] = 'Hers'>>
  486. <</if>>
  487. <!-- !! These variables are setup for certain downstream functions-->
  488. <<set $caller = $Call4Date["CallerName"]>>
  489. <<set $callerid = $contactIcon[$Call4Date["ContactIndex"]]>>
  490. <<gs 'telefon' 'phone_balance'>>
  491. <<gs 'telefon' 'phone_call_receive'>>
  492. <<setinit $Call4Date["willAgree"] = (rand(0, 10) > 3)>>
  493. "Yes, I'm listening," says a voice from the speaker.
  494. <<actCLA 'Ask to meet'>>
  495. "Let''s meet up."
  496. <<actCLA 'Continue'>>
  497. <<gt 'telefon' 'NPCCallsForDate' $Call4Date["ContactIndex"]>>
  498. <</actCLA>>
  499. <</actCLA>>
  500. <<if $time.month > 5 and getvar("$temper") > 20 and getvar("$sunWeather") == 1>>
  501. <<actCLA 'Invite to the park'>>
  502. "Let''s go for a walk in the park."
  503. <<if $Call4Date["willAgree"]>>
  504. <p>$Call4Date["CallerName"], "See you in the park in an hour."</p>
  505. <<actCLA 'Go'>>
  506. <<gt 'telefon' 'NPCDate' $Call4Date["ContactIndex"] 'city_park'>>
  507. <</actCLA>>
  508. <<else>>
  509. <<gs 'telefon' 'telotkaz' $Call4Date["CallerName"]>>
  510. <</if>>
  511. <</actCLA>>
  512. <</if>>
  513. <<actCLA 'Invite to a movie'>>
  514. <p>"Want to go see a movie?"</p>
  515. <<if $Call4Date["willAgree"]>>
  516. <p>$Call4Date["CallerName"], "See you at the movie theater in an hour."</p>
  517. <<actCLA 'Go'>>
  518. <<gt 'telefon' 'NPCDate' $Call4Date["ContactIndex"] 'movie'>>
  519. <</actCLA>>
  520. <<else>>
  521. <<gs 'telefon' 'telotkaz' $Call4Date["CallerName"]>>
  522. <</if>>
  523. <</actCLA>>
  524. <<if $home['town'] == 'city'>>
  525. <<actCLA 'Invite to the bar'>>
  526. "Let''s go to the bar."
  527. <<if $Call4Date["willAgree"]>>
  528. <p>$Call4Date["CallerName"], "See you at the bar in an hour."</p>
  529. <<actCLA 'Go'>>
  530. <<gt 'telefon' 'NPCDate' $Call4Date["ContactIndex"] 'bar'>>
  531. <</actCLA>>
  532. <<else>>
  533. <<gs 'telefon' 'telotkaz' $Call4Date["CallerName"]>>
  534. <</if>>
  535. <</actCLA>>
  536. <</if>>
  537. <<actCLA 'Invite to the cafe'>>
  538. "Let''s go to the cafe."
  539. <<if $Call4Date["willAgree"]>>
  540. <p>$Call4Date["CallerName"], "See you at the cafe in an hour."</p>
  541. <<actCLA 'Go'>>
  542. <<gt 'telefon' 'NPCDate' $Call4Date["ContactIndex"] 'cafe'>>
  543. <</actCLA>>
  544. <<else>>
  545. <<gs 'telefon' 'telotkaz' $Call4Date["CallerName"]>>
  546. <</if>>
  547. <</actCLA>>
  548. <!-- !!Willpower checks for resistance-->
  549. <<if $npcs.get($Call4Date["NPC",'rel')] <= 25>>
  550. <<setinit $Call4Date["loverResist"] = 'easy'>>
  551. <<elseif $npcs.get($Call4Date["NPC",'rel')] <= 50>>
  552. <<setinit $Call4Date["loverResist"] = 'medium'>>
  553. <<else>>
  554. <<setinit $Call4Date["loverResist"] = 'hard'>>
  555. <</if>>
  556. <<gs 'willpower' 'misc' 'self' $Call4Date["loverResist"]>>
  557. <<if $will_cost <= $pc.pcs_willpwr>>
  558. <<actCLA 'I think we should break up... (will_cost Willpower)'>>
  559. <<gs 'willpower' 'pay' 'self'>>
  560. <p>$Call4Date["NPC-He"] sounds hurt, but you insist it is for the best. You both say goodbye and part ways.</p>
  561. <<gs 'telefon' 'DeleteContact' $Call4Date["NPC"]>>
  562. <<actCLA 'Hang up'>>
  563. <<gt 'telefon' 'fin'>>
  564. <</actCLA>>
  565. <</actCLA>>
  566. <<else>>
  567. <<actCLA 'I think we should break up... (<font color="red">will_cost Willpower</font>)'>>
  568. <br><font color="red">You don't have enough willpower to use this action.</font>
  569. <</actCLA>>
  570. <</if>>
  571. <<actCLA 'Hangup'>>
  572. <<gt 'telefon' 'fin'>>
  573. <</actCLA>>
  574. <<set $Call4Date to null>>
  575. <<set $Call4Date to null>>
  576. <<set $DateNickName to null>>
  577. <</if>>
  578. <!-- !! NPC Calls Sveta for a Date-->
  579. <!-- !! ARGS[1] = $contact index number-->
  580. <<if $location_var[$here][0] == 'NPCCallsForDate'>>
  581. <<setinit $Call4Date["ContactIndex"] = $ARGS[1]>>
  582. <<setinit $Call4Date["NPC"] = $contact[$Call4Date['ContactIndex']]>>
  583. <<if $npcs.get($Call4Date["NPC",'gender')] == 0>>
  584. <<setinit $Call4Date["NPC-he"] = 'he'>>
  585. <<setinit $Call4Date["NPC-He"] = 'He'>>
  586. <<setinit $Call4Date["NPC-his"] = 'his'>>
  587. <<setinit $Call4Date["NPC-His"] = 'His'>>
  588. <<else>>
  589. <<setinit $Call4Date["NPC-he"] = 'her'>>
  590. <<setinit $Call4Date["NPC-He"] = 'Her'>>
  591. <<setinit $Call4Date["NPC-his"] = 'hers'>>
  592. <<setinit $Call4Date["NPC-His"] = 'Hers'>>
  593. <</if>>
  594. <!-- !!Pick a nickname that caller will use for Sveta-->
  595. <<setinit $DateNickName[0] = 'cutie'>>
  596. <<setinit $DateNickName[1] = 'honey'>>
  597. <<setinit $DateNickName[2] = 'sweetie'>>
  598. <<setinit $DateNickName[3] = 'baby'>>
  599. <<setinit $DateNickName[4] = 'hot stuff'>>
  600. <<setinit $DateNickName[5] = '$pc.name_nick'>>
  601. <<setinit $Call4Date['SvetaName'] = $DateNickName[rand(0, arrsize('$DateNickName'))]>>
  602. <<setinit $Call4Date['CallerName'] = $npcs.get($Call4Date["NPC",'nickname')]>>
  603. <!-- !! These variables are setup for certain downstream functions-->
  604. <<set $caller = $Call4Date["CallerName"]>>
  605. <<set $callerid = $contactIcon[$Call4Date["ContactIndex"]]>>
  606. <p>Hey $Call4Date["SvetaName"], it's me, $Call4Date["CallerName"]. How's it going?</p>
  607. <<actCLA 'Answer'>>
  608. <p>"Pretty good, you?"</p>
  609. <p>$Call4Date["CallerName"], "Great, but I kind of miss you, can we meet today?"</p>
  610. <<if $time.weekday > 1 and $time.weekday < 5 and getvar("$workKafe['job']") == 1>>
  611. <<actCLA 'Sorry, I`m working today'>>
  612. "Sorry, I'm working today."
  613. <p>$Call4Date["CallerName"], "Okay, I'll call tomorrow."</p>
  614. <<actCLA 'Hang up'>>
  615. <<gt 'telefon' 'fin'>>
  616. <</actCLA>>
  617. <</actCLA>>
  618. <</if>>
  619. <<actCLA 'Tonight'>>
  620. <<setinit $npcs.get($Call4Date["NPC",'rel')] += 1>>
  621. <<setinit $contMeetDay[$Call4Date["ContactIndex"]] = $time.daystart>>
  622. <p>"How about this evening?"</p>
  623. <p>$Call4Date["CallerName"], "Sounds great! When can I come to pick you up?"</p>
  624. <<actCLA 'Pick a time'>>
  625. <<setinit $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]")>>
  626. <<if $contMeetHour[$Call4Date["ContactIndex"]] <= $time.hour or $contMeetHour[$Call4Date["ContactIndex"]] > 23>>
  627. <<setinit $contMeetHour[$Call4Date["ContactIndex"]] = 20>>
  628. <</if>>
  629. <p>"How about contMeetHour[$Call4Date["ContactIndex"]]:00?."</p>
  630. <p>$Call4Date["CallerName"], "Okay $Call4Date["SvetaName"], see you at contMeetHour[$Call4Date["ContactIndex"]]:00."</p>
  631. <<actCLA 'Hang up'>>
  632. <<gt 'telefon' 'fin'>>
  633. <</actCLA>>
  634. <</actCLA>>
  635. <</actCLA>>
  636. <<actCLA 'Maybe tomorrow'>>
  637. <<setinit $npcs.get($Call4Date["NPC",'rel')] -= 1>>
  638. "I'm busy today. Call tomorrow."
  639. <<if $npcs.get($Call4Date["NPC",'rel')] <= 0>>
  640. <<gs 'telefon' 'DeleteContact' $Call4Date["NPC"]>>
  641. <</if>>
  642. <<if $npcs.get($Call4Date["NPC",'rel')] > 0>>
  643. <p>($Call4Date["CallerName"]) - Okay, I'll call tomorrow.</p>
  644. <</if>>
  645. <<actCLA 'Hang up'>>
  646. <<gt 'telefon' 'fin'>>
  647. <</actCLA>>
  648. <</actCLA>>
  649. <!-- !!Willpower checks for resistance-->
  650. <<if $npcs.get($Call4Date["NPC",'rel')] <= 25>>
  651. <<setinit $Call4Date["loverResist"] = 'easy'>>
  652. <<elseif $npcs.get($Call4Date["NPC",'rel')] <= 50>>
  653. <<setinit $Call4Date["loverResist"] = 'medium'>>
  654. <<else>>
  655. <<setinit $Call4Date["loverResist"] = 'hard'>>
  656. <</if>>
  657. <<gs 'willpower' 'misc' 'self' $Call4Date["loverResist"]>>
  658. <<if $will_cost <= $pc.pcs_willpwr>>
  659. <<actCLA 'I think we should break up... (will_cost Willpower)'>>
  660. <<gs 'willpower' 'pay' 'self'>>
  661. <p>$Call4Date["NPC-He"] sounds hurt, but you insist it is for the best. You both say goodbye and part ways.</p>
  662. <<gs 'telefon' 'DeleteContact' $Call4Date["NPC"]>>
  663. <<actCLA 'Hang up'>>
  664. <<gt 'telefon' 'fin'>>
  665. <</actCLA>>
  666. <</actCLA>>
  667. <<else>>
  668. <<actCLA 'I think we should break up... (<font color="red">will_cost Willpower</font>)'>>
  669. <br><font color="red">You don't have enough willpower to use this action.</font>
  670. <</actCLA>>
  671. <</if>>
  672. <</actCLA>>
  673. <<actCLA 'Hang up (end relationship)'>>
  674. <<gs 'telefon' 'DeleteContact' $Call4Date["NPC"]>>
  675. <<gt 'telefon' 'fin'>>
  676. <</actCLA>>
  677. <<set $Call4Date to null>>
  678. <<set $Call4Date to null>>
  679. <<set $DateNickName to null>>
  680. <</if>>
  681. <<if $location_var[$here][0] == 'start'>>
  682. <<gs 'telefon' 'phone_call_receive'>>
  683. <<if $npcs.get('A192','QW') == 1 and $time.weekday == 6 and $pc.pcs_apprnc > 80>>
  684. <<gt 'nastja' 'pos4'>>
  685. <<elseif $npcs.get('A192','QW') == 2 and $time.weekday != 6 and getvar("$zenit") != 0 and $nastjaday != $time.daystart>>
  686. <<gt 'nastja' 'pos13'>>
  687. <<elseif $time.hour >= 8 and $time.hour <= 20 and $npcs.get('A192','QW') == 2 and $time.weekday == 6 and $pc.pcs_apprnc > 80 and $nastjaday != $time.daystart>>
  688. <<gt 'nastja' 'pos12'>>
  689. <<elseif $npcs.get('A192','QW') == 5 and $time.weekday == 6 and $nastjaday != $time.daystart>>
  690. <<gt 'nastja' 'pos22'>>
  691. <<elseif $npcs.get('A192','QW') == 6 and $nastjaday != $time.daystart>>
  692. <<gt 'nastja' 'pos31'>>
  693. <<else>>
  694. <<set $callerid = 'images/system/phone/icons/icon_nastja.png'>>
  695. <<gs 'telefon' 'phone_call_reject'>>
  696. <</if>>
  697. <</if>>
  698. <<if $location_var[$here][0] == 'vladimir'>>
  699. <<gs 'telefon' 'phone_ring'>>
  700. <<if getvar("$vladimirQW") == 20>>
  701. <<gt 'qwloc' '2'>>
  702. <<elseif getvar("$vladimirQW") == 25 and $time.weekday == 6>>
  703. <<gt 'qwloc' '3'>>
  704. <<elseif getvar("$vladimirQW") == 35 and $time.weekday == 6>>
  705. <<gt 'qwloc' '4'>>
  706. <</if>>
  707. <</if>>
  708. <!-- !---------------------------------------------------------------------------------------------------->
  709. <!-- ! Old telephone system. Some of this should be removed.-->
  710. <<if $location_var[$here][0] == 'phone_ring'>>
  711. <<setinit $telefon['body'] = >>
  712. <font size=6><<$caller>> calling</font><br>
  713. <img src="<<$callerid>>"><br>
  714. <br>
  715. <br>
  716. <br>
  717. <!-- FAILED TO CONVERT
  718. <br>'
  719. -----
  720. ERROR: FAILED TO CONVERT LITERAL: """<br>'"""
  721. -->
  722. <<warn "CONVERSION ERROR 2f34f4dd8a4cc48f5c842ae3accadd22">>
  723. <<telefon['print']>>
  724. <</if>>
  725. <<if $location_var[$here][0] == 'phone_call_receive'>>
  726. <<setinit $telefon['body'] = >>
  727. <font size=6>Talking to <<$caller>></font><br>
  728. <!-- FAILED TO CONVERT
  729. <img src="<<$callerid>>"><br>'
  730. -----
  731. <<set ERROR: FAILED TO CONVERT LITERAL: """<img src""" = ERROR: FAILED TO CONVERT LITERAL: """"$callerid"><br>'""">>
  732. -->
  733. <<warn "CONVERSION ERROR 59bf1f27edbb9644cce526bde6a21ae3">>
  734. <<telefon['print']>>
  735. <</if>>
  736. <<if $location_var[$here][0] == 'phone_balance'>>
  737. <<if getvar("$subscription['monthly_calls']") == 0 and getvar("$subscription['metered_calls']") < 4>>
  738. <<if getvar("$subscription['monthly_calls']") == 0 and $subscription['monthly_calls-date'] > 0>>
  739. <<set $contractmessage = '<font size=6>Your mobile contract has expired, you have renew it or buy some minutes.</font><br>'>>
  740. <<elseif getvar("$subscription['metered_calls']") < 4 and $subscription['metered_calls-date'] > 0>>
  741. <<set $contractmessage = '<font size=6>Not enough minutes left on your contract to make a call</font><br>'>>
  742. <<else>>
  743. <<set $contractmessage = '<font size=6>You don't have a valid contract, you should buy one at MegFon.</font><br>'>>
  744. <</if>>
  745. <<setinit $telefon['body'] = >>
  746. <<$contractmessage>>
  747. <img src="<<$callerid>>"><br><br>
  748. <!-- FAILED TO CONVERT
  749. <a href="exec:gs ''telefon'', ''Phone_menu'' "><img src="images/system/phone/decline.png"></a><br>'
  750. -----
  751. <<set ERROR: FAILED TO CONVERT LITERAL: """<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:gs ''telefon''""" , ERROR: FAILED TO CONVERT LITERAL: """''Phone_menu'' "><<image `'images""" / $system / $phone / ERROR: FAILED TO CONVERT LITERAL: """decline.png'`>><""" / ERROR: FAILED TO CONVERT LITERAL: """a><br>'""">>
  752. -->
  753. <<warn "CONVERSION ERROR 2e3b2851f1e236fb53477bb3b00dbc04">>
  754. <<telefon['print']>>
  755. <<wait 3500>>
  756. <<gt $location>>
  757. <<set $contractmessage to null>>
  758. <<elseif getvar("$subscription['metered_calls']") > 4>>
  759. <<setinit $subscription['metered_calls'] -= 4>>
  760. <</if>>
  761. <</if>>
  762. <<if $location_var[$here][0] == 'Phone_call'>>
  763. <<setinit $telefon['body'] = >>
  764. <font size=6>Calling <<<<=$npcs.get(''A29'','nickname')>>>></font><br>
  765. <<image `'images/system/phone/icons/icon_npc1.png'`>><br><br>
  766. <!-- FAILED TO CONVERT
  767. <a href="exec:gs ''telefon'', ''Phone_contactlist'' "><img src="images/system/phone/decline.png"></a><br>'
  768. -----
  769. <<set ERROR: FAILED TO CONVERT LITERAL: """<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:gs ''telefon''""" , ERROR: FAILED TO CONVERT LITERAL: """''Phone_contactlist'' "><<image `'images""" / $system / $phone / ERROR: FAILED TO CONVERT LITERAL: """decline.png'`>><""" / ERROR: FAILED TO CONVERT LITERAL: """a><br>'""">>
  770. -->
  771. <<warn "CONVERSION ERROR f87fdbc8ca2ef0bac2fddbedb86d763f">>
  772. <<telefon['print']>>
  773. <<wait 1500>>
  774. <<set $time.minutes += 1>>
  775. <<set $callerid = 'images/system/phone/icons/icon_npc1.png'>>
  776. <<gs 'telefon' 'phone_balance'>>
  777. <<set $callerid = 'images/system/phone/icons/icon_npc1.png'>>
  778. <<gs 'telefon' 'phone_call_reject'>>
  779. <</if>>
  780. <<if $location_var[$here][0] == 'phone_call_reject'>>
  781. <<setinit $telefon['body'] = >>
  782. <font size=6>Calling...</font><br>
  783. <img src="<<$callerid>>"><br><br>
  784. <!-- FAILED TO CONVERT
  785. <a href="exec:gs ''telefon'', ''Phone_contactlist'' "><img src="images/system/phone/decline.png"></a><br>'
  786. -----
  787. <<set ERROR: FAILED TO CONVERT LITERAL: """<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:gs ''telefon''""" , ERROR: FAILED TO CONVERT LITERAL: """''Phone_contactlist'' "><<image `'images""" / $system / $phone / ERROR: FAILED TO CONVERT LITERAL: """decline.png'`>><""" / ERROR: FAILED TO CONVERT LITERAL: """a><br>'""">>
  788. -->
  789. <<warn "CONVERSION ERROR f87fdbc8ca2ef0bac2fddbedb86d763f">>
  790. <<telefon['print']>>
  791. <</if>>
  792. <<if $location_var[$here][0] == 'Phone_megafon'>>
  793. <<if getvar("$subscription['monthly_calls']") == 1>>
  794. <<set $contractmessage = 'You have a valid monthly contract that will renew on subscription['monthly_calls-date']/month+1'>>
  795. <<elseif getvar("$subscription['metered_calls']") == 1>>
  796. <<set $contractmessage = 'You have a valid minutes based contract that still has subscription['metered_calls'] minuets left'>>
  797. <<elseif getvar("$subscription['monthly_calls']") == 0 and $subscription['monthly_calls-date'] > 0>>
  798. <<set $contractmessage = '<font size=6>Your mobile contract has expired, you have renew it or buy some minutes.</font><br>'>>
  799. <<elseif getvar("$subscription['metered_calls']") < 4 and $subscription['metered_calls-date'] > 0>>
  800. <<set $contractmessage = '<font size=6>You have a minute based plan, but it doesn't have enough minutes left to make a call</font><br>'>>
  801. <<else>>
  802. <<set $contractmessage = '<font size=6>You don't have any valid contracts, you should buy one at MegaFon.</font><br>'>>
  803. <</if>>
  804. <<setinit $telefon['body'] = >>
  805. <font size=6>MegaFon</font><br>
  806. <img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_megafon.png" height="80" width="80"><br><br>
  807. <!-- FAILED TO CONVERT
  808. <b><<$contractmessage>></b>'
  809. -----
  810. ERROR: FAILED TO CONVERT LITERAL: """<b>$contractmessage<""" / ERROR: FAILED TO CONVERT LITERAL: """b>'"""
  811. -->
  812. <<warn "CONVERSION ERROR ca7619d440906ebebb16288877e15716">>
  813. <<telefon['print']>>
  814. <<set $contractmessage to null>>
  815. <</if>>
  816. <<if $location_var[$here][0] == 'Edit_Custom_list'>>
  817. <<set $dummyas = arrsize('$contact')>>
  818. <<warn 'JUMP MARKER ENCOUNTERED: :din_bad_as1'>>
  819. <<set $dummyas -= 1>>
  820. <<if getvar("$dummyas") >= 0>>
  821. <<set $dummyedit = $contact[$dummyas]>>
  822. <<set $dummyedit1 = dyneval('$result = ''</a><a href="exec:killvar ''''$contact'''',<<dummyas>>>> <<gs ''telefon'' ''''Edit_Custom_list'''' "><b>Remove</b>'' ')>>
  823. <<set $dummyedit2 = $replace($dummyedit,'<b>Call</b>',$dummyedit1)>>
  824. $dummyedit2
  825. <<warn 'JUMP COMMAND ENCOUNTERED: jump din_bad_as1'>>
  826. <</if>>
  827. <<set $dummyas to null>>
  828. <<set $dummyedit to null>>
  829. <<set $dummyedit1 to null>>
  830. <<set $dummyedit2 to null>>
  831. <!-- FAILED TO CONVERT
  832. pl'<center><a href="exec:gs ''telefon'', ''Phone_menu'' "><img src="images/system/icons/back.png"></a></center>'
  833. -----
  834. <<set ERROR: FAILED TO CONVERT LITERAL: """pl'<center><a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:gs ''telefon''""" , ERROR: FAILED TO CONVERT LITERAL: """''Phone_menu'' "><<image `'images""" / $system / $icons / ERROR: FAILED TO CONVERT LITERAL: """back.png'`>><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """center>'""">>
  835. -->
  836. <<warn "CONVERSION ERROR 2755962b3be37ed6004451fa14b040a1">>
  837. <!-- !dynamic $telefon['print']-->
  838. <</if>>
  839. <<if $location_var[$here][0] == 'mobilaraz'>>
  840. <<gs 'din_bad'>>
  841. <<set $caller = '$telsob'>>
  842. <<gs 'telefon' 'phone_balance'>>
  843. <<gs 'telefon' 'phone_call_receive'>>
  844. <<set $willAgree = (rand(0, 10) > 3)>>
  845. "Yes, I'm listening," says a voice from the speaker.
  846. <<if $time.month > 5 and getvar("$temper") > 20 and getvar("$sunWeather") == 1>>
  847. <<actCLA 'Invite to the park'>>
  848. "Let''s go for a walk in the park."
  849. <<if $willAgree>>
  850. <p>$telsob, "See you in the park in an hour."</p>
  851. <<actCLA 'Go'>>
  852. <<gt 'parksvid'>>
  853. <</actCLA>>
  854. <<else>>
  855. <<gs 'telefon' 'telotkaz' $telsob>>
  856. <</if>>
  857. <</actCLA>>
  858. <</if>>
  859. <<actCLA 'Invite to a movie'>>
  860. <p>"Want to go see a movie?"</p>
  861. <<if $willAgree>>
  862. <p>$telsob, "See you at the movie theater in an hour."</p>
  863. <<actCLA 'Go'>>
  864. <<gt 'kinosvid'>>
  865. <</actCLA>>
  866. <<else>>
  867. <<gs 'telefon' 'telotkaz' $telsob>>
  868. <</if>>
  869. <</actCLA>>
  870. <<actCLA 'Invite to the pool hall'>>
  871. "Let''s play pool."
  872. <<if $willAgree>>
  873. <p>$telsob, "See you at the pool hall in an hour."</p>
  874. <<actCLA 'Go'>>
  875. <<gt 'billsvid'>>
  876. <</actCLA>>
  877. <<else>>
  878. <<gs 'telefon' 'telotkaz' $telsob>>
  879. <</if>>
  880. <</actCLA>>
  881. <<actCLA 'Invite to the cafe'>>
  882. "Let''s go to the cafe."
  883. <<if $willAgree>>
  884. <p>$telsob, "See you at the cafe in an hour."</p>
  885. <<actCLA 'Go'>>
  886. <<gt 'kafesvid'>>
  887. <</actCLA>>
  888. <<else>>
  889. <<gs 'telefon' 'telotkaz' $telsob>>
  890. <</if>>
  891. <</actCLA>>
  892. <<actCLA 'Invite to the casino'>>
  893. "Let''s go to the casino."
  894. <<if $willAgree>>
  895. <p>$telsob, "See you in the casino in an hour."</p>
  896. <<actCLA 'Go'>>
  897. <<gt 'kazinosvid'>>
  898. <</actCLA>>
  899. <<else>>
  900. <<gs 'telefon' 'telotkaz' $telsob>>
  901. <</if>>
  902. <</actCLA>>
  903. <<actCLA 'Hangup'>>
  904. <<gt 'telefon' 'fin'>>
  905. <</actCLA>>
  906. <</if>>
  907. <!-- !----------------End Old Telephone------------------------------>
  908. <!-- !------------------------------------------------------------------------------->
  909. <!-- ! Support for Hardcoded Lovers (BF/GF)-->
  910. <<if $location_var[$here][0] == 'callingTheLover' and $loverGender[$location_var[$here][1]] == 1>>
  911. <<gs 'din_bad'>>
  912. <<set $lover_number = $ARGS[1]>>
  913. <<set $caller = '$loverdesc[$lover_number]'>>
  914. <<set $telsob = $caller>>
  915. <<set $callerid = 'images/characters/shared/headshots_generic/'+lover_picture[$lover_number]+'.jpg'>>
  916. <<gs 'telefon' 'phone_balance'>>
  917. <<gs 'telefon' 'phone_call_receive'>>
  918. <<set $willAgree = (rand(0, 10) > 3)>>
  919. "Yes, I'm listening," says a voice from the speaker.
  920. <<if $time.month > 5 and getvar("$temper") > 20 and getvar("$sunWeather") == 1>>
  921. <<actCLA 'Invite to the park'>>
  922. "Let''s go for a walk in the park."
  923. <<if $willAgree>>
  924. <p>$telsob, "See you in the park in an hour."</p>
  925. <<actCLA 'Go'>>
  926. <<gt 'parksvid'>>
  927. <</actCLA>>
  928. <<else>>
  929. <<gs 'telefon' 'telotkaz' $telsob>>
  930. <</if>>
  931. <</actCLA>>
  932. <</if>>
  933. <<actCLA 'Invite to a movie'>>
  934. <p>"Want to go see a movie?"</p>
  935. <<if $willAgree>>
  936. <p>$telsob, "See you at the movie theater in an hour."</p>
  937. <<actCLA 'Go'>>
  938. <<gt 'kinosvid'>>
  939. <</actCLA>>
  940. <<else>>
  941. <<gs 'telefon' 'telotkaz' $telsob>>
  942. <</if>>
  943. <</actCLA>>
  944. <<if $home['town'] == 'city'>>
  945. <<actCLA 'Invite to the pool hall'>>
  946. "Let''s play pool."
  947. <<if $willAgree>>
  948. <p>$telsob, "See you at the pool hall in an hour."</p>
  949. <<actCLA 'Go'>>
  950. <<gt 'billsvid'>>
  951. <</actCLA>>
  952. <<else>>
  953. <<gs 'telefon' 'telotkaz' $telsob>>
  954. <</if>>
  955. <</actCLA>>
  956. <</if>>
  957. <<actCLA 'Invite to the cafe'>>
  958. "Let''s go to the cafe."
  959. <<if $willAgree>>
  960. <p>$telsob, "See you at the cafe in an hour."</p>
  961. <<actCLA 'Go'>>
  962. <<gt 'kafesvid'>>
  963. <</actCLA>>
  964. <<else>>
  965. <<gs 'telefon' 'telotkaz' $telsob>>
  966. <</if>>
  967. <</actCLA>>
  968. <<actCLA 'Invite to the casino'>>
  969. "Let''s go to the casino."
  970. <<if $willAgree>>
  971. <p>$telsob, "See you in the casino in an hour."</p>
  972. <<actCLA 'Go'>>
  973. <<gt 'kazinosvid'>>
  974. <</actCLA>>
  975. <<else>>
  976. <<gs 'telefon' 'telotkaz' $telsob>>
  977. <</if>>
  978. <</actCLA>>
  979. <<actCLA 'I think we should break up...'>>
  980. She sounds hurt, but you insist it is for the best. You both say goodbye and part ways.
  981. <<gs 'lover' 'remove' $lover_number>>
  982. <<actCLA 'Hangup'>>
  983. <<gt 'telefon' 'fin'>>
  984. <</actCLA>>
  985. <</actCLA>>
  986. <<actCLA 'Hangup'>>
  987. <<gt 'telefon' 'fin'>>
  988. <</actCLA>>
  989. <</if>>
  990. <<if $location_var[$here][0] == 'callingTheLover' and $loverGender[$location_var[$here][1]] == 0>>
  991. <<gs 'din_bad'>>
  992. <<set $lover_number = $ARGS[1]>>
  993. <<set $caller = '$loverdesc[$lover_number]'>>
  994. <<set $callerid = 'images/characters/shared/headshots_generic/'+lover_picture[$lover_number]+'.jpg'>>
  995. <<gs 'telefon' 'phone_balance'>>
  996. <<gs 'telefon' 'phone_call_receive'>>
  997. <<set $willAgree = (rand(0, 10) > 3)>>
  998. "Yes, I'm listening," says a voice from the speaker.
  999. <<if $time.month > 5 and getvar("$temper") > 20 and getvar("$sunWeather") == 1>>
  1000. <<actCLA 'Invite to the park'>>
  1001. "Let''s go for a walk in the park."
  1002. <<if $willAgree>>
  1003. <p>$loverdesc[$lover_number], "See you in the park in an hour."</p>
  1004. <<actCLA 'Go'>>
  1005. <<gt 'svidboy' 'parksvid'>>
  1006. <</actCLA>>
  1007. <<else>>
  1008. <<gs 'telefon' 'telotkaz' $loverdesc[$lover_number]>>
  1009. <</if>>
  1010. <</actCLA>>
  1011. <</if>>
  1012. <<actCLA 'Invite to a movie'>>
  1013. <p>"Want to go see a movie?"</p>
  1014. <<if $willAgree>>
  1015. <p>$loverdesc[$lover_number], "See you at the movie theater in an hour."</p>
  1016. <<actCLA 'Go'>>
  1017. <<gt 'svidboy' 'kinosvid'>>
  1018. <</actCLA>>
  1019. <<else>>
  1020. <<gs 'telefon' 'telotkaz' $loverdesc[$lover_number]>>
  1021. <</if>>
  1022. <</actCLA>>
  1023. <<if $home['town'] == 'city'>>
  1024. <<actCLA 'Invite to the pool hall'>>
  1025. "Let''s play pool."
  1026. <<if $willAgree>>
  1027. <p>$loverdesc[$lover_number], "See you at the pool hall in an hour."</p>
  1028. <<actCLA 'Go'>>
  1029. <<gt 'svidboy' 'billsvid'>>
  1030. <</actCLA>>
  1031. <<else>>
  1032. <<gs 'telefon' 'telotkaz' $loverdesc[$lover_number]>>
  1033. <</if>>
  1034. <</actCLA>>
  1035. <</if>>
  1036. <<actCLA 'Invite to the cafe'>>
  1037. "Let''s go to the cafe."
  1038. <<if $willAgree>>
  1039. <p>$loverdesc[$lover_number], "See you at the cafe in an hour."</p>
  1040. <<actCLA 'Go'>>
  1041. <<gt 'svidboy' 'kafesvid'>>
  1042. <</actCLA>>
  1043. <<else>>
  1044. <<gs 'telefon' 'telotkaz' $loverdesc[$lover_number]>>
  1045. <</if>>
  1046. <</actCLA>>
  1047. <<actCLA 'I think we should break up...'>>
  1048. He sounds hurt, but you insist it is for the best. You both say goodbye and part ways.
  1049. <<gs 'lover' 'remove' $lover_number>>
  1050. <<actCLA 'Hangup'>>
  1051. <<gt 'telefon' 'fin'>>
  1052. <</actCLA>>
  1053. <</actCLA>>
  1054. <<actCLA 'Hangup'>>
  1055. <<gt 'telefon' 'fin'>>
  1056. <</actCLA>>
  1057. <</if>>
  1058. <<if $location_var[$here][0] == 'lover' and $loverGender[$location_var[$here][1]] == 0>>
  1059. <<set $lover_number = $ARGS[1]>>
  1060. <<set $ring = 0>>
  1061. <<set $lover_days = $time.daystart - $loverday[$lover_number]>>
  1062. <!-- !-->
  1063. <!-- !gs 'telefon','phone_call_receive'-->
  1064. <<set $svetrand = rand(0, 5)>>
  1065. <<if getvar("$svetrand") == 0>>
  1066. <<set $sveta = 'cutie'>>
  1067. <</if>>
  1068. <<if getvar("$svetrand") == 1>>
  1069. <<set $sveta = 'honey'>>
  1070. <</if>>
  1071. <<if getvar("$svetrand") == 2>>
  1072. <<set $sveta = 'sweetie'>>
  1073. <</if>>
  1074. <<if getvar("$svetrand") == 3>>
  1075. <<set $sveta = 'baby'>>
  1076. <</if>>
  1077. <<if getvar("$svetrand") == 4>>
  1078. <<set $sveta = 'hot stuff'>>
  1079. <</if>>
  1080. <<if getvar("$svetrand") == 5>>
  1081. <<set $sveta = '$pc.name_nick'>>
  1082. <</if>>
  1083. <p>Hey $sveta, it's me, $loverdesc[$lover_number]. How's it going?</p>
  1084. <<actCLA 'Reply'>>
  1085. <p>"Pretty good, you?"</p>
  1086. <p>$loverdesc[$lover_number], "Great, but I kind of miss you, can we meet today?"</p>
  1087. <<if ($pc.pregchem / 24) <= $lover_days and $pc.knowpreg == 1 and getvar("$pc.pregtalk") == 0>>
  1088. <<actCLA 'Tell him he`s going to be a dad'>>
  1089. <<set $pc.pregtalk = 1>>
  1090. "Honey, I'm pregnant with your child."
  1091. <<if getvar("$haraklover["+$lover_number+"]") == 0>>
  1092. <<if getvar("$loverrelation["+$lover_number+"]") >= 90>>
  1093. <<setinit $loverlove[$lover_number] = 1>>
  1094. <p>$loverdesc[$lover_number], "This is wonderful! We have to celebrate!"</p>
  1095. <p>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.</p>
  1096. <p>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.</p>
  1097. <p>When you are totally ready $loverdesc[$lover_number] will take you to his parents.</p>
  1098. <<actCLA 'Hang up'>>
  1099. <<gt 'telefon' 'fin'>>
  1100. <</actCLA>>
  1101. <<actCLA 'Meet tonight'>>
  1102. <<setinit $svidanie[$lover_number] = 1>>
  1103. <p>"How about this evening?"</p>
  1104. <p>$loverdesc[$lover_number], "Sounds great! When can I come to pick you up?"</p>
  1105. <<actCLA 'Pick a time'>>
  1106. <<setinit $meetday[$lover_number] = $time.daystart>>
  1107. <<setinit $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]")>>
  1108. <<if $meethour[$lover_number] <= $time.hour or getvar("$meethour["+$lover_number+"]") > 23>>
  1109. <<setinit $meethour[$lover_number] = 20>>
  1110. <</if>>
  1111. <p>"How about meethour[$lover_number]:00?"</p>
  1112. <p>$loverdesc[$lover_number], "Okay $sveta, see you at meethour[$lover_number]:00."</p>
  1113. <<actCLA 'Hang up'>>
  1114. <<gt 'telefon' 'fin'>>
  1115. <</actCLA>>
  1116. <</actCLA>>
  1117. <</actCLA>>
  1118. <<elseif getvar("$loverrelation["+$lover_number+"]") < 90>>
  1119. <<set $finances.cash += 20000>>
  1120. <p>$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.</p>
  1121. <<actCLA 'Hang up'>>
  1122. <<gt 'telefon' 'fin'>>
  1123. <</actCLA>>
  1124. <</if>>
  1125. <<elseif getvar("$haraklover["+$lover_number+"]") == 1>>
  1126. <<set $finances.cash += 20000>>
  1127. <p>$loverdesc[$lover_number] "I'm not yet ready to become a dad. I'll give you the money get an abortion.</p>
  1128. <<actCLA 'Hang up'>>
  1129. <<gt 'telefon' 'fin'>>
  1130. <</actCLA>>
  1131. <<elseif getvar("$haraklover["+$lover_number+"]") == 2>>
  1132. <<set $pc.pregtalk = 0>>
  1133. <p>$loverdesc[$lover_number], "What? You whore! Someone fucked your pussy, and now you drop it on me. You're dumped.</p>
  1134. <<gs 'lover' 'remove' $lover_number>>
  1135. <<actCLA 'Hang up'>>
  1136. <<gt 'telefon' 'fin'>>
  1137. <</actCLA>>
  1138. <</if>>
  1139. <</actCLA>>
  1140. <<elseif ($pc.pregchem / 24) > $lover_days and $pc.knowpreg == 1 and getvar("$pc.pregtalk") == 0>>
  1141. <<actCLA 'Honey, you will soon become a dad'>>
  1142. <<setinit $loverrelation[$lover_number] = 0>>
  1143. "Honey, I'm pregnant with your child."
  1144. <p>$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."</p>
  1145. <<actCLA 'Hang up.'>>
  1146. <<gt 'telefon' 'fin'>>
  1147. <</actCLA>>
  1148. <</actCLA>>
  1149. <<elseif $time.weekday > 1 and $time.weekday < 5 and getvar("$workKafe['job']") == 1>>
  1150. <<actCLA 'Sorry, I`m working today'>>
  1151. "Sorry, I'm working today."
  1152. <p>$loverdesc[$lover_number], "Okay, I'll call tomorrow."</p>
  1153. <<actCLA 'Hang up'>>
  1154. <<gt 'telefon' 'fin'>>
  1155. <</actCLA>>
  1156. <</actCLA>>
  1157. <</if>>
  1158. <<actCLA 'Tonight'>>
  1159. <<setinit $loverrelation[$lover_number] += 1>>
  1160. <<setinit $svidanie[$lover_number] = 1>>
  1161. <<setinit $meetday[$lover_number] = $time.daystart>>
  1162. <p>"How about this evening?"</p>
  1163. <p>$loverdesc[$lover_number], "Sounds great! When can I come to pick you up?"</p>
  1164. <<actCLA 'Pick a time'>>
  1165. <<setinit $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]")>>
  1166. <<if $meethour[$lover_number] <= $time.hour or getvar("$meethour["+$lover_number+"]") > 23>>
  1167. <<setinit $meethour[$lover_number] = 20>>
  1168. <</if>>
  1169. <p>"How about meethour[$lover_number]:00?."</p>
  1170. <p>$loverdesc[$lover_number], "Okay $sveta, see you at meethour[$lover_number]:00."</p>
  1171. <<actCLA 'Hang up'>>
  1172. <<gt 'telefon' 'fin'>>
  1173. <</actCLA>>
  1174. <</actCLA>>
  1175. <</actCLA>>
  1176. <<actCLA 'Maybe tomorrow'>>
  1177. <<setinit $loverrelation[$lover_number] -= 1>>
  1178. "I'm busy today. Call tomorrow."
  1179. <<if getvar("$loverrelation["+$lover_number+"]") <= 0>>
  1180. <<gs 'lover' 'remove' $lover_number>>
  1181. <</if>>
  1182. <<if getvar("$loverrelation["+$lover_number+"]") > 0>>
  1183. <p>($loverdesc[$lover_number]) - Okay, I'll call tomorrow.</p>
  1184. <</if>>
  1185. <<actCLA 'Hang up'>>
  1186. <<gt 'telefon' 'fin'>>
  1187. <</actCLA>>
  1188. <</actCLA>>
  1189. <<actCLA 'I think we should break up...'>>
  1190. He sounds hurt, but you insist it is for the best. You both say goodbye and part ways.
  1191. <<gs 'lover' 'remove' $lover_number>>
  1192. <<actCLA 'Hang up'>>
  1193. <<gt 'telefon' 'fin'>>
  1194. <</actCLA>>
  1195. <</actCLA>>
  1196. <</actCLA>>
  1197. <<actCLA 'Hang up (end relationship)'>>
  1198. <<gs 'lover' 'remove' $lover_number>>
  1199. <<gt 'telefon' 'fin'>>
  1200. <</actCLA>>
  1201. <</if>>
  1202. <<if $location_var[$here][0] == 'lover' and $loverGender[$location_var[$here][1]] == 1>>
  1203. <<set $lover_number = $ARGS[1]>>
  1204. <<set $ring = 0>>
  1205. <<set $lover_days = $time.daystart - $loverday[$lover_number]>>
  1206. <!-- !-->
  1207. <!-- !gs 'telefon','phone_call_receive'-->
  1208. <<set $svetrand = rand(0, 5)>>
  1209. <<if getvar("$svetrand") == 0>>
  1210. <<set $sveta = 'cutie'>>
  1211. <</if>>
  1212. <<if getvar("$svetrand") == 1>>
  1213. <<set $sveta = 'honey'>>
  1214. <</if>>
  1215. <<if getvar("$svetrand") == 2>>
  1216. <<set $sveta = 'sweetie'>>
  1217. <</if>>
  1218. <<if getvar("$svetrand") == 3>>
  1219. <<set $sveta = 'baby'>>
  1220. <</if>>
  1221. <<if getvar("$svetrand") == 4>>
  1222. <<set $sveta = 'hot stuff'>>
  1223. <</if>>
  1224. <<if getvar("$svetrand") == 5>>
  1225. <<set $sveta = '$pc.name_nick'>>
  1226. <</if>>
  1227. <p>Hey $sveta, it's me, $loverdesc[$lover_number]. How's it going?</p>
  1228. <<actCLA 'Reply'>>
  1229. <p>"Pretty good, you?"</p>
  1230. <p>$loverdesc[$lover_number], "Great, but I kind of miss you, can we meet today?"</p>
  1231. <<actCLA 'Tonight'>>
  1232. <<setinit $loverrelation[$lover_number] += 1>>
  1233. <<setinit $svidanie[$lover_number] = 1>>
  1234. <<setinit $meetday[$lover_number] = $time.daystart>>
  1235. <p>"How about this evening?"</p>
  1236. <p>$loverdesc[$lover_number], "Sounds great! When can I come to pick you up?"</p>
  1237. <<actCLA 'Pick a time'>>
  1238. <<setinit $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]")>>
  1239. <<if $meethour[$lover_number] <= $time.hour or getvar("$meethour["+$lover_number+"]") > 23>>
  1240. <<setinit $meethour[$lover_number] = 20>>
  1241. <</if>>
  1242. <p>"How about meethour[$lover_number]:00?."</p>
  1243. <p>$loverdesc[$lover_number], "Okay $sveta, see you at meethour[$lover_number]:00."</p>
  1244. <<actCLA 'Hang up'>>
  1245. <<gt 'telefon' 'fin'>>
  1246. <</actCLA>>
  1247. <</actCLA>>
  1248. <</actCLA>>
  1249. <<actCLA 'Maybe tomorrow'>>
  1250. <<setinit $loverrelation[$lover_number] -= 1>>
  1251. "I'm busy today. Call tomorrow."
  1252. <<if getvar("$loverrelation["+$lover_number+"]") <= 0>>
  1253. <<gs 'lover' 'remove' $lover_number>>
  1254. <</if>>
  1255. <<if getvar("$loverrelation["+$lover_number+"]") > 0>>
  1256. <p>($loverdesc[$lover_number]) - Okay, I'll call tomorrow.</p>
  1257. <</if>>
  1258. <<actCLA 'Hang up'>>
  1259. <<gt 'telefon' 'fin'>>
  1260. <</actCLA>>
  1261. <</actCLA>>
  1262. <<actCLA 'I think we should break up...'>>
  1263. She sounds hurt, but you insist it is for the best. You both say goodbye and part ways.
  1264. <<gs 'lover' 'remove' $lover_number>>
  1265. <<actCLA 'Hang up'>>
  1266. <<gt 'telefon' 'fin'>>
  1267. <</actCLA>>
  1268. <</actCLA>>
  1269. <</actCLA>>
  1270. <<actCLA 'Hang up (end relationship)'>>
  1271. <<gs 'lover' 'remove' $lover_number>>
  1272. <<gt 'telefon' 'fin'>>
  1273. <</actCLA>>
  1274. <</if>>
  1275. <!-- !---------------------- End of Lover support-->
  1276. <<if $location_var[$here][0] == 'Phone_notebook'>>
  1277. <<gs 'housing' 'rent'>>
  1278. <<setinit $telefon['body'] = >>
  1279. <font size=6>Planner</font><br>
  1280. <img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_notebook.png" height="80" width="80"><br>
  1281. <!-- FAILED TO CONVERT
  1282. <<year>>-<<$time.month>>-<<day>>, <<$time.weekday[week]>><br><br>'
  1283. -----
  1284. ERROR: FAILED TO CONVERT LITERAL: """<<year>>""" - $time.month - ERROR: FAILED TO CONVERT LITERAL: """<<day>>""" , ERROR: FAILED TO CONVERT LITERAL: """$time.weekday_name[$time.weekday]<br><br>'"""
  1285. -->
  1286. <<warn "CONVERSION ERROR 8f3585296fab5aaff24b345f7f82ebac">>
  1287. <<set $rent1 = -1>>
  1288. <<set $rent4 = -1>>
  1289. <!-- !! TODO: Will have to change this too, to handle more than 2 rentals.-->
  1290. <<if func('homes_properties', 'is_property_of_status', 'rented', 'city_apartment')>>
  1291. <<set $rent1 = func('homes_properties', 'get_rent_days', 'city_apartment')>>
  1292. <</if>>
  1293. <<if func('homes_properties', 'is_property_of_status', 'rented', 'old_town_apartment')>>
  1294. <<set $rent4 = func('homes_properties', 'get_rent_days', 'old_town_apartment')>>
  1295. <</if>>
  1296. <<set $d1 = $time.day>>
  1297. <<set $w1 = $time.weekday>>
  1298. <<set $m1 = $time.month>>
  1299. <<set $y1 = $time.year>>
  1300. <<set $i = 0>>
  1301. <<set $list = '<br>&emsp;<b>•</b> '>>
  1302. <<warn 'JUMP MARKER ENCOUNTERED: :pnotebook'>>
  1303. <<set $time.daynum = $time.daystart + $i>>
  1304. <<set $calendarday = ''>>
  1305. <<if getvar("$m1") == 1 and getvar("$d1") >= 1 and getvar("$d1") <= 8>>
  1306. <<set $calendarday += $list + 'New Year holidays'>>
  1307. <<if getvar("$d1") == 1>>
  1308. <<sets $calendarday += ', New Year'>>
  1309. <</if>>
  1310. <<if getvar("$d1") == 7>>
  1311. <<sets $calendarday += ', Christmas'>>
  1312. <</if>>
  1313. <</if>>
  1314. <<if getvar("$m1") == 2 and getvar("$d1") == 23>>
  1315. <<set $calendarday += $list + 'Defender of Fatherland Day'>>
  1316. <</if>>
  1317. <<if getvar("$m1") == 3 and getvar("$d1") == 8>>
  1318. <<set $calendarday += $list + 'Women's Day'>>
  1319. <</if>>
  1320. <<if getvar("$m1") == 5 and getvar("$d1") == 1>>
  1321. <<set $calendarday += $list + 'Spring and Labor Day'>>
  1322. <</if>>
  1323. <<if getvar("$m1") == 5 and getvar("$d1") == 2>>
  1324. <<set $calendarday += $list + 'National holiday'>>
  1325. <</if>>
  1326. <<if getvar("$m1") == 5 and getvar("$d1") == 9>>
  1327. <<set $calendarday += $list + 'Victory Day'>>
  1328. <</if>>
  1329. <<if getvar("$m1") == 6 and getvar("$d1") == 12>>
  1330. <<set $calendarday += $list + 'Russia Day'>>
  1331. <</if>>
  1332. <<if getvar("$m1") == 6 and getvar("$d1") == 13>>
  1333. <<set $calendarday += $list + 'National holiday'>>
  1334. <</if>>
  1335. <<if getvar("$m1") == 11 and getvar("$d1") == 4>>
  1336. <<set $calendarday += $list + 'Unity Day'>>
  1337. <</if>>
  1338. <<if mid($start_type,1,2) == 'sg' and getvar("$SchoolAtestat") == 0>>
  1339. <<if getvar("$m1") == 1 and getvar("$d1") == 1>>
  1340. <<set $calendarday += $list + 'First day of Winter break.'>>
  1341. <</if>>
  1342. <<if getvar("$m1") == 1 and getvar("$d1") == 15>>
  1343. <<set $calendarday += $list + 'Last day of Winter break.'>>
  1344. <</if>>
  1345. <<if getvar("$m1") == 3 and getvar("$d1") == 20>>
  1346. <<set $calendarday += $list + 'First day of Spring break.'>>
  1347. <</if>>
  1348. <<if getvar("$m1") == 3 and getvar("$d1") == 26>>
  1349. <<set $calendarday += $list + 'Last day of Spring break.'>>
  1350. <</if>>
  1351. <<if getvar("$y1") == 2017 and getvar("$m1") == 5 and getvar("$d1") == 25>>
  1352. <<set $calendarday += $list + 'Graduation Day!'>>
  1353. <</if>>
  1354. <<if getvar("$m1") == 6 and getvar("$d1") == 1>>
  1355. <<set $calendarday += $list + 'First day of Summer break.'>>
  1356. <</if>>
  1357. <<if getvar("$m1") == 8 and getvar("$d1") == 31>>
  1358. <<set $calendarday += $list + 'Last day of Summer break.'>>
  1359. <</if>>
  1360. <<if getvar("$m1") == 11 and getvar("$d1") == 4>>
  1361. <<set $calendarday += $list + 'First day of Autumn break.'>>
  1362. <</if>>
  1363. <<if getvar("$m1") == 11 and getvar("$d1") == 11>>
  1364. <<set $calendarday += $list + 'Last day of Autumn break.'>>
  1365. <</if>>
  1366. <</if>>
  1367. <!-- FAILED TO CONVERT
  1368. if daynum >= daylastperiod+28 and daynum < daylastperiod+31:$calendarday += $list + '<font color=''red''><b>Menstruation!</b></font>'
  1369. -----
  1370. <<if $time.daynum >= $time.daylastperiod + 28 and $time.daynum < $time.daylastperiod + 31>>
  1371. <!-- FAILED TO CONVERT
  1372. $calendarday += $list + '<font color=''red''><b>Menstruation!</b></font>'
  1373. -----
  1374. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'<font color=''red''><b>Menstruation!<""" / ERROR: FAILED TO CONVERT LITERAL: """b><""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
  1375. -->
  1376. <<warn "CONVERSION ERROR 859df84df1b61f0573898737f9a603b9">>
  1377. <</if>>
  1378. -->
  1379. <<warn "CONVERSION ERROR a63875d9bd5c29cb45649a7a52d8ba26">>
  1380. <!-- FAILED TO CONVERT
  1381. if daynum >= daylastperiod+12 and daynum < daylastperiod+14:$calendarday += $list + '<font color=#336600><b>Ovulation!</b></font>'
  1382. -----
  1383. <<if $time.daynum >= $time.daylastperiod + 12 and $time.daynum < $time.daylastperiod + 14>>
  1384. <!-- FAILED TO CONVERT
  1385. $calendarday += $list + '<font color=#336600><b>Ovulation!</b></font>'
  1386. -----
  1387. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'<font color=#336600><b>Ovulation!<""" / ERROR: FAILED TO CONVERT LITERAL: """b><""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
  1388. -->
  1389. <<warn "CONVERSION ERROR a0622098b59c67badc0590f0c836ee27">>
  1390. <</if>>
  1391. -->
  1392. <<warn "CONVERSION ERROR 4c3b632d68229a25afd924d54c8b2b19">>
  1393. <!-- FAILED TO CONVERT
  1394. if pregchem >= 6720:$calendarday += $list + '<font color=''red''><b>Birthing day!</b></font>'
  1395. -----
  1396. <<if getvar("$pc.pregchem") >= 6720>>
  1397. <!-- FAILED TO CONVERT
  1398. $calendarday += $list + '<font color=''red''><b>Birthing day!</b></font>'
  1399. -----
  1400. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'<font color=''red''><b>Birthing day!<""" / ERROR: FAILED TO CONVERT LITERAL: """b><""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
  1401. -->
  1402. <<warn "CONVERSION ERROR 75b75fd11c711758dba3a17d1f90b53f">>
  1403. <</if>>
  1404. -->
  1405. <<warn "CONVERSION ERROR 290664430bc27c382949ce0de8e7e6bb">>
  1406. <!-- FAILED TO CONVERT
  1407. if w1 < 5 and (workSec >= 1 or BurgerQW['Secretary'] = 1):$calendarday += $list + 'Working as a secretary. <i>(9:00 - 17:00)</i>'
  1408. -----
  1409. <<if getvar("$w1") < 5 and (getvar("$workSec") >= 1 or getvar("$BurgerQW['Secretary']") == 1)>>
  1410. <!-- FAILED TO CONVERT
  1411. $calendarday += $list + 'Working as a secretary. <i>(9:00 - 17:00)</i>'
  1412. -----
  1413. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'Working as a secretary. <i>(ERROR: FAILED TO CONVERT LITERAL: """9:00""" - ERROR: FAILED TO CONVERT LITERAL: """17:00""")<""" / ERROR: FAILED TO CONVERT LITERAL: """i>'""">>
  1414. -->
  1415. <<warn "CONVERSION ERROR 9529721191dce9dda0b0db29e00dd0cf">>
  1416. <</if>>
  1417. -->
  1418. <<warn "CONVERSION ERROR 552be77287140ae01988e15480cf03d0">>
  1419. <<if getvar("$w1") < 5 and getvar("$workFabrika") == 1>>
  1420. <<set $calendarday += $list + 'Working as a seamstress. '>>
  1421. <!-- FAILED TO CONVERT
  1422. if age < 18:$calendarday += '<i>(16:00 - 20:00)</i>' else $calendarday += '<i>(8:00 - 16:00)</i>'
  1423. -----
  1424. <<if getvar("$pc.age") < 18>>
  1425. <!-- FAILED TO CONVERT
  1426. $calendarday += '<i>(16:00 - 20:00)</i>' else $calendarday += '<i>(8:00 - 16:00)</i>'
  1427. -----
  1428. <<set $calendarday += '<i>(ERROR: FAILED TO CONVERT LITERAL: """16:00""" - ERROR: FAILED TO CONVERT LITERAL: """20:00""")</i>' else $calendarday += '<i>(ERROR: FAILED TO CONVERT LITERAL: """8:00""" - ERROR: FAILED TO CONVERT LITERAL: """16:00""")</i>'>>
  1429. -->
  1430. <<warn "CONVERSION ERROR bebbb36ca7af3b2bbe0ce691b0e5e8b1">>
  1431. <</if>>
  1432. -->
  1433. <<warn "CONVERSION ERROR 6b2004856e2d4f7de662d82920a5a305">>
  1434. <</if>>
  1435. <!-- FAILED TO CONVERT
  1436. if w1 > 1 and w1 <= 5 and workhosp = 1:$calendarday += $list + 'Working as a nurse. <i>(8:00 - 16:00)</i>'
  1437. -----
  1438. <<if getvar("$w1") > 1 and getvar("$w1") <= 5 and getvar("$workhosp") == 1>>
  1439. <!-- FAILED TO CONVERT
  1440. $calendarday += $list + 'Working as a nurse. <i>(8:00 - 16:00)</i>'
  1441. -----
  1442. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'Working as a nurse. <i>(ERROR: FAILED TO CONVERT LITERAL: """8:00""" - ERROR: FAILED TO CONVERT LITERAL: """16:00""")<""" / ERROR: FAILED TO CONVERT LITERAL: """i>'""">>
  1443. -->
  1444. <<warn "CONVERSION ERROR 5035bb46d4509b7608de8a3e52e5a99d">>
  1445. <</if>>
  1446. -->
  1447. <<warn "CONVERSION ERROR db4b8360c484c26c0c77c2a6b27d8fa4">>
  1448. <!-- FAILED TO CONVERT
  1449. if worksalon = 1 and (w1 = 1 or w1 = 3 or w1 = 5):$calendarday += $list + 'Working as a masseuse. <i>(9:00 - 17:00)</i>'
  1450. -----
  1451. <<if getvar("$worksalon") == 1 and (getvar("$w1") == 1 or getvar("$w1") == 3 or getvar("$w1") == 5)>>
  1452. <!-- FAILED TO CONVERT
  1453. $calendarday += $list + 'Working as a masseuse. <i>(9:00 - 17:00)</i>'
  1454. -----
  1455. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'Working as a masseuse. <i>(ERROR: FAILED TO CONVERT LITERAL: """9:00""" - ERROR: FAILED TO CONVERT LITERAL: """17:00""")<""" / ERROR: FAILED TO CONVERT LITERAL: """i>'""">>
  1456. -->
  1457. <<warn "CONVERSION ERROR 3ab057df7a7ad555d8ae4d8ca37239c1">>
  1458. <</if>>
  1459. -->
  1460. <<warn "CONVERSION ERROR 6a3daa650a332652bfc859e779bba0ec">>
  1461. <!-- !! if maidqw > 0:$calendarday += '<br>&emsp;<b>•</b> Working as maid. <i>(16:00 - 19:00)</i>'-->
  1462. <!-- FAILED TO CONVERT
  1463. if pfilmday[i] > 0:$calendarday += $list + 'Porn shoot: <i><<$porndesc[pfilmday[i]]>></i>'
  1464. -----
  1465. <<if getvar("$pfilmday["+$i+"]") > 0>>
  1466. <!-- FAILED TO CONVERT
  1467. $calendarday += $list + 'Porn shoot: <i><<$porndesc[pfilmday[$i]]>></i>'
  1468. -----
  1469. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'Porn shoot: <i>$porndesc[$pfilmday[$i]]<""" / ERROR: FAILED TO CONVERT LITERAL: """i>'""">>
  1470. -->
  1471. <<warn "CONVERSION ERROR 68ba378b09af4f5c611ddf8b9f0b4a72">>
  1472. <</if>>
  1473. -->
  1474. <<warn "CONVERSION ERROR 74a120c827fea7574fb41a3db40e98e2">>
  1475. <!-- FAILED TO CONVERT
  1476. if d1 = 25 and (BurgerQW['Secretary'] = 1 or workKafe['job'] = 1 or workhosp = 1 or worksalon = 1 or tanwork = 1 or workSec = 1 or workFabrika = 1):$calendarday += $list + '<i>Pay day!</i>'
  1477. -----
  1478. <<if getvar("$d1") == 25 and (getvar("$BurgerQW['Secretary']") == 1 or getvar("$workKafe['job']") == 1 or getvar("$workhosp") == 1 or getvar("$worksalon") == 1 or getvar("$tanwork") == 1 or getvar("$workSec") == 1 or getvar("$workFabrika") == 1)>>
  1479. <!-- FAILED TO CONVERT
  1480. $calendarday += $list + '<i>Pay day!</i>'
  1481. -----
  1482. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'<i>Pay day!<""" / ERROR: FAILED TO CONVERT LITERAL: """i>'""">>
  1483. -->
  1484. <<warn "CONVERSION ERROR 86a710ec1b18e2f6b56871ab441eda8a">>
  1485. <</if>>
  1486. -->
  1487. <<warn "CONVERSION ERROR 5facac3565a1be3d0f42b2c32934d228">>
  1488. <<if $d1 == $nyp_day and getvar("$m1") == 12 and getvar("$SchoolAtestat") == 0 and mid($start_type,1,2) == 'sg'>>
  1489. <<set $calendarday += $list + 'New Year's party at 14:00!'>>
  1490. <</if>>
  1491. <<if ($npcs.get('A33','QW') - 2) % 2 == 1 and $sisboyday + 1 == $time.daynum>>
  1492. <<if getvar("$sisboytrioQW") == 1>>
  1493. <!-- FAILED TO CONVERT
  1494. $calendarday += $list + '<font color="orange">Threesome with Anya and Roma at 18:00</font>'
  1495. -----
  1496. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'<font color="orange">Threesome with Anya and Roma at 18:00<""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
  1497. -->
  1498. <<warn "CONVERSION ERROR fefe959cc8607305a4e2428f8f820735">>
  1499. <<else>>
  1500. <!-- FAILED TO CONVERT
  1501. $calendarday += $list + '<font color="orange">Anya having sex with Roma at 18:00</font>'
  1502. -----
  1503. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'<font color="orange">Anya having sex with Roma at 18:00<""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
  1504. -->
  1505. <<warn "CONVERSION ERROR 078087e9ef95ea9d0dc6aa88062cb3b1">>
  1506. <</if>>
  1507. <</if>>
  1508. <!-- FAILED TO CONVERT
  1509. 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>'
  1510. -----
  1511. <<if getvar("$sisboyparty") == 2 and $sisboyparty_day + 1 == $time.daynum>>
  1512. <!-- FAILED TO CONVERT
  1513. $calendarday += $list + '<font color="orange">Party at Rex''s, gathering before 18:00 at Community Center</font>'
  1514. -----
  1515. <<set $calendarday += $list + ERROR: FAILED TO CONVERT LITERAL: """'<font color="orange">Party at Rex''s""" , ERROR: FAILED TO CONVERT LITERAL: """gathering before 18:00 at Community Center<""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
  1516. -->
  1517. <<warn "CONVERSION ERROR b6b8fb9647ca539254b959bae3293708">>
  1518. <</if>>
  1519. -->
  1520. <<warn "CONVERSION ERROR de4bbae9fb604b3140c997f365935aac">>
  1521. <<if getvar("$rent1") == 0>>
  1522. <<set $calendarday += $list + 'Rent on city apartment expires!'>>
  1523. <</if>>
  1524. <<if getvar("$rent4") == 0>>
  1525. <<set $calendarday += $list + 'Rent on Pushkin apartment expires!'>>
  1526. <</if>>
  1527. <<if $pc.birthday == $d1 and $pc.birthmonth == $m1>>
  1528. <<set $calendarday += $list + 'My birthday!'>>
  1529. <</if>>
  1530. <<if getvar("$kid") > 0>>
  1531. <<set $k1 = $kid>>
  1532. <<warn 'JUMP MARKER ENCOUNTERED: :kiddieloop'>>
  1533. <<if $time.daykid[$k1] == $d1 and $time.monthkid[$k1] == $m1>>
  1534. <<set $calendarday += $list + 'Birthday of my $polreb[$k1] $kidname[$k1], my kid. baby!'>>
  1535. <</if>>
  1536. <<if getvar("$k1") > 1>>
  1537. <<setn $k1 -= 1>>
  1538. <</if>>
  1539. <</if>>
  1540. <<if $calendarday != ''>>
  1541. <<setinit $telefon['body'] += '<b>$time.monthName[$m1] d1, $time.weekday_name[$w1]:</b>'>>
  1542. <<setinit $telefon['body'] += $calendarday + '<br>'>>
  1543. <</if>>
  1544. <<if getvar("$i") < 14>>
  1545. <<set $rent1 -= 1>>
  1546. <<set $rent4 -= 1>>
  1547. <<set $i += 1>>
  1548. <<set $w1 += 1>>
  1549. <<if getvar("$w1") > 7>>
  1550. <<set $w1 = 1>>
  1551. <</if>>
  1552. <<set $d1 += 1>>
  1553. <<if $time.monthsend[$m1] < $d1>>
  1554. <<set $m1 += 1>> <<set $d1 = 1>>
  1555. <<if getvar("$m1") == 13>>
  1556. <<set $m1 = 1>> <<setn $y1 += 1>>
  1557. <</if>>
  1558. <</if>>
  1559. <<warn 'JUMP COMMAND ENCOUNTERED: jump pnotebook'>>
  1560. <</if>>
  1561. <<set $calendarday to null>>
  1562. <<set $rent1 to null>>
  1563. <<set $rent4 to null>>
  1564. <<set $d1 to null>>
  1565. <<set $w1 to null>>
  1566. <<set $m1 to null>>
  1567. <<set $y1 to null>>
  1568. <<set $time.daynum to null>>
  1569. <<telefon['print']>>
  1570. <</if>>
  1571. <!-- !!----------------------------------------Camera--------------------------------------------------->
  1572. <!-- !!for viewing photos on your phone-->
  1573. <<if $location_var[$here][0] == 'Phone_pictures'>>
  1574. <<gt 'phone_selfies' 'selfies'>>
  1575. <</if>>
  1576. <!-- !!picking the selfie image when taking photos, this sets the location variable-->
  1577. <!-- !{
  1578. $ARGS[1] is phone location if left blank it is a generic selfie (one of the locations in $selfieLoc[])
  1579. $ARGS[2] is for flashing when clothed if left blank then it is not flashing
  1580. } -->
  1581. <<if $location_var[$here][0] == 'Phone_camera_selfie'>>
  1582. <<set $time.minutes += rand(5,7)>>
  1583. <<if $location_var[$here][1] != ''>>
  1584. <<gs 'telefon' 'Phone_selfie_image' $location_var[$here][1] $location_var[$here][2]>>
  1585. <<else>>
  1586. <<set $phone_rand = RAND(1,selfieClotot[0])>>
  1587. <<run State.setVar($selfieLoc[0]+'_closelfie['+phone_rand+']',1)>>
  1588. <<if getvar("$usePopUps") == 1>>
  1589. <<msg '<img src="images/pc/activities/phone/selfies/<<$selfieLoc[0]>>/clothed/<<$selfieFilePrefix[0]>><<phone_rand>>.jpg">'>>
  1590. <<else>>
  1591. <!-- FAILED TO CONVERT
  1592. view 'images/pc/activities/phone/selfies/<<$selfieLoc[0]>>/clothed/<<$selfieFilePrefix[0]>><<phone_rand>>.jpg'
  1593. -----
  1594. view 'images / $pc / $activities / $phone / $selfies / $selfieLoc[0] / $clothed / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[0]<<phone_rand>>.jpg'"""
  1595. -->
  1596. <<warn "CONVERSION ERROR 8394c50fdc3ae82e05100cbaadf8bb9f">>
  1597. <</if>>
  1598. <</if>>
  1599. <!-- !if spdirtyf > 0: phone_rand = RAND (m,n) - for SELF in the semen-->
  1600. <!-- !if photo_event_pic = x: phone_rand = RAND (x,y) - for photos during the events (by heart)-->
  1601. <!-- !msg '<<image `'images/system/phone/phone_selfie<<phone_rand>>.jpg'`>>'-->
  1602. <</if>>
  1603. <!-- !!taking selfies, this chooses a random image for the location for clothed, underwear and nude-->
  1604. <!-- !{
  1605. $ARGS[1] is phone location (one of the locations in $selfieLoc[])
  1606. $ARGS[2] is for flashing when clothed if left blank then it is not flashing
  1607. } -->
  1608. <<if $location_var[$here][0] == 'Phone_selfie_image'>>
  1609. <<if $location_var[$here][2] == ''>>
  1610. <<if $wardrobe.PCloswimwear == 1>>
  1611. <!-- !!changing to and unmixed variable so the rng will work-->
  1612. <<if getvar("$Enable_Android") == 1>>
  1613. <<set temp_swim = $selfieSwimtot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>
  1614. <<else>>
  1615. <<set temp_swim = $selfieSwimtot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>
  1616. <</if>>
  1617. <<if getvar("$temp_swim") > 0>>
  1618. <<set $phone_rand = rand(1,temp_swim)>>
  1619. <!-- !!Setting the image owned flag to 1-->
  1620. <<run State.setVar($ARGS[1]+'_swim['+phone_rand+']',1)>>
  1621. <<if getvar("$usePopUps") == 1>>
  1622. <<msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/bikini/<<phone_rand>>.jpg">'>>
  1623. <<else>>
  1624. <!-- FAILED TO CONVERT
  1625. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/bikini/<<phone_rand>>.jpg'
  1626. -----
  1627. view 'images / $pc / $activities / $phone / $selfies / $location_var[$here][1] / $bikini / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1628. -->
  1629. <<warn "CONVERSION ERROR c9e3b2b95298c26342a234ee5d8b241d">>
  1630. <</if>>
  1631. <</if>>
  1632. <<elseif $wardrobe.clothingworntype != 'nude'>>
  1633. <!-- !!changing to and unmixed variable so the rng will work-->
  1634. <<if getvar("$Enable_Android") == 1>>
  1635. <<set temp_clotot = $selfieClotot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>
  1636. <<else>>
  1637. <<set temp_clotot = $selfieClotot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>
  1638. <</if>>
  1639. <<if getvar("$temp_clotot") > 0>>
  1640. <<set $phone_rand = rand(1,temp_clotot)>>
  1641. <!-- !!Setting the image owned flag to 1-->
  1642. <<run State.setVar($ARGS[1]+'_closelfie['+phone_rand+']',1)>>
  1643. <<if getvar("$usePopUps") == 1>>
  1644. <<msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/clothed/<<phone_rand>>.jpg">'>>
  1645. <<else>>
  1646. <!-- FAILED TO CONVERT
  1647. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/clothed/<<phone_rand>>.jpg'
  1648. -----
  1649. view 'images / $pc / $activities / $phone / $selfies / $location_var[$here][1] / $clothed / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1650. -->
  1651. <<warn "CONVERSION ERROR 745522772ba96965a2ae6e19f6e944f0">>
  1652. <</if>>
  1653. <</if>>
  1654. <<elseif $wardrobe.pantyworntype != 'none'>>
  1655. <<if getvar("$Enable_Android") == 1>>
  1656. <<set temp_undtot = $selfieUndtot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>
  1657. <<else>>
  1658. <<set temp_undtot = $selfieUndtot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>
  1659. <</if>>
  1660. <<if getvar("$temp_undtot") > 0>>
  1661. <<set $phone_rand = rand(1,temp_undtot)>>
  1662. <<run State.setVar($ARGS[1]+'_undselfie['+phone_rand+']',1)>>
  1663. <<if getvar("$usePopUps") == 1>>
  1664. <<msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/underwear/<<phone_rand>>.jpg">'>>
  1665. <<else>>
  1666. <!-- FAILED TO CONVERT
  1667. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/underwear/<<phone_rand>>.jpg'
  1668. -----
  1669. view 'images / $pc / $activities / $phone / $selfies / $location_var[$here][1] / $underwear / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1670. -->
  1671. <<warn "CONVERSION ERROR 12430375886c0d8541bd072ed2f16f47">>
  1672. <</if>>
  1673. <</if>>
  1674. <<else>>
  1675. <<if getvar("$Enable_Android") == 1>>
  1676. <<set temp_nudtot = $selfieNudtot[arrpos(''$selfieLoc'', $ARGS[1],1)]>>
  1677. <<else>>
  1678. <<set temp_nudtot = $selfieNudtot[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>
  1679. <</if>>
  1680. <<if getvar("$temp_nudtot") > 0>>
  1681. <<set $phone_rand = rand(1,temp_nudtot)>>
  1682. <<run State.setVar($ARGS[1]+'_nudselfie['+phone_rand+']',1)>>
  1683. <<if getvar("$usePopUps") == 1>>
  1684. <<msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/nude/<<phone_rand>>.jpg">'>>
  1685. <<else>>
  1686. <!-- FAILED TO CONVERT
  1687. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/nude/<<phone_rand>>.jpg'
  1688. -----
  1689. view 'images / $pc / $activities / $phone / $selfies / $location_var[$here][1] / $nude / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1690. -->
  1691. <<warn "CONVERSION ERROR a35a397763dbeca40d1a3a9326c56289">>
  1692. <</if>>
  1693. <</if>>
  1694. <</if>>
  1695. <<else>>
  1696. <<if $location_var[$here][2] == 'tits'>>
  1697. <<if getvar("$Enable_Android") == 1>>
  1698. <<set temp_titflash = $selfieTitflash[arrpos(''$selfieLoc'', $ARGS[1],1)]>>
  1699. <<else>>
  1700. <<set temp_titflash = $selfieTitflash[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>
  1701. <</if>>
  1702. <<if getvar("$temp_titflash") > 0>>
  1703. <<set $phone_rand = rand(1,temp_titflash)>>
  1704. <<run State.setVar($ARGS[1]+'_titflash['+phone_rand+']',1)>>
  1705. <<if getvar("$usePopUps") == 1>>
  1706. <<msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/titflash/<<phone_rand>>.jpg">'>>
  1707. <<else>>
  1708. <!-- FAILED TO CONVERT
  1709. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/titflash/<<phone_rand>>.jpg'
  1710. -----
  1711. view 'images / $pc / $activities / $phone / $selfies / $location_var[$here][1] / $titflash / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1712. -->
  1713. <<warn "CONVERSION ERROR cab75aeab449804d75ee7fc6354adba0">>
  1714. <</if>>
  1715. <</if>>
  1716. <<elseif $location_var[$here][2] == 'ass'>>
  1717. <<if getvar("$Enable_Android") == 1>>
  1718. <<set temp_assflash = $selfieAssflash[arrpos(''$selfieLoc'', $ARGS[1],1)]>>
  1719. <<else>>
  1720. <<set temp_assflash = $selfieAssflash[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>
  1721. <</if>>
  1722. <<if getvar("$temp_assflash") > 0>>
  1723. <<set $phone_rand = rand(1,temp_assflash)>>
  1724. <<run State.setVar($ARGS[1]+'_assflash['+phone_rand+']',1)>>
  1725. <<if getvar("$usePopUps") == 1>>
  1726. <<msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/assflash/<<phone_rand>>.jpg">'>>
  1727. <<else>>
  1728. <!-- FAILED TO CONVERT
  1729. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/assflash/<<phone_rand>>.jpg'
  1730. -----
  1731. view 'images / $pc / $activities / $phone / $selfies / $location_var[$here][1] / $assflash / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1732. -->
  1733. <<warn "CONVERSION ERROR f06edf5bca12940c43514fd3b6a2b214">>
  1734. <</if>>
  1735. <</if>>
  1736. <<elseif $location_var[$here][2] == 'pussy'>>
  1737. <<if getvar("$Enable_Android") == 1>>
  1738. <<set temp_pussyflash = $selfiePussyflash[arrpos(''$selfieLoc'', $ARGS[1],1)]>>
  1739. <<else>>
  1740. <<set temp_pussyflash = $selfiePussyflash[arrpos(1, ''$selfieLoc'', $ARGS[1])]>>
  1741. <</if>>
  1742. <<if getvar("$temp_pussyflash") > 0>>
  1743. <<set $phone_rand = rand(1,temp_pussyflash)>>
  1744. <<run State.setVar($ARGS[1]+'_pussyflash['+phone_rand+']',1)>>
  1745. <<if getvar("$usePopUps") == 1>>
  1746. <<msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/pussyflash/<<phone_rand>>.jpg">'>>
  1747. <<else>>
  1748. <!-- FAILED TO CONVERT
  1749. view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/pussyflash/<<phone_rand>>.jpg'
  1750. -----
  1751. view 'images / $pc / $activities / $phone / $selfies / $location_var[$here][1] / $pussyflash / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1752. -->
  1753. <<warn "CONVERSION ERROR ac8ec29df3660778d73b986f4a7b8c4f">>
  1754. <</if>>
  1755. <</if>>
  1756. <</if>>
  1757. <</if>>
  1758. <</if>>
  1759. <!-- !!taking selfies in the shower or bath-->
  1760. <<if $location_var[$here][0] == 'Phone_selfie_image_bathing'>>
  1761. <<set $time.minutes += rand(5,7)>>
  1762. <<if $location_var[$here][1] == 'shower'>>
  1763. <!-- !!changing to and unmixed variable so the rng will work-->
  1764. <<if getvar("$Enable_Android") == 1>>
  1765. <<set temp_showertot = $selfieShowertot[arrpos(''$selfieLoc'', ''bathroom'',1)]>>
  1766. <<else>>
  1767. <<set temp_showertot = $selfieShowertot[arrpos(1, ''$selfieLoc'', ''bathroom'')]>>
  1768. <</if>>
  1769. <<set $phone_rand = rand(1,temp_showertot)>>
  1770. <!-- !!Setting the image owned flag to 1-->
  1771. <<setinit $bathroom_showerselfie['+phone_rand+'] = 1>>
  1772. <<if getvar("$usePopUps") == 1>>
  1773. <<msg '<<image `'images/pc/activities/phone/selfies/bathroom/shower/<<phone_rand>>.jpg'`>>'>>
  1774. <<else>>
  1775. <!-- FAILED TO CONVERT
  1776. view 'images/pc/activities/phone/selfies/bathroom/shower/<<phone_rand>>.jpg'
  1777. -----
  1778. view 'images / $pc / $activities / $phone / $selfies / $bathroom / $shower / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1779. -->
  1780. <<warn "CONVERSION ERROR f35b02d971b3504840fbeddd9e276f85">>
  1781. <</if>>
  1782. <<elseif $location_var[$here][1] == 'bath'>>
  1783. <<if getvar("$Enable_Android") == 1>>
  1784. <<set temp_bathtot = $selfieBathtot[arrpos(''$selfieLoc'', ''bathroom'',1)]>>
  1785. <<else>>
  1786. <<set temp_bathtot = $selfieBathtot[arrpos(1, ''$selfieLoc'', ''bathroom'')]>>
  1787. <</if>>
  1788. <<set $phone_rand = rand(1,temp_bathtot)>>
  1789. <<setinit $bathroom_bathselfie['+phone_rand+'] = 1>>
  1790. <<if getvar("$usePopUps") == 1>>
  1791. <<msg '<<image `'images/pc/activities/phone/selfies/bathroom/bath/<<phone_rand>>.jpg'`>>'>>
  1792. <<else>>
  1793. <!-- FAILED TO CONVERT
  1794. view 'images/pc/activities/phone/selfies/bathroom/bath/<<phone_rand>>.jpg'
  1795. -----
  1796. view 'images / $pc / $activities / $phone / $selfies / $bathroom / $bath / ERROR: FAILED TO CONVERT LITERAL: """<<phone_rand>>.jpg'"""
  1797. -->
  1798. <<warn "CONVERSION ERROR c67aa813c39a2fad41719ae1889063b7">>
  1799. <</if>>
  1800. <</if>>
  1801. <</if>>
  1802. <!-- !!for taking photos - only selfies for now-->
  1803. <<if $location_var[$here][0] == 'Phone_camera'>>
  1804. <<gs 'phone_selfies' 'Phone_selfie_totals'>>
  1805. <<if $locclass == 'bedr'>>
  1806. <<set $phone_loc = 'bedroom'>>
  1807. <<elseif $locclass == 'kitr'>>
  1808. <<set $phone_loc = 'kitchen'>>
  1809. <<elseif $locclass == 'livingr'>>
  1810. <<set $phone_loc = 'livingroom'>>
  1811. <<elseif $locclass == 'changingroom'>>
  1812. <<set $phone_loc = 'changingroom'>>
  1813. <<elseif $locclass == 'city_park'>>
  1814. <<set $phone_loc = 'park'>>
  1815. <<elseif $locclass == 'locker'>>
  1816. <<set $phone_loc = 'locker'>>
  1817. <<elseif $locclass == 'beach'>>
  1818. <<set $phone_loc = 'beach'>>
  1819. <<elseif $locclass == 'beach'>>
  1820. <<set $phone_loc = 'beach'>>
  1821. <<elseif $locclass == 'classroom'>>
  1822. <<set $phone_loc = 'classroom'>>
  1823. <<elseif $locclass == 'school_bathroom'>>
  1824. <<set $phone_loc = 'school_bathroom'>>
  1825. <<elseif $locclass == 'restroom'>>
  1826. <<set $phone_loc = 'restroom'>>
  1827. <<elseif $location_type == 'bathroom'>>
  1828. <<set $phone_loc = 'bathroom'>>
  1829. <<else>>
  1830. <<set $phone_loc = ''>>
  1831. <</if>>
  1832. <!-- FAILED TO CONVERT
  1833. $telefon['body'] = '<font size=6>Camera</font><br>
  1834. -----
  1835. <<setinit $telefon['body'] = ERROR: FAILED TO CONVERT LITERAL: """'<font size=6>Camera<""" / ERROR: FAILED TO CONVERT LITERAL: """font><br>""">>
  1836. -->
  1837. <<warn "CONVERSION ERROR 21522a3fde540cc786f7628425b7fed8">>
  1838. <!-- FAILED TO CONVERT
  1839. <img src="images/system/phone/theme/<<$phonetheme_name[pcs_phonetheme]>>/icon_camera.png" height="80" width="80"><br><br>'
  1840. -----
  1841. <<set ERROR: FAILED TO CONVERT LITERAL: """<img src""" = "images / $system / $phone / $theme / $phonetheme_name[$pcs_phonetheme] / ERROR: FAILED TO CONVERT LITERAL: """icon_camera.png" height="80" width="80"><br><br>'""">>
  1842. -->
  1843. <<warn "CONVERSION ERROR e255c8f61c1fc2a77fdf93538b534d44">>
  1844. <!-- !! Take a selfie depending on which clothes you are wearing-->
  1845. <<setinit $telefon['body'] += '<a href="exec:gs 'exp_gain' , 'photoskl' , 1>> <<gs 'telefon' 'Phone_camera_selfie' '$phone_loc' "><b>Take a selfie</b></a><br>'>>
  1846. <!-- !! Flashing selfie-->
  1847. <<if $wardrobe.clothingworntype != 'nude' and $phone_loc <> ''>>
  1848. <<if getvar("$Enable_Android") == 1>>
  1849. <<set $locIndex = arrpos('$selfieLoc', $phone_loc,1)>>
  1850. <<else>>
  1851. <<set $locIndex = arrpos(1, '$selfieLoc', $phone_loc)>>
  1852. <</if>>
  1853. <<if ($pc.pcs_inhib >= 35 or getvar("$exhibitionist_lvl") > 0 or $phone_loc == 'bedroom') and dyneval("result = <<selfieTitflash[$locIndex]>>") > 0>>
  1854. <<setinit $telefon['body'] += '<a href="exec:gs 'exp_gain' , 'photoskl' , 1>> <<gs 'telefon' 'Phone_camera_selfie' '$phone_loc' 'tits' "><b>Flash your tits for a selfie</b></a><br>'>>
  1855. <</if>>
  1856. <<if (getvar("$exhibitionist_lvl") > 0 or $phone_loc == 'bedroom') and dyneval("result = <<selfieAssflash[$locIndex]>>") > 0>>
  1857. <<setinit $telefon['body'] += '<a href="exec:gs 'exp_gain' , 'photoskl' , 1>> <<gs 'telefon' 'Phone_camera_selfie' '$phone_loc' 'ass' "><b>Flash your ass for a selfie</b></a><br>'>>
  1858. <</if>>
  1859. <<if (getvar("$exhibitionist_lvl") > 1 or $phone_loc == 'bedroom') and dyneval("result = <<selfiePussyflash[$locIndex]>>") > 0>>
  1860. <<setinit $telefon['body'] += '<a href="exec:gs 'exp_gain' , 'photoskl' , 1>> <<gs 'telefon' 'Phone_camera_selfie' '$phone_loc' 'pussy' "><b>Flash your pussy for a selfie</b></a><br>'>>
  1861. <</if>>
  1862. <</if>>
  1863. <<telefon['print']>>
  1864. <</if>>
  1865. <!-- !!-----------------------------------end of Camera-------------------------------------------->
  1866. <!-- !!-----------------------------------start of sms-------------------------------------------->
  1867. <!-- !{
  1868. Send SMS lists the current contacts, then clicking on a contact gives a list of messages that can be sent.
  1869. Receive messages lists the sms messages sent to the player, these can be deleted, they will be in bold until read.
  1870. To add an incoming message
  1871. gs 'telefon', 'add_sms', 'A1', 'Test message the text goes here', 'images/pc/activities/phone/selfies/bathroom/underwear/1.jpg', 'images/pc/activities/phone/selfies/school_bathroom/pussyflash/1.jpg'
  1872. A1 is the NPC code (A1 is Dmitriy Nosov "Dimka")
  1873. You can have up to 4 pictures attached to the message
  1874. To add an out going message that can be sent
  1875. gs 'telefon', 'add_sms_to_send', 'A1', 'Test message the text goes here'
  1876. To add a contact if it doesn't exist
  1877. if arrpos('$contact', 'A1') = -1: gs 'telefon', 'AddContact', 'A1', 'images/characters/shared/headshots_main/big1.jpg', "", "1 = 0", "", "", 0
  1878. SMS Arrays storing received messages and messages that can be sent
  1879. Received Messages
  1880. telefon['UnreadSMS'] = number of unread SMS messages
  1881. $SMSContact[] = NPC code for contact. ('A129', 'A29', 'B13', 'C14') that sent the sms
  1882. $SMSMessage[] = text for the sms message
  1883. $SMSTime[] = date time the message was received
  1884. $SMSPicture1[] = url for first picture sent as part of the message
  1885. $SMSPicture2[] = url for second picture sent as part of the message
  1886. $SMSPicture3[] = url for third picture sent as part of the message
  1887. $SMSPicture4[] = url for fourth picture sent as part of the message
  1888. SMSMessageRead[] = 0 unread, 1 read
  1889. Send Messages
  1890. $SMSSendContact[] = NPC code for contact. ('A129', 'A29', 'B13', 'C14') that sent the sms
  1891. $SMSSendMessage[] = text for the sms message
  1892. $SMSSendCode[] = Code to execute for Incoming call
  1893. SMSSendRepeatable[] = 0 delete option after send, 1 don't delete option
  1894. $SMSSendDeleteId[] = id passed by the caller
  1895. } -->
  1896. <<if $location_var[$here][0] == 'Phone_sms'>>
  1897. <<setinit $telefon['body'] = >>
  1898. <font size=6>SMS</font><br>
  1899. <!-- FAILED TO CONVERT
  1900. <img src="images/system/phone/theme/<<$phonetheme_name[pcs_phonetheme]>>/<<iif(telefon[''UnreadSMS'']=0,''icon_sms.png'',''icon_sms_new.gif'')>>" height="80" width="80"><br>'
  1901. -----
  1902. <<set ERROR: FAILED TO CONVERT LITERAL: """<img src""" = "images / $system / $phone / $theme / $phonetheme_name[$pcs_phonetheme] / ERROR: FAILED TO CONVERT LITERAL: """<<iif(telefon['UnreadSMS']=0""" , 'icon_sms.png' , 'icon_sms_new.gif')" height="80" width="80"><br>'>>
  1903. -->
  1904. <<warn "CONVERSION ERROR bcefc6037af847b1b35d0d00dc606211">>
  1905. <<setinit $telefon['body'] += '<b><<link "Send new SMS">><<gs 'telefon' 'send_sms'>><</link>></b><br>'>>
  1906. <<setinit $telefon['body'] += '<TABLE cellspacing="0" width="80%"><TR><TH>Icon</TH><TH>Name</TH><TH align="right">Received</TH><TH></TH></TR>'>>
  1907. <!-- !!iterating all Messages-->
  1908. <!-- !!reset and recalculate unread messages count, in case they get out of sync-->
  1909. <<setinit $telefon['UnreadSMS'] = 0>>
  1910. <<set $i = 0>>
  1911. <<warn 'JUMP MARKER ENCOUNTERED: :smsloop'>>
  1912. <<if $i < arrsize('$SMSContact')>>
  1913. <!-- !! if the person sending is in the contact list display the names and icon-->
  1914. <<setinit $telefon['contactid'] = arrpos('$contact',$SMSContact[$i])>>
  1915. <<if getvar("$telefon['contactid']") == -1>>
  1916. <<setinit $telefonCon['NPCName'] = ''>>
  1917. <<setinit $telefonCon['Icon'] = 'icon_na.png'>>
  1918. <<else>>
  1919. <<setinit $telefonCon['NPCName'] = $npcs.get($contact[$telefon['contactid','nickname')]]>>
  1920. <<setinit $telefonCon['Icon'] = $contactIcon[$telefon['contactid']]>>
  1921. <</if>>
  1922. <<if getvar("$SMSMessageRead["+$i+"]") == 0>>
  1923. <<setinit $telefon['UnreadSMS'] += 1>>
  1924. <</if>>
  1925. <<setinit $telefon['body'] += dyneval($telefon['SMS'],i,$telefonCon['Icon'],$telefonCon['NPCName'],$SMSTime[$i],SMSMessageRead[$i])>>
  1926. <<set $i += 1>>
  1927. <<warn 'JUMP COMMAND ENCOUNTERED: jump smsloop'>>
  1928. <</if>>
  1929. <<setinit $telefon['body'] += '<b><<link "Delete All">><<gs 'telefon' 'delete_sms' '0' 'all'>><</link>></b><br>'>>
  1930. <<setinit $telefon['body'] += '</TABLE><br>'>>
  1931. <<telefon['print']>>
  1932. <<set $i to null>>
  1933. <</if>>
  1934. <!-- !{
  1935. New SMS Message
  1936. If NPC is not in the contacts list of the phone it will be displayed as unknown until the contact has been added
  1937. $ARGS[1] = NPC code for contact. ('A129', 'A29', 'B13', 'C14')
  1938. $ARGS[2] = Message text to be displayed
  1939. $ARGS[3] = path to a picture to be displayed (optional)
  1940. $ARGS[4] = path to a picture to be displayed (optional)
  1941. $ARGS[5] = path to a picture to be displayed (optional)
  1942. $ARGS[6] = path to a picture to be displayed (optional)
  1943. } -->
  1944. <<if $location_var[$here][0] == 'add_sms'>>
  1945. <<setinit $SMSContact[$telefon['SMSCount']] = $location_var[$here][1]>>
  1946. <<setinit $SMSMessage[$telefon['SMSCount']] = $location_var[$here][2]>>
  1947. <<setinit $SMSTime[$telefon['SMSCount']] = '$mid(100+hour,2,2):$mid(100+minut,2,2) $time.weekday_name[$time.weekday] day $time.month year'>>
  1948. <<setinit $SMSPicture1[$telefon['SMSCount']] = $location_var[$here][3]>>
  1949. <<setinit $SMSPicture2[$telefon['SMSCount']] = $location_var[$here][4]>>
  1950. <<setinit $SMSPicture3[$telefon['SMSCount']] = $location_var[$here][5]>>
  1951. <<setinit $SMSPicture4[$telefon['SMSCount']] = $location_var[$here][6]>>
  1952. <<setinit $SMSMessageRead[$telefon['SMSCount']] = 0>>
  1953. <<setinit $telefon['SMSCount'] += 1>>
  1954. <<setinit $telefon['UnreadSMS'] += 1>>
  1955. <</if>>
  1956. <<if $location_var[$here][0] == 'delete_sms'>>
  1957. <<setinit $telefon['SMSid'] = $ARGS[1]>>
  1958. <<set $SMSContact[$telefon['SMSid']] to null>>
  1959. <<set $SMSMessage[$telefon['SMSid']] to null>>
  1960. <<set $SMSTime[$telefon['SMSid']] to null>>
  1961. <<set $SMSPicture1[$telefon['SMSid']] to null>>
  1962. <<set $SMSPicture2[$telefon['SMSid']] to null>>
  1963. <<set $SMSPicture3[$telefon['SMSid']] to null>>
  1964. <<set $SMSPicture4[$telefon['SMSid']] to null>>
  1965. <<set $SMSMessageRead[$telefon['SMSid']] to null>>
  1966. <<setinit $telefon['SMSCount'] -= 1>>
  1967. <<if $location_var[$here][2] == 'all' and getvar("$telefon['SMSCount']") > 0>>
  1968. <<gs 'telefon' 'delete_sms' '0' 'all'>>
  1969. <</if>>
  1970. <<gs 'telefon' 'Phone_sms'>>
  1971. <</if>>
  1972. <<if $location_var[$here][0] == 'show_sms'>>
  1973. <<setinit $telefon['SMSid'] = $ARGS[1]>>
  1974. <!-- !!set to read and update the number of unread messages-->
  1975. <<if $SMSMessageRead[$telefon['SMSid']] == 0>>
  1976. <<setinit $telefon['UnreadSMS'] -= 1>>
  1977. <<setinit $SMSMessageRead[$telefon['SMSid']] = 1>>
  1978. <</if>>
  1979. <!-- !! Get image and name if in phone contacts otherwise show unknown-->
  1980. <<setinit $telefon['contactid'] = arrpos('$contact',$SMSContact[$telefon['SMSid']])>>
  1981. <<if getvar("$telefon['contactid']") == -1>>
  1982. <<setinit $telefonCon['NPCName'] = ''>>
  1983. <<setinit $telefonCon['Icon'] = 'icon_na.png'>>
  1984. <<else>>
  1985. <<setinit $telefonCon['NPCName'] = $npcs.get($contact[$telefon['contactid','nickname')]]>>
  1986. <<setinit $telefonCon['Icon'] = $contactIcon[$telefon['contactid']]>>
  1987. <</if>>
  1988. <!-- !!If file extension is not given, .png is assumed-->
  1989. <<if instr($telefonCon['Icon'],'.') == 0>>
  1990. <<setinit $telefonCon['Icon'] += '.png'>>
  1991. <</if>>
  1992. <!-- !!If path is not given, default phone icon path is assumed-->
  1993. <<if instr($telefonCon['Icon'],'/') == 0>>
  1994. <<setinit $telefonCon['Icon'] = 'images / $system / $phone / $icons / + $telefonCon['Icon']>>
  1995. <</if>>
  1996. <<setinit $telefon['body'] = >>
  1997. <font size=6>SMS</font><br>
  1998. <!-- FAILED TO CONVERT
  1999. <img src="images/system/phone/theme/<<$phonetheme_name[pcs_phonetheme]>>/<<iif(telefon[''UnreadSMS'']=0,''icon_sms.png'',''icon_sms_new.gif'')>>" height="80" width="80"><br>'
  2000. -----
  2001. <<set ERROR: FAILED TO CONVERT LITERAL: """<img src""" = "images / $system / $phone / $theme / $phonetheme_name[$pcs_phonetheme] / ERROR: FAILED TO CONVERT LITERAL: """<<iif(telefon['UnreadSMS']=0""" , 'icon_sms.png' , 'icon_sms_new.gif')" height="80" width="80"><br>'>>
  2002. -->
  2003. <<warn "CONVERSION ERROR bcefc6037af847b1b35d0d00dc606211">>
  2004. <<setinit $telefon['body'] += '<TABLE cellspacing="0" width="80%">'>>
  2005. <<setinit $telefon['body'] += '<TR><TD><img height=100 src="$telefonCon['Icon']"></TD><TD>$telefonCon['NPCName']</TD></TR>'>>
  2006. <<setinit $telefon['body'] += '<TR><TD colspan="2">$SMSMessage[$telefon['SMSid']]</TD></TR>'>>
  2007. <<if $SMSPicture1[$telefon['SMSid']] <> ''>>
  2008. <<setinit $telefon['body'] += '<TR><TD colspan="2"><img src="$SMSPicture1[$telefon['SMSid']]"></TD></TR>'>>
  2009. <</if>>
  2010. <<if $SMSPicture2[$telefon['SMSid']] <> ''>>
  2011. <<setinit $telefon['body'] += '<TR><TD colspan="2"><img src="$SMSPicture2[$telefon['SMSid']]"></TD></TR>'>>
  2012. <</if>>
  2013. <<if $SMSPicture3[$telefon['SMSid']] <> ''>>
  2014. <<setinit $telefon['body'] += '<TR><TD colspan="2"><img src="$SMSPicture3[$telefon['SMSid']]"></TD></TR>'>>
  2015. <</if>>
  2016. <<if $SMSPicture4[$telefon['SMSid']] <> ''>>
  2017. <<setinit $telefon['body'] += '<TR><TD colspan="2"><img src="$SMSPicture4[$telefon['SMSid']]"></TD></TR>'>>
  2018. <</if>>
  2019. <<setinit $telefon['body'] += '</TABLE><br>'>>
  2020. <<setinit $telefon['backButton'] = 'gs 'telefon', 'Phone_sms' '>>
  2021. <<telefon['print']>>
  2022. <</if>>
  2023. <!-- !! This is the formatting function for a row in the SMS message table. SHould be run as a DYNEVAL()-->
  2024. <!-- !{
  2025. SMS Row in messages table
  2026. ARGS[0] = message id
  2027. $ARGS[1] = NPC icon
  2028. $ARGS[2] = NPC Nickname
  2029. $ARGS[3] = Time received
  2030. $ARGS[4] = 0 unread, 1 read
  2031. } -->
  2032. <!-- !! List of Contacts that you can send sms messages to-->
  2033. <<if $location_var[$here][0] == 'send_sms'>>
  2034. <<setinit $telefon['backButton'] = 'gs 'telefon', 'Phone_sms''>>
  2035. <<setinit $telefon['body'] = >>
  2036. <font size=6>Send SMS</font><br>
  2037. <!-- FAILED TO CONVERT
  2038. <img src="images/system/phone/theme/<<$phonetheme_name[pcs_phonetheme]>>/<<iif(telefon[''UnreadSMS'']=0,''icon_sms.png'',''icon_sms_new.gif'')>>" height="80" width="80"><br>'
  2039. -----
  2040. <<set ERROR: FAILED TO CONVERT LITERAL: """<img src""" = "images / $system / $phone / $theme / $phonetheme_name[$pcs_phonetheme] / ERROR: FAILED TO CONVERT LITERAL: """<<iif(telefon['UnreadSMS']=0""" , 'icon_sms.png' , 'icon_sms_new.gif')" height="80" width="80"><br>'>>
  2041. -->
  2042. <<warn "CONVERSION ERROR bcefc6037af847b1b35d0d00dc606211">>
  2043. <<if getvar("$subscription['metered_calls']") == 1 and getvar("$subscription['sms_limit']") > 0>>
  2044. <<setinit $telefon['body'] += '<br/>'>>
  2045. <<setinit $telefon['body'] += '<b>You still can send $subscription['sms_limit'] text messages on your contract</b>'>>
  2046. <</if>>
  2047. <!-- !! Colour correction for editor ''''-->
  2048. <<setinit $telefon['body'] += '<TABLE cellspacing="0" width="80%">'>>
  2049. <!-- !!iterating all Contacts-->
  2050. <<set $i = 0>>
  2051. <<warn 'JUMP MARKER ENCOUNTERED: :smscontactloop'>>
  2052. <<if $i < arrsize('$contact')>>
  2053. <<if getvar("$contactAnon["+$i+"]") == 0>>
  2054. <<setinit $telefon['body'] += dyneval($telefon['contactsms'],i)>>
  2055. <</if>>
  2056. <<set $i += 1>>
  2057. <<warn 'JUMP COMMAND ENCOUNTERED: jump smscontactloop'>>
  2058. <</if>>
  2059. <<setinit $telefon['body'] += '</TABLE><br>'>>
  2060. <<telefon['print']>>
  2061. <<set $i to null>>
  2062. <</if>>
  2063. <!-- !! This is the formatting function for a row in the Contact List. SHould be run as a DYNEVAL()-->
  2064. <!-- !! $ARGS[0] = index of contact in the conntact arrays-->
  2065. <!-- !! List of SMS messages available to be sent to an NPC-->
  2066. <!-- !! $ARGS[1] = NPC code for the contact we want to display messages for-->
  2067. <<if $location_var[$here][0] == 'npcSendListSms'>>
  2068. <<setinit $telefon['backButton'] = 'gs 'telefon', 'send_sms''>>
  2069. <<setinit $telefon['body'] = >>
  2070. <font size=6>Send SMS</font><br>
  2071. <!-- FAILED TO CONVERT
  2072. <img src="images/system/phone/theme/<<$phonetheme_name[pcs_phonetheme]>>/<<iif(telefon[''UnreadSMS'']=0,''icon_sms.png'',''icon_sms_new.gif'')>>" height="80" width="80"><br>'
  2073. -----
  2074. <<set ERROR: FAILED TO CONVERT LITERAL: """<img src""" = "images / $system / $phone / $theme / $phonetheme_name[$pcs_phonetheme] / ERROR: FAILED TO CONVERT LITERAL: """<<iif(telefon['UnreadSMS']=0""" , 'icon_sms.png' , 'icon_sms_new.gif')" height="80" width="80"><br>'>>
  2075. -->
  2076. <<warn "CONVERSION ERROR bcefc6037af847b1b35d0d00dc606211">>
  2077. <<setinit $telefon['body'] += '<TABLE cellspacing="0" width="80%">'>>
  2078. <!-- !!iterating all send sms messages-->
  2079. <<set $i = 0>>
  2080. <<warn 'JUMP MARKER ENCOUNTERED: :npcSendListSmsLoop'>>
  2081. <<if $i < arrsize('$SMSSendContact')>>
  2082. <<if $SMSSendContact[$i] == $location_var[$here][1]>>
  2083. <<setinit $telefon['body'] += dyneval($telefon['smsMessageToSend'],i)>>
  2084. <</if>>
  2085. <<set $i += 1>>
  2086. <<warn 'JUMP COMMAND ENCOUNTERED: jump npcSendListSmsLoop'>>
  2087. <</if>>
  2088. <<setinit $telefon['body'] += '</TABLE><br>'>>
  2089. <<telefon['print']>>
  2090. <<set $i to null>>
  2091. <</if>>
  2092. <!-- !! This is the formatting function for a row in the messages to send List. SHould be run as a DYNEVAL()-->
  2093. <!-- !! ARGS[0] = index of the message-->
  2094. <<if $location_var[$here][0] == 'smsSendMessage'>>
  2095. dynamic '$SMSSendCode[$ARGS[1]]'
  2096. <<gs 'internet_mobile' 'send_sms'>>
  2097. <<if $SMSSendRepeatable[$location_var[$here][1]] == 0>>
  2098. <<gs 'telefon' 'delete_sms_send_index' $ARGS[1]>>
  2099. <</if>>
  2100. <<gs 'telefon' 'Phone_sms'>>
  2101. <</if>>
  2102. <!-- !{
  2103. Add a new message that can be sent by the player
  2104. $ARGS[1] NPC code for contact. ('A129', 'A29', 'B13', 'C14') that sent the sms
  2105. $ARGS[2] text for the sms message
  2106. $ARGS[3] Code to execute when the sms is sent
  2107. ARGS[4] 0 delete option after send, 1 dont delete option
  2108. $ARGS[5] id passed by the caller to identify the option to be deleted if it needs to be removed from the options
  2109. } -->
  2110. <<if $location_var[$here][0] == 'add_sms_to_send'>>
  2111. <<set $i = arrsize('$SMSSendContact')>>
  2112. <<setinit $SMSSendContact[$i] = $location_var[$here][1]>>
  2113. <<setinit $SMSSendMessage[$i] = $location_var[$here][2]>>
  2114. <<setinit $SMSSendCode[$i] = $location_var[$here][3]>>
  2115. <<setinit $SMSSendRepeatable[$i] = $ARGS[4]>>
  2116. <<setinit $SMSSendDeleteId[$i] = $location_var[$here][5]>>
  2117. <</if>>
  2118. <<if $location_var[$here][0] == 'delete_sms_send_index'>>
  2119. <<set $SMSSendContact[$ARGS[1]] to null>>
  2120. <<set $SMSSendMessage[$ARGS[1]] to null>>
  2121. <<set $SMSSendCode[$ARGS[1]] to null>>
  2122. <<set $SMSSendRepeatable[$ARGS[1]] to null>>
  2123. <<set $SMSSendDeleteId[$ARGS[1]] to null>>
  2124. <</if>>
  2125. <!-- !{
  2126. $ARGS[1] = NPC code for contact. ('A129', 'A29', 'B13', 'C14')
  2127. $ARGS[2] = Delete id of the message ($SMSSendDeleteId)
  2128. } -->
  2129. <<if $location_var[$here][0] == 'delete_sms_send_id'>>
  2130. <<setinit $telefon['SMStoDeleteFound'] = 'No'>>
  2131. <<set $i = 0>>
  2132. <<warn 'JUMP MARKER ENCOUNTERED: :findSmsToDeleteLoop'>>
  2133. <<if $i < arrsize('$SMSSendContact') and $telefon['SMStoDeleteFound'] == 'No'>>
  2134. <<if $SMSSendContact[$i] == $location_var[$here][1] and $SMSSendDeleteId[$i] == $location_var[$here][2]>>
  2135. <<gs 'telefon' 'delete_sms_send_index' $i>>
  2136. <<setinit $telefon['SMStoDeleteFound'] = 'Yes'>>
  2137. <</if>>
  2138. <<set $i += 1>>
  2139. <<warn 'JUMP COMMAND ENCOUNTERED: jump findSmsToDeleteLoop'>>
  2140. <</if>>
  2141. <</if>>
  2142. <!-- !!-----------------------------------end of sms-------------------------------------------->
  2143. <<if $location_var[$here][0] == 'Phone_wheather'>>
  2144. <<setinit $telefon['body'] = >>
  2145. <font size=6>Weather</font><br>
  2146. <img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_weather.png" height="80" width="80"><br><br>
  2147. <b>Temperature:</b><br>
  2148. <<$temperature>>. <<$osadki>><br>
  2149. <!-- FAILED TO CONVERT
  2150. P.O.P. today is <<weatherFall>>%<br>'
  2151. -----
  2152. ERROR: FAILED TO CONVERT LITERAL: """P.O.P. today is <<weatherFall>>""" % ERROR: FAILED TO CONVERT LITERAL: """<br>'"""
  2153. -->
  2154. <<warn "CONVERSION ERROR b8a9376f9fda0963916914f513d06aec">>
  2155. <<telefon['print']>>
  2156. <</if>>
  2157. <<if $location_var[$here][0] == 'Phone_calendar'>>
  2158. <<setinit $telefon['body'] = >>
  2159. <font size=6>Calendar</font><br>
  2160. <img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_calendar.png" height="80" width="80"><br><br>
  2161. <B>Today:</B><br>
  2162. <!-- FAILED TO CONVERT
  2163. <<$time.weekday[week]>>, <<day>> <<$time.month>> <<year>><br>'
  2164. -----
  2165. $time.weekday_name[$time.weekday] , ERROR: FAILED TO CONVERT LITERAL: """<<day>> $time.month <<year>><br>'"""
  2166. -->
  2167. <<warn "CONVERSION ERROR 3dc053ad50b3aaabda49747456e0e9ca">>
  2168. <<telefon['print']>>
  2169. <</if>>
  2170. <<if $location_var[$here][0] == 'Phone_media'>>
  2171. <<setinit $telefon['body'] = >>
  2172. <font size=6>Media</font><br>
  2173. <img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_music.png" height="80" width="80"><br>
  2174. <!-- FAILED TO CONVERT
  2175. <b>This option is not active</b><br>'
  2176. -----
  2177. ERROR: FAILED TO CONVERT LITERAL: """<b>This option is not active<""" / ERROR: FAILED TO CONVERT LITERAL: """b><br>'"""
  2178. -->
  2179. <<warn "CONVERSION ERROR dbc03ce7a978314aca7681d0c4785adc">>
  2180. <<telefon['print']>>
  2181. <</if>>
  2182. <<if $location_var[$here][0] == 'Phone_menu'>>
  2183. <<if getvar("$phone_off") == 0>>
  2184. <<setinit $telefon['body'] = >>
  2185. <a href="exec:gs ''telefon'', ''Phone_camera'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_camera.png" height="80" width="80"></a>
  2186. <a href="exec:gs ''telefon'', ''Phone_calendar'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_calendar.png" height="80" width="80"></a>
  2187. <a href="exec:gs ''telefon'', ''Phone_pictures'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_pictures.png" height="80" width="80"></a>
  2188. <br>
  2189. <a href="exec:gs ''telefon'', ''Phone_media'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_music.png" height="80" width="80"></a>
  2190. <a href="exec:gs ''telefon'', ''Phone_notebook'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_notebook.png" height="80" width="80"></a>
  2191. <a href="exec:gs ''telefon'', ''Phone_wheather'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_weather.png" height="80" width="80"></a>
  2192. <br>
  2193. <a href="exec:gs ''telefon'', ''ContactList'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_call.png" height="80" width="80"></a>
  2194. <a href="exec:gs ''telefon'', ''Phone_sms'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/<<iif(telefon[''UnreadSMS'']=0,''icon_sms.png'',''icon_sms_new.gif'')>>" height="80" width="80"></a>
  2195. <a href="exec:gs ''telefon'', ''Phone_megafon'' "><img src="images/system/phone/theme/<<$phonetheme_name[$pcs_phonetheme]>>/icon_megafon.png" height="80" width="80"></a>
  2196. <!-- FAILED TO CONVERT
  2197. <br>'
  2198. -----
  2199. ERROR: FAILED TO CONVERT LITERAL: """<br>'"""
  2200. -->
  2201. <<warn "CONVERSION ERROR 2f34f4dd8a4cc48f5c842ae3accadd22">>
  2202. <<if getvar("$menu_off") == 1>>
  2203. <<setinit $telefon['body'] += '<a href="exec:gs 'obj_din', 'menu_disabled'"><img src="images/system/phone/theme/$phonetheme_name[$pcs_phonetheme]/icon_settings.png" height="80" width="80"></a><br>'>>
  2204. <<else>>
  2205. <!-- FAILED TO CONVERT
  2206. $telefon['body'] += '<a href="exec:killvar ''menu_page'' & gs ''Cheatmenu_din'' & dynamic $cheatmenu[''setting'']"><img src="images/system/phone/theme/<<$phonetheme_name[pcs_phonetheme]>>/icon_settings.png" height="80" width="80"></a><br>'
  2207. -----
  2208. <<setinit $telefon['body'] += '<a href="exec:killvar 'menu_page'>> <<gs 'Cheatmenu_din'>> <<set ERROR: FAILED TO CONVERT LITERAL: """dynamic $cheatmenu['setting']"><img src""" = "images / $system / $phone / $theme / $phonetheme_name[$pcs_phonetheme] / ERROR: FAILED TO CONVERT LITERAL: """icon_settings.png" height="80" width="80"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><br>'""">>
  2209. -->
  2210. <<warn "CONVERSION ERROR 4b30249515b3e8a873ca28238159ad4e">>
  2211. <</if>>
  2212. <<telefon['print']>>
  2213. <<else>>
  2214. <font color="red"><b>Your phone is disabled for this event</b></font>
  2215. <</if>>
  2216. <</if>>
  2217. <<if $location_var[$here][0] == 'Add_contact'>>
  2218. <<set $dummy = INPUT('Enter a note:')>>
  2219. <<run $contact.push(dyneval($telefon['contact'],$ARGS[1],$dummy,$ARGS[2]))>>
  2220. <<set $dummy to null>>
  2221. <</if>>
  2222. <<if $location_var[$here][0] == 'telotkaz'>>
  2223. <<set $time.minutes += 10>>
  2224. <p>$ARGS[1], "Sorry, I'm busy right now, maybe next time."</p>
  2225. <<actCLA 'Hangup'>>
  2226. <<gt 'telefon' 'fin'>>
  2227. <</actCLA>>
  2228. <</if>>
  2229. <<if $location_var[$here][0] == 'fin'>>
  2230. <<set $lover_number to null>>
  2231. <<gt $location>>
  2232. <</if>>
  2233. <<if $location_var[$here][0] == 'setup'>>
  2234. <!-- !! array $$phonetheme_name is built.-->
  2235. <!-- !! might need a tweak to have it rebuilt when new themes are available.-->
  2236. <<setinit $phonetheme_name[0] = 'Custom_Standard'>>
  2237. <<setinit $phonetheme_name[1] = 'Bimbo'>>
  2238. <<setinit $phonetheme_name[2] = 'Custom_Aluminus'>>
  2239. <<setinit $phonetheme_name[3] = 'Custom_Bottlecapped'>>
  2240. <<setinit $phonetheme_name[4] = 'Custom_Galactic'>>
  2241. <<setinit $phonetheme_name[5] = 'Custom_Vectored'>>
  2242. <<setinit $phonetheme_name[6] = 'Custom_Veneer'>>
  2243. <<setinit $phonetheme_name[7] = 'Custom_Voidwalker'>>
  2244. <<setinit $phonetheme_name[8] = 'Custom_Voidwalker Red'>>
  2245. <<setinit $phonetheme_name[9] = 'Custom_Voidwalker Toxic'>>
  2246. <<setinit $phonetheme_name[10] = 'Gopnik'>>
  2247. <<setinit $phonetheme_name[11] = 'Sports'>>
  2248. <<setinit $phonetheme_name[12] = 'Succubus'>>
  2249. <<setinit $phonetheme_name[13] = 'Woodshop'>>
  2250. <<setinit $phonetheme[0] = 1>>
  2251. <<gs 'phone_selfies' 'Phone_selfie_totals'>>
  2252. <</if>>
  2253. :: telefonheader_macro[widget]
  2254. <<widget 'telefonheader'>>
  2255. <<if getvar("$telefon['UnreadSMS']") > 0>>
  2256. <<setinit $telefon['SMSstatus'] = 'You have telefon['UnreadSMS'] unread message(s)'>>
  2257. <<else>>
  2258. <<setinit $telefon['SMSstatus'] = ''>>
  2259. <</if>>
  2260. <!-- FAILED TO CONVERT
  2261. $result = '<center>
  2262. -----
  2263. <<set $result = ERROR: FAILED TO CONVERT LITERAL: """'<center>""">>
  2264. -->
  2265. <<warn "CONVERSION ERROR 80353b27d42ecc975fdab0132a975ff1">>
  2266. <b><<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>></b><br>
  2267. <TABLE cellspacing="0" width="80%">
  2268. <TR>
  2269. <TD><<image `'images/system/icons/icon_statusbar_left.png'`>></TD>
  2270. <TD><<$telefon[''SMSstatus'']>></TD>
  2271. <TD align="right"><<image `'images/system/icons/icon_statusbar_right.png'`>></TD>
  2272. </TR>
  2273. <!-- FAILED TO CONVERT
  2274. </TABLE><br>'
  2275. -----
  2276. ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """TABLE><br>'"""
  2277. -->
  2278. <<warn "CONVERSION ERROR 35c9fafeb6f0b947228c8ab2fed29619">>
  2279. <</widget>>
  2280. :: telefonfooter_macro[widget]
  2281. <<widget 'telefonfooter'>>
  2282. <<if $telefon['backButton'] == ''>>
  2283. <<setinit $telefon['backButton'] = 'gs 'telefon', 'Phone_menu''>>
  2284. <</if>>
  2285. <!-- FAILED TO CONVERT
  2286. $result = ' <a href="exec:<<$telefon[''backButton'']>>"><img src="images/system/icons/back.png"></a><br><br>
  2287. -----
  2288. <<set $result = ERROR: FAILED TO CONVERT LITERAL: """' <a href="exec:$telefon['backButton']"><<image `'images""" / $system / $icons / ERROR: FAILED TO CONVERT LITERAL: """back.png'`>><""" / ERROR: FAILED TO CONVERT LITERAL: """a><br><br>""">>
  2289. -->
  2290. <<warn "CONVERSION ERROR 4b68b3151eb9ebe33b90b9c376d5dfa2">>
  2291. <<link "Put Phone Away.">><</link>><br>
  2292. <!-- FAILED TO CONVERT
  2293. </center>'
  2294. -----
  2295. ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """center>'"""
  2296. -->
  2297. <<warn "CONVERSION ERROR 4929f2c41ca2fd9e7e6efbb87973773c">>
  2298. <<setinit $telefon['backButton'] = 'gs 'telefon', 'Phone_menu''>>
  2299. <</widget>>
  2300. :: telefonprint_macro[widget]
  2301. <<widget 'telefonprint'>>
  2302. func('cleanHTML',dyneval($telefon['header']) + $telefon['body'] + dyneval($telefon['footer']))
  2303. <</widget>>
  2304. :: telefoncontact_macro[widget]
  2305. <<widget 'telefoncontact'>>
  2306. <!-- !! Contact Row in phone contact list-->
  2307. <!-- !! _args[0] = NPC icon-->
  2308. <!-- !! _args[1] = NPC Nickname-->
  2309. <!-- !! _args[2] = Code to execute for making a Call-->
  2310. <!-- !! _args[3] = if statement for determining if NPC is avaiable-->
  2311. <<setinit $telefon['ContactIcon'] = _args[0]>>
  2312. <<setinit $telefon['ContactNickName'] = _args[1]>>
  2313. <<setinit $telefon['ContactCallCode'] = _args[2]>>
  2314. <<setinit $telefon['ContactCallSchedule'] = _args[3]>>
  2315. <!-- !!If file extension is not given, .png is assumed-->
  2316. <<if instr($telefon['ContactIcon'],'.') == 0>>
  2317. <<setinit $telefon['ContactIcon'] += '.png'>>
  2318. <</if>>
  2319. <!-- !!If path is not given, default phone icon path is assumed-->
  2320. <<if instr($telefon['ContactIcon'],'/') == 0>>
  2321. <<setinit $telefon['ContactIcon'] = 'images / $system / $phone / $icons / + $telefon['ContactIcon']>>
  2322. <</if>>
  2323. <!-- !!If Contact is not in available timeframe, we disable contact calling-->
  2324. <<if dyneval('$result = iif(<<$telefon["ContactCallSchedule"]>>,1,0)') = 0>>
  2325. <<setinit $telefon['ContactCallCode'] = "gs 'telefon', 'phone_call_reject'">>
  2326. <</if>>
  2327. <!-- FAILED TO CONVERT
  2328. $result = '<TR>
  2329. -----
  2330. <<set $result = ERROR: FAILED TO CONVERT LITERAL: """'<TR>""">>
  2331. -->
  2332. <<warn "CONVERSION ERROR edb5281e131fc51d862cca5d07e312c8">>
  2333. <TD><img src="<<$telefon[''ContactIcon'']>>" width="75"></TD>
  2334. <TD><<$telefon[''ContactNickName'']>></TD>
  2335. <TD align="right"><a href="exec:$callerid = ''<<$telefon[''ContactIcon'']>>'' & <<$telefon[''ContactCallCode'']>>"><b>Call</b></a></TD>
  2336. <!-- FAILED TO CONVERT
  2337. </TR>'
  2338. -----
  2339. ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """TR>'"""
  2340. -->
  2341. <<warn "CONVERSION ERROR 0eefe07fed739a6b0ee6d0d33049cbab">>
  2342. <</widget>>
  2343. :: telefonSMS_macro[widget]
  2344. <<widget 'telefonSMS'>>
  2345. <<setinit $telefon['SMSid'] = _args[0]>>
  2346. <<setinit $telefon['ContactIcon'] = _args[1]>>
  2347. <<setinit $telefon['ContactNickName'] = _args[2]>>
  2348. <<setinit $telefon['SMSTime'] = _args[3]>>
  2349. <<setinit $telefon['SMSStatus'] = _args[4]>>
  2350. <!-- !!If file extension is not given, .png is assumed-->
  2351. <<if instr($telefon['ContactIcon'],'.') == 0>>
  2352. <<setinit $telefon['ContactIcon'] += '.png'>>
  2353. <</if>>
  2354. <!-- !!If path is not given, default phone icon path is assumed-->
  2355. <<if instr($telefon['ContactIcon'],'/') == 0>>
  2356. <<setinit $telefon['ContactIcon'] = 'images / $system / $phone / $icons / + $telefon['ContactIcon']>>
  2357. <</if>>
  2358. <!-- !! unread will be bold-->
  2359. <<if getvar("$telefon['SMSStatus']") == 0>>
  2360. <<setinit $telefon['SMSstyle1'] = '<b>'>>
  2361. <<setinit $telefon['SMSstyle2'] = '</b>'>>
  2362. <<else>>
  2363. <<setinit $telefon['SMSstyle1'] = ''>>
  2364. <<setinit $telefon['SMSstyle2'] = ''>>
  2365. <</if>>
  2366. <!-- FAILED TO CONVERT
  2367. $result = '<TR>
  2368. -----
  2369. <<set $result = ERROR: FAILED TO CONVERT LITERAL: """'<TR>""">>
  2370. -->
  2371. <<warn "CONVERSION ERROR edb5281e131fc51d862cca5d07e312c8">>
  2372. <TD><img height=100 src="<<$telefon[''ContactIcon'']>>"></TD>
  2373. <TD><<$telefon[''SMSstyle1'']>><<$telefon[''ContactNickName'']>><<$telefon[''SMSstyle2'']>></TD>
  2374. <TD align="right"><<$telefon[''SMSstyle1'']>><a href="exec:gs ''telefon'', ''show_sms'', <<telefon[''SMSid'']>>"><<$telefon[''SMSTime'']>></a><<$telefon[''SMSstyle2'']>></TD>
  2375. <!-- FAILED TO CONVERT
  2376. <TD><<$telefon[''SMSstyle1'']>><a href="exec:gs ''telefon'', ''delete_sms'', <<telefon[''SMSid'']>>">Delete</a><<$telefon[''SMSstyle2'']>></TD>
  2377. -----
  2378. <TD><<$telefon[''SMSstyle1'']>><<link "Delete">><<gs 'telefon' 'delete_sms' ERROR: FAILED TO CONVERT LITERAL: """<<telefon['SMSid']>>""">><</link>><<$telefon[''SMSstyle2'']>></TD>
  2379. -->
  2380. <<warn "CONVERSION ERROR f47ba8c6ae6f1db0bd80af1885d33ceb">>
  2381. <!-- FAILED TO CONVERT
  2382. </TR>'
  2383. -----
  2384. ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """TR>'"""
  2385. -->
  2386. <<warn "CONVERSION ERROR 0eefe07fed739a6b0ee6d0d33049cbab">>
  2387. <</widget>>
  2388. :: telefoncontactsms_macro[widget]
  2389. <<widget 'telefoncontactsms'>>
  2390. <!-- !! Contact Row in phone contact list-->
  2391. <<setinit $telefon['ContactIcon'] = $contactIcon[_args[0]]>>
  2392. <<setinit $telefon['ContactNPCcode'] = $contact[_args[0]]>>
  2393. <!-- !!If file extension is not given, .png is assumed-->
  2394. <<if instr($telefon['ContactIcon'],'.') == 0>>
  2395. <<setinit $telefon['ContactIcon'] += '.png'>>
  2396. <</if>>
  2397. <!-- !!If path is not given, default phone icon path is assumed-->
  2398. <<if instr($telefon['ContactIcon'],'/') == 0>>
  2399. <<setinit $telefon['ContactIcon'] = 'images / $system / $phone / $icons / + $telefon['ContactIcon']>>
  2400. <</if>>
  2401. <<set $result = >>
  2402. <TR>
  2403. <TD><img src="<<$telefon[''ContactIcon'']>>" width="75"></TD>
  2404. <TD><<<<=$npcs.get($telefon[''ContactNPCcode'','nickname')>>]>></TD>
  2405. <TD><<link "New Message">><<gs 'telefon' 'npcSendListSms' '$telefon['ContactNPCcode']'>><</link>></TD>
  2406. <!-- FAILED TO CONVERT
  2407. </TR>'
  2408. -----
  2409. ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """TR>'"""
  2410. -->
  2411. <<warn "CONVERSION ERROR 0eefe07fed739a6b0ee6d0d33049cbab">>
  2412. <</widget>>
  2413. :: telefonsmsMessageToSend_macro[widget]
  2414. <<widget 'telefonsmsMessageToSend'>>
  2415. <<setinit $telefon['ContactNPCcode'] = $SMSSendContact[_args[0]]>>
  2416. <<set $result = >>
  2417. <TR>
  2418. <TD><<<<=$npcs.get($telefon[''ContactNPCcode'','nickname')>>]>></TD>
  2419. <TD><a href="exec: gs ''telefon'', ''smsSendMessage'', ''<<ARGS[0]>>''"><<$SMSSendMessage[ARGS[0]]>></a></TD>
  2420. <!-- FAILED TO CONVERT
  2421. </TR>'
  2422. -----
  2423. ERROR: FAILED TO CONVERT LITERAL: """<""" / ERROR: FAILED TO CONVERT LITERAL: """TR>'"""
  2424. -->
  2425. <<warn "CONVERSION ERROR 0eefe07fed739a6b0ee6d0d33049cbab">>
  2426. <</widget>>