miroslave_schedule.qsrc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # miroslave_schedule
  2. !MiraLoc tells us where Mira is Located
  3. !----------------------------------------------
  4. !MiraLoc = 0 (Mira at home) -> locat['A60'] = 0
  5. !MiraLoc = 1 (Mira at river) -> locat['A60'] = 1
  6. !MiraLoc = 2 (Mira at meadow) -> locat['A60'] = 2
  7. !MiraLoc = 3 (Mira at forest) -> locat['A60'] = 3
  8. !MiraLoc = 4 (Mira at field) -> locat['A60'] = 4
  9. !MiraLoc = 41 (Mira at field) -> locat['A60'] = 41
  10. !MiraLoc = 42 (Mira at field) -> locat['A60'] = 42
  11. !MiraLoc = 43 (Mira at field) -> locat['A60'] = 43
  12. !MiraLoc = 5 (Mira with gop) -> locat['A60'] = 5
  13. !MiraLoc = 6 (Mira at Gadhouse) -> locat['A60'] = 6
  14. !MiraLoc = 7 (Mira at Gaddvor) -> locat['A60'] = 7
  15. !MiraLoc = 8 (Mira at highway) -> locat['A60'] = 8
  16. !MiraLoc = 9 (Mira with Sveta) -> locat['A60'] = 9
  17. !! NEW
  18. !locat['A60'] = 0 Home
  19. !locat['A60'] = 1 Gad
  20. !locat['A60'] = 2 River
  21. !locat['A60'] = 3 Forest
  22. !locat['A60'] = 31 Meadow
  23. !locat['A60'] = 4 Field
  24. !locat['A60'] = 41 Field
  25. !locat['A60'] = 42 Field
  26. !locat['A60'] = 43 Field
  27. !locat['A60'] = 5 Gopniks
  28. !locat['A60'] = 6 Grandparents house
  29. !locat['A60'] = 61 Grandparents yard
  30. !locat['A60'] = 7 Highway
  31. !locat['A60'] = 9 With Sveta
  32. !! Cikl: mira_sched = rand(0, 3)
  33. if MiraLoc = 9:
  34. !! If Mira is with you, she''ll stick with you.
  35. MiraLoc = 9
  36. else
  37. !! From mirafather and miroslavahome
  38. if mira_no > 0:
  39. locat['A60'] = 0
  40. else
  41. if sunWeather = 0:
  42. if npc_rel['A60'] >= 15:
  43. if mira_sched = 1:
  44. locat['A60'] = 6
  45. else
  46. locat['A60'] = 0
  47. end
  48. else
  49. MiraLoc = 0
  50. end
  51. !!Or MiraLoc = 6?
  52. else
  53. if hour < 8:
  54. locat['A60'] = 0
  55. elseif hour >= 20:
  56. if npc_rel['A60'] >= "SOMETHING":
  57. locat['A60'] = 5
  58. else
  59. locat['A60'] = 0
  60. end
  61. else
  62. if mira_shed = 1:
  63. !! 8-10, 10-12, 12-14, 14-16, 16-18, 18-20
  64. !! Sched0: River, River, Forest, Meadow, River, home
  65. if hour < 10:
  66. locat['A60'] = 2
  67. elseif hour < 12:
  68. locat['A60'] = 2
  69. elseif hour < 14:
  70. locat['A60'] = 3
  71. elseif hour < 16:
  72. locat['A60'] = 31
  73. elseif hour < 18:
  74. locat['A60'] = 2
  75. else
  76. locat['A60'] = 0
  77. end
  78. elseif mira_shed = 2:
  79. end
  80. end
  81. end
  82. if npc_QW['A60'] > 15 and hour >= 16 and hour <= 19:
  83. locat['A60'] = 8
  84. elseif locat['A60'] ! 0:
  85. if npc_rel['A60'] = 0:
  86. locat['A60'] = 1
  87. else
  88. if month >= 4 and month <= 10 and hour >= 8 and hour <= 18:
  89. locat['A60'] = 1
  90. elseif hour >= 8 and hour <= 22:
  91. locat['A60'] = 0
  92. end
  93. end
  94. end
  95. end
  96. end
  97. !New
  98. if $ARGS[0] = 'getLocation':
  99. if locat['A60'] = 0:
  100. $npcLocation['A60'] = 'Mira is at home'
  101. elseif locat['A60'] = 1:
  102. $npcLocation['A60'] = 'Mira is walking around Gad'
  103. elseif locat['A60'] = 2:
  104. $npcLocation['A60'] = 'Mira is at the river'
  105. elseif locat['A60'] = 3:
  106. $npcLocation['A60'] = 'Mira is at forest'
  107. elseif locat['A60'] = 31:
  108. $npcLocation['A60'] = 'Mira is at the meadow'
  109. elseif locat['A60'] = 4:
  110. $npcLocation['A60'] = 'Mira is at field'
  111. elseif locat['A60'] = 41:
  112. $npcLocation['A60'] = 'Mira is at field'
  113. elseif locat['A60'] = 42:
  114. $npcLocation['A60'] = 'Mira is at field'
  115. elseif locat['A60'] = 43:
  116. $npcLocation['A60'] = 'Mira is at field'
  117. elseif locat['A60'] = 5:
  118. $npcLocation['A60'] = 'Mira is with gopniks'
  119. elseif locat['A60'] = 6:
  120. $npcLocation['A60'] = 'Mira is at your Grandparents house'
  121. elseif locat['A60'] = 61:
  122. $npcLocation['A60'] = 'Mira is in your Grandparents yard'
  123. elseif locat['A60'] = 7:
  124. $npcLocation['A60'] = 'Mira is at the highway'
  125. elseif locat['A60'] = 9:
  126. $npcLocation['A60'] = 'Mira is with you'
  127. end
  128. end
  129. !{!OLD
  130. if $ARGS[0] = 'getLocation':
  131. if locat['A60'] = 0:
  132. $npcLocation['A60'] = 'Mira is at home'
  133. elseif locat['A60'] = 1:
  134. $npcLocation['A60'] = 'Mira is at river'
  135. elseif locat['A60'] = 2:
  136. $npcLocation['A60'] = 'Mira is at meadow'
  137. elseif locat['A60'] = 3:
  138. $npcLocation['A60'] = 'Mira is at forest'
  139. elseif locat['A60'] = 4:
  140. $npcLocation['A60'] = 'Mira is at field'
  141. elseif locat['A60'] = 41:
  142. $npcLocation['A60'] = 'Mira is at field'
  143. elseif locat['A60'] = 42:
  144. $npcLocation['A60'] = 'Mira is at field'
  145. elseif locat['A60'] = 43:
  146. $npcLocation['A60'] = 'Mira is at field'
  147. elseif locat['A60'] = 5:
  148. $npcLocation['A60'] = 'Mira is at gop'
  149. elseif locat['A60'] = 6:
  150. $npcLocation['A60'] = 'Mira is at gadhouse'
  151. elseif locat['A60'] = 7:
  152. $npcLocation['A60'] = 'Mira is at gaddvor'
  153. elseif locat['A60'] = 8:
  154. $npcLocation['A60'] = 'Mira is at the highway'
  155. elseif locat['A60'] = 9:
  156. $npcLocation['A60'] = 'Mira is with you'
  157. end
  158. end
  159. }
  160. --- miroslave_schedule ---------------------------------