noticeboard.qsrc 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. # noticeboard
  2. !! use gs 'noticeboard','start'
  3. $location_type = 'public_indoors'
  4. if $ARGS[0] = 'start':
  5. menu_off = 1
  6. gs 'saveposition'
  7. gt 'noticeboard','look'
  8. end
  9. if $ARGS[0] = 'look':
  10. if $set_imgh!'':givemeheight=val(mid($set_imgh,10,len($set_imgh)-9))/20 else givemeheight = 30
  11. NumberOfNewAdverts = 0
  12. $advert0 = func('noticeboard','test_advert0')
  13. $advert1 = func('noticeboard','test_advert1')
  14. $advert2 = func('noticeboard','test_advert2')
  15. $advert3 = func('noticeboard','test_advert3')
  16. $advert4 = func('noticeboard','test_advert4')
  17. $advert5 = func('noticeboard','test_advert5')
  18. $advert6 = func('noticeboard','test_advert6')
  19. !!$advert7 = func('noticeboard','test_advert7')
  20. !!$advert8 = func('noticeboard','test_advert8')
  21. !!$advert9 = func('noticeboard','test_advert9')
  22. $noticeboardmap = '<map name="noticemap">'
  23. $noticeboardmap += '<area shape="rect" coords="<<$advert0>>" href="exec:gt ''noticeboard'', ''advert0''" alt="--0--">'
  24. $noticeboardmap += '<area shape="rect" coords="<<$advert1>>" href="exec:gt ''noticeboard'', ''advert1''" alt="--1--">'
  25. $noticeboardmap += '<area shape="rect" coords="<<$advert2>>" href="exec:gt ''noticeboard'', ''advert2''" alt="--2--">'
  26. $noticeboardmap += '<area shape="rect" coords="<<$advert3>>" href="exec:gt ''noticeboard'', ''advert3''" alt="--3--">'
  27. $noticeboardmap += '<area shape="rect" coords="<<$advert4>>" href="exec:gt ''noticeboard'', ''advert4''" alt="--4--">'
  28. $noticeboardmap += '<area shape="rect" coords="<<$advert5>>" href="exec:gt ''noticeboard'', ''advert5''" alt="--5--">'
  29. $noticeboardmap += '<area shape="rect" coords="<<$advert6>>" href="exec:gt ''noticeboard'', ''advert6''" alt="--6--">'
  30. $noticeboardmap += '</map>'
  31. if $loc = 'pav_commercial':
  32. $name_of_the_picure = 'noticeboard_pavcommercial'
  33. elseif $loc = 'city_residential':
  34. $name_of_the_picure = 'noticeboard_street'
  35. elseif $loc = 'torgcentr':
  36. $name_of_the_picure = 'noticeboard_torgcentr'
  37. elseif $loc = 'city_industrial':
  38. $name_of_the_picure = 'noticeboard_nord'
  39. else
  40. $name_of_the_picure = 'noticeboard'
  41. end
  42. $noticeboardmap += '<center><img <<$set_imgh>> src="images/locations/shared/notboard/<<$name_of_the_picure>>.jpg" USEMAP="#noticemap"></center>'
  43. *pl $noticeboardmap
  44. killvar '$noticeboardmap'
  45. if NumberOfNewAdverts = 0: *nl 'There are no interesting adverts at the board.'
  46. if NumberOfNewAdverts = 1: *nl 'There is one interesting advert at the board.'
  47. if NumberOfNewAdverts > 1: *nl 'There are <<NumberOfNewAdverts>> interesting adverts at the board.'
  48. act 'Leave the board':
  49. killvar '$noticeboardmap'
  50. gt 'restoreposition'
  51. end
  52. end
  53. if $ARGS[0] = 'advert0':
  54. '<p><center><table><tr><td><img <<$set_imgh>> src="images/locations/shared/notboard/city/old town.jpg"></td></tr></table></center>'
  55. minut +=2
  56. gs 'stat'
  57. act 'Continue': gt 'noticeboard','look'
  58. !! 'Wanted dog walker!'
  59. !! act 'Call the number': gs 'telefon', 'phone_call_reject'
  60. !! act 'Record the phone number':
  61. !! gs 'telefon','Add_contact','images/system/phone/icons/icon_na.png',' gs ''telefon'', ''phone_call_reject'' '
  62. !! gt 'noticeboard','look'
  63. !! end
  64. end
  65. if $ARGS[0] = 'advert1':
  66. '<center><table bgcolor="#FFFF66" width="60%" cellspacing="30"><tr><th align="center"><h3>Pavlovsk police department newsletter</h3></th></tr><tr><td align="left">'+ _
  67. '&nbsp;&nbsp;&nbsp;The Pavlovsk police department recently investigated the rumours that a secret prostitution ring was being run from the Pavlovsk hotel.<p>'+ _
  68. '&nbsp;&nbsp;&nbsp;After a very thorough investigation, we found absolutely no evidence of this. The hotel manager, <b>Herman Leonidovich</b>, was interrogated and not only did we find him completely innocent, he also gave a substantial donation to our department. '+ _
  69. 'He ensured us that any young, pretty girl could apply for a maid job in their hotel and there is absolutely no chance that they would be forced to prostitute themselves.<p><p></td></tr></table></center>'
  70. minut +=2
  71. gs 'stat'
  72. act 'Continue': gt 'noticeboard','look'
  73. end
  74. if $ARGS[0] = 'advert2':
  75. '<p><center><table><tr><td><img <<$set_imgh>> src="images/locations/shared/notboard/pav/starletsposter.jpg"></td></tr></table></center>'
  76. !! '<center><table bgcolor="#FF66B2" width="60%" cellspacing="30"><tr><th align="center"><h4>'+ _
  77. !! '<p>Do you have the groove and something to prove? Then sign up for Dance Classes at the Pavlosk Community Center and show us what you''ve got!<p>'+ _
  78. !! 'Lessons range from beginner to expert level.<p>FUN for girls of any skill level.<p>'+ _
  79. !! 'And, if you''ve really know how to shake that money-maker, then audition for the<p><h2><b>Starlettes</b></h2>Pavlosk''s renowned dance club! If you''re accepted you could be travelling to a variety of cities and towns to make you hometown proud!<p><p>'+ _
  80. !! 'Stop by today and dance your problems away!</h4></th></tr></table></center>'
  81. minut +=2
  82. gs 'stat'
  83. act 'Continue': gt 'noticeboard','look'
  84. end
  85. if $ARGS[0] = 'advert3':
  86. '<p><center><table><tr><td><img <<$set_imgh>> src="images/locations/shared/notboard/pav/therapy.jpg"></td></tr></table></center>'
  87. minut +=2
  88. gs 'stat'
  89. act 'Continue': gt 'noticeboard','look'
  90. end
  91. if $ARGS[0] = 'advert4':
  92. '<p><center><table><tr><td><img <<$set_imgh>> src="images/locations/shared/notboard/city/diner.jpg"></td></tr></table></center>'
  93. minut +=2
  94. gs 'stat'
  95. act 'Continue': gt 'noticeboard','look'
  96. end
  97. if $ARGS[0] = 'advert5':
  98. '<p><center><table><tr><td><img <<$set_imgh>> src="images/locations/shared/notboard/city/singing.jpg"></td></tr></table></center>'
  99. minut +=2
  100. gs 'stat'
  101. act 'Continue': gt 'noticeboard','look'
  102. end
  103. if $ARGS[0] = 'advert6':
  104. '<p><center><table><tr><td><img <<$set_imgh>> src="images/locations/shared/notboard/city/sports.jpg"></td></tr></table></center>'
  105. minut +=2
  106. gs 'stat'
  107. act 'Continue': gt 'noticeboard','look'
  108. end
  109. !! possible coordinates
  110. !! upper row
  111. !! 1 '<<3*givemeheight>>,<<2*givemeheight>>,<<7*givemeheight>>,<<8*givemeheight>>' - taken by advert0
  112. !! 2 '<<8*givemeheight>>,<<2*givemeheight>>,<<12*givemeheight>>,<<8*givemeheight>>' - taken by advert3
  113. !! 3 '<<13*givemeheight>>,<<2*givemeheight>>,<<17*givemeheight>>,<<8*givemeheight>>' - taken by advert5
  114. !! 4 '<<18*givemeheight>>,<<2*givemeheight>>,<<22*givemeheight>>,<<8*givemeheight>>' - taken by advert2
  115. !! lower row
  116. !! 5 '<<3*givemeheight>>,<<12*givemeheight>>,<<7*givemeheight>>,<<18*givemeheight>>' - taken by advert6
  117. !! 6 '<<8*givemeheight>>,<<12*givemeheight>>,<<12*givemeheight>>,<<18*givemeheight>>' - taken by advert1
  118. !! 7 '<<13*givemeheight>>,<<12*givemeheight>>,<<17*givemeheight>>,<<18*givemeheight>>'
  119. !! 8 '<<18*givemeheight>>,<<12*givemeheight>>,<<22*givemeheight>>,<<18*givemeheight>>' - taken by advert4
  120. if $ARGS[0] = 'test_advert0':
  121. if $loc ! 'pav_commercial':
  122. $result = '<<3*givemeheight>>,<<2*givemeheight>>,<<7*givemeheight>>,<<8*givemeheight>>'
  123. NumberOfNewAdverts += 1
  124. else
  125. $result = '0,0,0,0'
  126. end
  127. end
  128. if $ARGS[0] = 'test_advert1':
  129. if $loc = 'pav_commercial':
  130. $result = '<<8*givemeheight>>,<<12*givemeheight>>,<<12*givemeheight>>,<<18*givemeheight>>'
  131. NumberOfNewAdverts += 1
  132. else
  133. $result = '0,0,0,0'
  134. end
  135. end
  136. if $ARGS[0] = 'test_advert2':
  137. if $loc = 'pav_commercial':
  138. $result = '<<18*givemeheight>>,<<2*givemeheight>>,<<22*givemeheight>>,<<8*givemeheight>>'
  139. NumberOfNewAdverts += 1
  140. else
  141. $result = '0,0,0,0'
  142. end
  143. end
  144. if $ARGS[0] = 'test_advert3':
  145. if $loc = 'pav_commercial':
  146. $result = '<<8*givemeheight>>,<<2*givemeheight>>,<<12*givemeheight>>,<<8*givemeheight>>'
  147. NumberOfNewAdverts += 1
  148. else
  149. $result = '0,0,0,0'
  150. end
  151. end
  152. if $ARGS[0] = 'test_advert4':
  153. if $loc ! 'pav_commercial':
  154. $result = '<<18*givemeheight>>,<<12*givemeheight>>,<<22*givemeheight>>,<<18*givemeheight>>'
  155. NumberOfNewAdverts += 1
  156. else
  157. $result = '0,0,0,0'
  158. end
  159. end
  160. if $ARGS[0] = 'test_advert5':
  161. if $loc ! 'pav_commercial':
  162. $result = '<<13*givemeheight>>,<<2*givemeheight>>,<<17*givemeheight>>,<<8*givemeheight>>'
  163. NumberOfNewAdverts += 1
  164. else
  165. $result = '0,0,0,0'
  166. end
  167. end
  168. if $ARGS[0] = 'test_advert6':
  169. if $loc ! 'pav_commercial':
  170. $result = '<<3*givemeheight>>,<<12*givemeheight>>,<<7*givemeheight>>,<<18*givemeheight>>'
  171. NumberOfNewAdverts += 1
  172. else
  173. $result = '0,0,0,0'
  174. end
  175. end
  176. --- noticeboard ---------------------------------