arkadi_fyodorov_schedule.qsrc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # arkadi_fyodorov_schedule
  2. !! 2023-05-26
  3. !! His schedule:
  4. !ArkadiLocCity tells us where Arkadi is located
  5. !locat['A156'] =
  6. !----------------------------------------------
  7. !locat['A156'] = 0 (Arkadi not home Fri and Sat 20:00 for rest of night)
  8. !locat['A156'] = 1 (Arkadi in the hallway)
  9. !locat['A156'] = 2 (Arkadi in Anushka''s room)
  10. !locat['A156'] = 3 (Arkadi in Radomir''s room)
  11. !locat['A156'] = 4 (Arkadi in the kitchen)
  12. !locat['A156'] = 5 (Arkadi in the livingroom)
  13. !locat['A156'] = 6 (Arkadi in his and Valentin''s room)
  14. !locat['A156'] = 7 (Arkadi in the bathroom)
  15. !locat['A156'] = 8 (Arkadi is in the garage with the band Wed 18-23)
  16. !locat['A156'] = 9 (Arkadi is at work, factory Mon-Fri 8 to 17)
  17. !---------------------------------------------
  18. !! Todo !!Arkadi is home Mon-Tues and Thurs from 18:00 for rest of night, Sun all day
  19. if week = 1:
  20. if hour >= 8 and hour < 17:
  21. locat['A156'] = 9
  22. end
  23. elseif week = 2:
  24. if hour >= 8 and hour < 17:
  25. locat['A156'] = 9
  26. end
  27. elseif week = 3:
  28. if hour >= 8 and hour < 17:
  29. locat['A156'] = 9
  30. elseif hour >= 18 and hour < 23:
  31. locat['A156'] = 8
  32. end
  33. elseif week = 4:
  34. if hour >= 8 and hour < 17:
  35. locat['A156'] = 9
  36. end
  37. elseif week = 5:
  38. if hour >= 8 and hour < 17:
  39. locat['A156'] = 9
  40. elseif hour >= 20:
  41. locat['A156'] = 0
  42. end
  43. elseif week = 6:
  44. if hour >= 20:
  45. locat['A156'] = 0
  46. end
  47. elseif week = 7:
  48. end
  49. if locat['A156'] > 0 and locat['A156'] < 8:
  50. $ArkadiLocCity = 'home'
  51. else
  52. $ArkadiLocCity = 'notHome'
  53. end
  54. if $ARGS[0] = 'getLocation':
  55. !Set the text for the current NPC ID
  56. if locat['A156'] = 0:
  57. npcLocation['A144'] = 'Arkadi not home Fri and Sat 20:00 for rest of night.'
  58. elseif locat['A156'] = 1:
  59. npcLocation['A144'] = 'Arkadi in the hallway.'
  60. elseif locat['A156'] = 2:
  61. npcLocation['A144'] = 'Arkadi in Anushka''s room.'
  62. elseif locat['A156'] = 3:
  63. npcLocation['A144'] = 'Arkadi in Radomir''s room.'
  64. elseif locat['A156'] = 4:
  65. npcLocation['A144'] = 'Arkadi in the kitchen.'
  66. elseif locat['A156'] = 5:
  67. npcLocation['A144'] = 'Arkadi in the livingroom.'
  68. elseif locat['A156'] = 6:
  69. npcLocation['A144'] = 'Arkadi in Valentin''s and his room.'
  70. elseif locat['A156'] = 7:
  71. npcLocation['A144'] = 'Arkadi in the bathroom.'
  72. elseif locat['A156'] = 8:
  73. npcLocation['A144'] = 'Arkadi is in the garage with the band.'
  74. elseif locat['A156'] = 9:
  75. npcLocation['A144'] = 'Arkadi is at work, mechanic Mon-Fri 8 to 17.'
  76. elseif locat['A156'] = 10:
  77. npcLocation['A144'] = 'Arkadi is in the garage working on his bike Mon 17-23.'
  78. end
  79. end
  80. --- arkadi_fyodorov_schedule ---------------------------------