mod_public_WC_rab_work_chystota_hotel.qsrc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # mod_public_WC_rab_work_chystota_hotel
  2. if $ARGS[0] = '2':
  3. $loc_arg = $ARGS[0]
  4. $location_type = 'indoors'
  5. $loc = 'mod_public_WC_rab_work_chystota_hotel'
  6. $metka = '2'
  7. gs 'stat'
  8. *clr & cla
  9. '<center><b><font color="maroon">"2 floor"</font></b></center>'
  10. '<center><img <<$set_imgh>> src="mod/public_WC/lisrab/.jpg"></center>'
  11. act 'Walk down the hall':
  12. temp = rand(ryska,20)
  13. minut += 10
  14. gs 'stat'
  15. if temp >= 15:
  16. temp = rand(4,20)
  17. 'On the door of the room <<temp>> a sign with a request for service.'
  18. act 'Try to enter the room':
  19. cla
  20. temp = rand(1,5)
  21. if temp <= 3:
  22. 'the door is closed.'
  23. act 'Remember the number and then tell Toha about it': bcilg = temp & gt $loc, $loc_arg
  24. else
  25. bcilg = 20
  26. gt 'mod_public_WC_rab_work_chystota_hotel', 'nomer'
  27. end
  28. end
  29. act 'Remember the number and then tell Toha about it': bcilg = temp & gt $loc, $loc_arg
  30. end
  31. end
  32. if bcil >= 4 and bcil <= 20:
  33. act 'Go to the room <<bcil>>':
  34. gt 'mod_public_WC_rab_work_chystota_hotel', 'nomer'
  35. end
  36. end
  37. act 'Get in the elevator': gt 'mod_public_WC_rab_work_chystota', 'hotel'
  38. end
  39. if $ARGS[0] = '3':
  40. $loc_arg = $ARGS[0]
  41. $location_type = 'indoors'
  42. $loc = 'mod_public_WC_rab_work_chystota_hotel'
  43. $metka = '3'
  44. gs 'stat'
  45. *clr & cla
  46. '<center><b><font color="maroon">"3 floor"</font></b></center>'
  47. '<center><img <<$set_imgh>> src="mod/public_WC/lisrab/.jpg"></center>'
  48. act 'Walk down the hall':
  49. temp = rand(ryska,20)
  50. minut += 10
  51. gs 'stat'
  52. if temp >= 15:
  53. temp = rand(21,30)
  54. 'On the door of the room <<temp>> a sign with a request for service.'
  55. act 'Try to enter the room':
  56. cla
  57. temp = rand(1,5)
  58. if temp <= 3:
  59. 'the door is closed.'
  60. act 'Remember the number and then tell Toha about it': bcilg = temp & gt $loc, $loc_arg
  61. else
  62. bcilg = 20
  63. gt 'mod_public_WC_rab_work_chystota_hotel', 'nomer'
  64. end
  65. end
  66. act 'Remember the number and then tell Toha about it': bcilg = temp & gt $loc, $loc_arg
  67. end
  68. end
  69. if bcil >= 21 and bcil <= 30:
  70. act 'Go to the room <<bcil>>':
  71. gt 'mod_public_WC_rab_work_chystota_hotel', 'nomer'
  72. end
  73. end
  74. act 'Get in the elevator': gt 'mod_public_WC_rab_work_chystota', 'hotel'
  75. end
  76. if $ARGS[0] = '4':
  77. $loc_arg = $ARGS[0]
  78. $location_type = 'indoors'
  79. $loc = 'mod_public_WC_rab_work_chystota_hotel'
  80. $metka = '4'
  81. gs 'stat'
  82. *clr & cla
  83. '<center><b><font color="maroon">"4 floor"</font></b></center>'
  84. '<center><img <<$set_imgh>> src="mod/public_WC/lisrab/.jpg"></center>'
  85. act 'Walk down the hall':
  86. temp = rand(ryska,20)
  87. minut += 10
  88. gs 'stat'
  89. if temp >= 15:
  90. temp = rand(37,37)
  91. 'On the door of the room <<temp>> a sign with a request for service.'
  92. act 'Try to enter the room':
  93. cla
  94. temp = rand(1,5)
  95. if temp <= 3:
  96. 'the door is closed.'
  97. act 'Remember the number and then tell Toha about it': bcilg = temp & gt $loc, $loc_arg
  98. else
  99. bcilg = 20
  100. gt 'mod_public_WC_rab_work_chystota_hotel', 'nomer'
  101. end
  102. end
  103. act 'Remember the number and then tell Toha about it': bcilg = temp & gt $loc, $loc_arg
  104. end
  105. end
  106. if bcil >= 31 and bcil <= 37:
  107. act 'Go to the room <<bcil>>':
  108. gt 'mod_public_WC_rab_work_chystota_hotel', 'nomer'
  109. end
  110. end
  111. act 'Get in the elevator': gt 'mod_public_WC_rab_work_chystota', 'hotel'
  112. end
  113. if $ARGS[0] = 'nomer':
  114. $location_type = 'indoors'
  115. $loc = 'mod_public_WC_rab_work_chystota_hotel'
  116. gs 'stat'
  117. *clr & cla
  118. '<center><b><font color="maroon">"Room <<bcil>>"</font></b></center>'
  119. '<center><img <<$set_imgh>> src="mod/public_WC/lisrab/.jpg"></center>'
  120. temp = rand(1,100)
  121. if (temp + bcilg) <= 70:
  122. bcilg = 0
  123. '-=WIP=-. В кімнаті ПУСТО.'
  124. else
  125. bcilg = 0
  126. '-=WIP=-. В кімнаті ХТОСЬ Є.'
  127. end
  128. act 'continue':
  129. bcil = 1
  130. minut += rand(15,95)
  131. cleaning_exp += rand (15,20)
  132. if $metka = '4': gt 'mod_public_WC_rab_work_chystota_hotel','4'
  133. if $metka = '3': gt 'mod_public_WC_rab_work_chystota_hotel','3'
  134. if $metka = '2': gt 'mod_public_WC_rab_work_chystota_hotel','2'
  135. end
  136. end
  137. --- mod_public_WC_rab_work_chystota_hotel ---------------------------------