telefon.qsrc 66 KB

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