2022-11-22 15:24:12 +07:00
|
|
|
Var MainfileSize = 0
|
2023-03-26 21:19:33 +07:00
|
|
|
DEBUGVAR BoxID
|
2023-11-10 16:05:27 +07:00
|
|
|
Var EventMatch = 0
|
2023-03-26 21:19:33 +07:00
|
|
|
|
2023-06-15 09:56:20 +07:00
|
|
|
|
2023-11-10 16:05:27 +07:00
|
|
|
|
2025-01-29 18:39:17 +07:00
|
|
|
; Strawberry Series, 7 - 31 Jan
|
|
|
|
|
Var StrawberrySeriesPro = 0
|
|
|
|
|
Var StrawberrySeriesMenu = 0
|
2024-07-23 18:01:51 +07:00
|
|
|
|
2025-02-18 17:28:01 +07:00
|
|
|
; zone logic flag event
|
2025-01-29 18:39:17 +07:00
|
|
|
If SystemDateMonthInt = 1 Then
|
|
|
|
|
Var LuckyDrawCampaign = 1
|
|
|
|
|
|
|
|
|
|
If SystemDateDayInt <= 6 Then
|
|
|
|
|
Var ThickTeaByBrewerPro = 1
|
|
|
|
|
Var ThickTeaByBrewerBanner = 1
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If SystemDateDayInt >= 7 Then
|
|
|
|
|
Var StrawberrySeriesPro = 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
2024-07-25 17:49:10 +07:00
|
|
|
|
|
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
If SystemDateMonthInt = 2 Then
|
|
|
|
|
Var OvaltineSchoolPro = 1
|
2024-07-25 17:49:10 +07:00
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
If SystemDateDayInt >= 10 Then
|
|
|
|
|
If SystemDateDayInt <= 23 Then
|
|
|
|
|
Var RedStringOfFatePro = 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
2023-10-16 17:50:32 +07:00
|
|
|
EndIf
|
2023-03-28 14:44:43 +07:00
|
|
|
|
2025-02-18 17:28:01 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
If SystemDateMonthInt = 2 Then
|
|
|
|
|
Var OvaltineSchoolPro = 1
|
|
|
|
|
|
|
|
|
|
If SystemDateDayInt >= 10 Then
|
|
|
|
|
If SystemDateDayInt <= 23 Then
|
|
|
|
|
Var RedStringOfFatePro = 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If SystemDateMonthInt = 3 Then
|
2025-02-27 11:10:35 +07:00
|
|
|
If SystemDateDayInt >= 10 Then
|
2025-02-18 17:28:01 +07:00
|
|
|
Var SwensenPro = 1
|
|
|
|
|
EndIf
|
2025-02-27 11:10:35 +07:00
|
|
|
|
|
|
|
|
Var CoconutMilkPro = 1
|
2025-02-18 17:28:01 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
; zone block logic follow ingredent
|
|
|
|
|
|
|
|
|
|
|
2025-01-28 16:10:05 +07:00
|
|
|
DEBUGVAR HaveIngredientOvaltine
|
|
|
|
|
If HaveIngredientOvaltine = "true" Then
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-01-28 15:22:27 +07:00
|
|
|
Else
|
|
|
|
|
Var OvaltineSchoolPro = 0
|
|
|
|
|
Var RedStringOfFatePro = 0
|
|
|
|
|
|
|
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-01-28 16:10:05 +07:00
|
|
|
DEBUGVAR OvaltineSchoolPro
|
|
|
|
|
DEBUGVAR RedStringOfFatePro
|
|
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
Var MainAdvertiseRunSlot = 0
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
If MainAdvertiseShowSlot = "" Then
|
|
|
|
|
Var MainAdvertiseShowSlot = 0
|
2024-12-04 22:18:22 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2025-01-29 18:39:17 +07:00
|
|
|
Var MainAdvertiseFileName[0] = ""
|
|
|
|
|
Var MainAdvertiseFileName[1] = ""
|
|
|
|
|
Var MainAdvertiseFileName[2] = ""
|
|
|
|
|
Var MainAdvertiseFileName[3] = ""
|
|
|
|
|
Var MainAdvertiseFileName[4] = ""
|
|
|
|
|
Var MainAdvertiseFileName[5] = ""
|
|
|
|
|
|
2025-03-05 14:03:57 +07:00
|
|
|
|
|
|
|
|
; new file size
|
2025-02-24 11:27:49 +07:00
|
|
|
If brewing_adv11_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv11_long.mp4" brewing_adv11_long_size
|
|
|
|
|
EndIf
|
2025-03-06 16:00:09 +07:00
|
|
|
|
|
|
|
|
If brewing_adv11_long_size > 0 Then
|
|
|
|
|
If brewing_adv11_long_size = 9461309 Then
|
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv11_long.mp4" brewing_adv11_long_size
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2025-02-24 11:27:49 +07:00
|
|
|
DEBUGVAR brewing_adv11_long_size
|
2025-03-05 14:03:57 +07:00
|
|
|
|
2025-03-06 16:00:09 +07:00
|
|
|
If brewing_adv11_long_size = 9461309 Then
|
2025-02-24 11:27:49 +07:00
|
|
|
If CoconutMilkPro = 1 Then
|
|
|
|
|
|
|
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv11_long.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
If brewing_adv13_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv13_long.mp4" brewing_adv13_long_size
|
2024-12-04 22:18:22 +07:00
|
|
|
EndIf
|
2025-01-27 15:36:51 +07:00
|
|
|
DEBUGVAR brewing_adv13_long_size
|
|
|
|
|
If brewing_adv13_long_size = 3789806 Then
|
|
|
|
|
If StrawberrySeriesPro = 1 Then
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv13_long.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
|
2025-02-24 11:27:49 +07:00
|
|
|
|
|
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
If brewing_adv14_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv14_long.mp4" brewing_adv14_long_size
|
2024-11-20 15:07:07 +07:00
|
|
|
EndIf
|
2025-01-27 15:36:51 +07:00
|
|
|
DEBUGVAR brewing_adv14_long_size
|
|
|
|
|
If brewing_adv14_long_size = 5353047 Then
|
|
|
|
|
If OvaltineSchoolPro = 1 Then
|
2024-11-25 17:16:16 +07:00
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv14_long.mp4"
|
2024-12-04 22:18:22 +07:00
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2024-12-23 18:09:03 +07:00
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
|
|
|
|
|
If brewing_adv15_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv15_long.mp4" brewing_adv15_long_size
|
2024-12-23 18:09:03 +07:00
|
|
|
EndIf
|
2025-01-27 15:36:51 +07:00
|
|
|
DEBUGVAR brewing_adv15_long_size
|
|
|
|
|
If brewing_adv15_long_size = 5579052 Then
|
|
|
|
|
If RedStringOfFatePro = 1 Then
|
2024-12-23 18:09:03 +07:00
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv15_long.mp4"
|
2024-12-23 18:09:03 +07:00
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2025-01-27 15:36:51 +07:00
|
|
|
|
2025-02-18 17:28:01 +07:00
|
|
|
If brewing_adv16_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv16.mp4" brewing_adv16_size
|
2024-12-23 18:09:03 +07:00
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-02-18 17:28:01 +07:00
|
|
|
|
|
|
|
|
DEBUGVAR brewing_adv16_size
|
|
|
|
|
If brewing_adv16_size = 7422861 Then
|
|
|
|
|
If GiftNewYearEnable = 1 Then
|
|
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv16.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
2024-12-04 22:18:22 +07:00
|
|
|
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
2024-11-18 10:38:51 +07:00
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
2025-03-04 17:48:26 +07:00
|
|
|
Var PearRequest1 = 0
|
|
|
|
|
If BoxID = 201729 Then
|
|
|
|
|
Var PearRequest1 = 1
|
|
|
|
|
EndIf
|
|
|
|
|
If BoxID = 201714 Then
|
|
|
|
|
Var PearRequest1 = 1
|
2024-12-04 22:18:22 +07:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2025-03-04 17:48:26 +07:00
|
|
|
If PearRequest1 = 1 Then
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-03-04 17:48:26 +07:00
|
|
|
Else
|
|
|
|
|
If brewing_adv17_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv17_long.mp4" brewing_adv17_long_size
|
2024-12-04 22:18:22 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2025-03-04 17:48:26 +07:00
|
|
|
DEBUGVAR brewing_adv17_long_size
|
|
|
|
|
If brewing_adv17_long_size = 4984284 Then
|
|
|
|
|
If SwensenPro = 1 Then
|
|
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv17_long.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 0
|
|
|
|
|
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
2024-12-04 22:18:22 +07:00
|
|
|
|
2025-02-18 17:28:01 +07:00
|
|
|
|
|
|
|
|
If brewing_adv21_long_size = "" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/brewing_adv21_long.mp4" brewing_adv21_long_size
|
|
|
|
|
EndIf
|
|
|
|
|
DEBUGVAR brewing_adv21_long_size
|
|
|
|
|
If brewing_adv21_long_size = 6507746 Then
|
|
|
|
|
If ThickTeaByBrewerPro = 1 Then
|
|
|
|
|
|
|
|
|
|
Var MainAdvertiseFileName[MainAdvertiseRunSlot] = "ROOT/taobin_project/video/brewing_adv21_long.mp4"
|
|
|
|
|
Var MainAdvertiseVideoEnd[MainAdvertiseRunSlot] = 1
|
|
|
|
|
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
Var MainAdvertiseRunSlot = MainAdvertiseRunSlot + 1
|
|
|
|
|
|
|
|
|
|
Var EventTurnOn = 1
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-01-22 15:57:35 +07:00
|
|
|
DEBUGVAR MainAdvertiseShowSlot
|
|
|
|
|
DEBUGVAR MainAdvertiseRunSlot
|
2024-12-04 22:18:22 +07:00
|
|
|
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
; final call
|
|
|
|
|
; Protect edge of promotion.
|
|
|
|
|
If MainAdvertiseShowSlot < MainAdvertiseRunSlot Then
|
|
|
|
|
Var VideoMainPage = MainAdvertiseFileName[MainAdvertiseShowSlot]
|
|
|
|
|
If MainAdvertiseVideoEnd[MainAdvertiseShowSlot] = 0 Then
|
|
|
|
|
Var CountDownPauseVideoEnable = "ignore"
|
|
|
|
|
Else
|
|
|
|
|
Var CountDownPauseVideoEnable = ""
|
|
|
|
|
EndIf
|
|
|
|
|
Var MainAdvertiseShowSlot = MainAdvertiseShowSlot + 1
|
|
|
|
|
Else
|
|
|
|
|
Var MainAdvertiseShowSlot = 0
|
|
|
|
|
Var VideoMainPage = MainAdvertiseFileName[MainAdvertiseShowSlot]
|
|
|
|
|
If MainAdvertiseVideoEnd[MainAdvertiseShowSlot] = 0 Then
|
|
|
|
|
Var CountDownPauseVideoEnable = "ignore"
|
|
|
|
|
Else
|
|
|
|
|
Var CountDownPauseVideoEnable = ""
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
2025-01-22 15:57:35 +07:00
|
|
|
If VideoMainPage = "" Then
|
|
|
|
|
Var EventTurnOn = 0
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-12-04 22:18:22 +07:00
|
|
|
DEBUGVAR MainAdvertiseRunSlot
|
|
|
|
|
DEBUGVAR MainAdvertiseShowSlot
|
|
|
|
|
|
|
|
|
|
DEBUGVAR VideoMainPage
|
2025-01-22 15:57:35 +07:00
|
|
|
DEBUGVAR EventTurnOn
|
2024-12-04 22:18:22 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-16 17:50:32 +07:00
|
|
|
If EventTurnOn = 1 Then
|
2024-12-04 14:24:00 +07:00
|
|
|
Var CurrentMainVideoTemp = 1
|
|
|
|
|
;Var MainPageEventWithTimeout = 25
|
|
|
|
|
Var ShowButtonClickFull = "Invisible"
|
|
|
|
|
|
|
|
|
|
Var img_rest_main_page = "ROOT/taobin_project/image/main_page/bn_main_page_start.png"
|
|
|
|
|
Var MemberButtonFileNameRest = "ROOT/taobin_project/image/main_page/bn_main_page_member.png"
|
|
|
|
|
Var img_reset_topup = "ROOT/taobin_project/image/main_page/bn_main_page_topup.png"
|
|
|
|
|
|
|
|
|
|
|
2023-10-16 17:50:32 +07:00
|
|
|
Var CountDownShowButton = 0
|
2024-11-26 21:56:59 +07:00
|
|
|
Var ShowButtonClick = "Enable"
|
2023-10-16 17:50:32 +07:00
|
|
|
Var ShowButtonClickFull = "Invisible"
|
2025-01-22 15:57:35 +07:00
|
|
|
Else
|
|
|
|
|
Var MemberButtonFileNameRest = ""
|
|
|
|
|
Var img_rest_main_page = ""
|
|
|
|
|
Var img_reset_topup = ""
|
2024-11-18 10:38:51 +07:00
|
|
|
|
2025-01-29 18:39:17 +07:00
|
|
|
Var ShowButtonClick = "Enable"
|
|
|
|
|
Var ShowButtonClickFull = "Invisible"
|
2025-01-22 15:57:35 +07:00
|
|
|
|
2025-01-29 18:39:17 +07:00
|
|
|
Var CountDownShowButton = 35
|
2022-11-22 15:24:12 +07:00
|
|
|
EndIf
|
2024-03-24 14:37:28 +07:00
|
|
|
|
|
|
|
|
|
2024-07-23 18:01:51 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-12 10:35:27 +07:00
|
|
|
If taobin_notopup = "true" Then
|
|
|
|
|
GetFileSizeK "taobin_project/video/_main_page_notopup.mp4" MainfileSize
|
|
|
|
|
DEBUGVAR MainfileSize
|
|
|
|
|
If MainfileSize > 0 Then
|
|
|
|
|
Var VideoMainPage = "ROOT/taobin_project/video/_main_page_notopup.mp4"
|
|
|
|
|
EndIf
|
|
|
|
|
EndIf
|