telefon.qsrc 70 KB

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