radomir_popov_schedule.qsrc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # radomir_popov_schedule
  2. !! 2023-05-26
  3. !! His schedule:
  4. !RadomirLocCity tells us where Radomir is located
  5. !locat['A154']
  6. !----------------------------------------------
  7. !locat['A154'] = 0 (Radomir not home Fri and Sat 20:00 for rest of night)
  8. !locat['A154'] = 1 (Radomir in the hallway)
  9. !locat['A154'] = 2 (Radomir in Anushka''s room)
  10. !locat['A154'] = 3 (Radomir in his room)
  11. !locat['A154'] = 4 (Radomir in the kitchen)
  12. !locat['A154'] = 5 (Radomir in the livingroom)
  13. !locat['A154'] = 6 (Radomir in Valentin and Arkadi''s room)
  14. !locat['A154'] = 7 (Radomir in the bathroom)
  15. !locat['A154'] = 8 (Radomir is in the garage with the band Wed 18-23)
  16. !locat['A154'] = 9 (Radomir is at work at music store in mall Mon-Fri 8 to 17)
  17. !---------------------------------------------
  18. !! locat['A154'] = 3 An init should set this, bur here we want to preserve the current location.
  19. !! For the moment based on the standard schedule. Should be adjusted to City schedule.
  20. ! TODO-DONE. Fix for:
  21. !!Radomir is home Mon-Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, Sun all day
  22. if week = 1:
  23. if hour >= 8 and hour < 17:
  24. locat['A154'] = 9
  25. elseif hour > 18:
  26. locat['A154'] = 3
  27. end
  28. elseif week = 2:
  29. if hour >= 8 and hour < 17:
  30. locat['A154'] = 9
  31. elseif hour > 18:
  32. locat['A154'] = 3
  33. end
  34. elseif week = 3:
  35. if hour >= 8 and hour < 17:
  36. locat['A154'] = 9
  37. elseif hour >= 18 and hour < 23:
  38. locat['A154'] = 8
  39. end
  40. elseif week = 4:
  41. if hour >= 8 and hour < 17:
  42. locat['A154'] = 9
  43. elseif hour > 18:
  44. locat['A154'] = 3
  45. end
  46. elseif week = 5:
  47. if hour >= 8 and hour < 17:
  48. locat['A154'] = 9
  49. elseif hour >= 20:
  50. locat['A154'] = 0
  51. end
  52. elseif week = 6:
  53. if hour >= 8 and hour <20:
  54. locat['A154'] = 3
  55. elseif hour >= 20:
  56. locat['A154'] = 0
  57. end
  58. elseif week = 7:
  59. locat['A154'] = 3
  60. end
  61. if locat['A154'] > 0 and locat['A154'] < 8:
  62. $RadomirLocCity = 'home'
  63. else
  64. $RadomirLocCity = 'notHome'
  65. end
  66. if $ARGS[0] = 'getLocation':
  67. !Set the text for the current NPC ID
  68. if locat['A154'] = 0:
  69. npcLocation['A144'] = 'Radomir not home Fri and Sat 20:00 for rest of night.'
  70. elseif locat['A154'] = 1:
  71. npcLocation['A144'] = 'Radomir in the hallway.'
  72. elseif locat['A154'] = 2:
  73. npcLocation['A144'] = 'Radomir in Anushka''s room.'
  74. elseif locat['A154'] = 3:
  75. npcLocation['A144'] = 'Radomir in Radomir''s room.'
  76. elseif locat['A154'] = 4:
  77. npcLocation['A144'] = 'Radomir in the kitchen.'
  78. elseif locat['A154'] = 5:
  79. npcLocation['A144'] = 'Radomir in the livingroom.'
  80. elseif locat['A154'] = 6:
  81. npcLocation['A144'] = 'Radomir in Valentin''s and Arkadi''s room.'
  82. elseif locat['A154'] = 7:
  83. npcLocation['A144'] = 'Radomir in the bathroom.'
  84. elseif locat['A154'] = 8:
  85. npcLocation['A144'] = 'Radomir is in the garage with the band.'
  86. elseif locat['A154'] = 9:
  87. npcLocation['A144'] = 'Radomir is at work, mechanic Mon-Fri 8 to 17.'
  88. elseif locat['A154'] = 10:
  89. npcLocation['A144'] = 'Radomir is in the garage working on his bike Mon 17-23.'
  90. end
  91. end
  92. --- radomir_popov_schedule ---------------------------------