1
0

SMS_schedules.qsrc 1.3 KB

123456789101112131415161718192021222324252627
  1. # SMS_schedules
  2. if $ARGS[0] = 'cikl':
  3. if nerd_game['invite_day'] < daystart and week = 1:
  4. if nerd_game['first_SMS_received'] = 0: if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'icon_na', 1
  5. gs 'telefon', 'SetSMSSchedule', 'A152', "", "0", "gs 'nerd_game_night', 'game_invite_sms_switch'", "totminut > <<totminut + (11 - hour) * 60 + rand(20, 280) - minut>>"
  6. end
  7. if year = 2017 and month = 6 and gopnikbandQW['on_tour'] = 0:
  8. gopnikbandQW['on_tour'] = 1
  9. if npc_rel['A144'] >= 50 and arrpos('$contact', 'A144') < 0: gs 'telefon', 'AddContact', 'A144', 'icon_na', 1
  10. elseif gopnikbandQW['on_tour'] = 1 and year = 2017 and month = 8 and day => 19:
  11. gopnikbandQW['on_tour'] = 0
  12. end
  13. if gopnikbandQW['on_tour'] = 1 and npc_rel['A144'] >= 50 and anushkaQW['tour_SMS_send'] < daystart and anushkaQW['num_tour_SMS_send'] < 11:
  14. if anushkaQW['num_tour_SMS_send'] <= 9 and week = 6:
  15. gs 'telefon', 'SetSMSSchedule', 'A144', "", "0", "gs 'band_tour_anushka_SMS', 'start'", "totminut > <<totminut + (12 - hour) * 60 + rand(20, 100) - minut>>"
  16. elseif anushkaQW['num_tour_SMS_send'] = 10 and week = 2:
  17. gs 'telefon', 'SetSMSSchedule', 'A144', "", "0", "gs 'band_tour_anushka_SMS', 'start'", "totminut > <<totminut + (19 - hour) * 60 + rand(20, 100) - minut>>"
  18. end
  19. end
  20. end
  21. --- SMS_schedules ------------------------------------------