phone.tw 106 KB

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