|
发表于 2022-2-9 03:31:26
|
显示全部楼层
ActBegin = 0 --- 0 没开始 1 报名 2 比赛中
Ingnpc = 0 ---流程介绍NPC
desk_check = 1 ----时间轮循到当前桌子
DWWTrig0 = -1
DWWTrig1 = -1
DWWTrig2 = -1
DWWTrig3 = -1
DWWTrig4 = -1
DWWTrig5 = -1
TJbegin_trig1 = -1
TJbegin_trig2 = -1
TJbegin_trig3 = -1
TJbegin_trig4 = -1
TJbegin_trig5 = -1
TJbegin_trig6 = -1
TJend_trig1 = -1
TJend_trig2 = -1
TJend_trig3 = -1
TJend_trig4 = -1
TJend_trig5 = -1
TJend_trig6 = -1
mainTrig = -1
-----时间 第 1 场 8:00 ~ 8:9 报名 8:10 ~ 8:20 比赛
----- 第 2 场 8:21 ~ 8:29 报名 8:30 ~ 8:40 比赛
----- 第 3 场 8:41 ~ 8:49 报名 8:50 ~ 9:00 比赛
----- 第 4 场 9:01 ~ 9:9 报名 9:10 ~ 9:20 比赛
----- 第 5 场 9:21 ~ 9:29 报名 9:30 ~ 9:40 比赛
----- 第 6 场 9:41 ~ 9:49 报名 9:50 ~ 10:00 比赛
MATCH1 = ISVarDataGetNumber(8, 0, 0, True, 'DWW举办场次记录')
if MATCH1 <= 15 then
MATCH1 = 16
ISVarDataSetNumber(8, 0, 0, True, 'DWW举办场次记录', MATCH1)
ISSaveVarData(8, 0, 0)
end
MATCH2 = MATCH1 ---刷新脚本,就保存当前MATCH记录。
Y, M, D, h, m, s, mils = GetDateTime()
---------------
if h < 22 then ----防止当机重起后刷触发器
DWWTrig0 = createDateTimeTrigger(-1, -1, D, 20, 0, 0, "DaWeiWang_Begin")
DWWTrig1 = createDateTimeTrigger(-1, -1, D, 20, 21, 0, "DaWeiWang_Begin")
DWWTrig2 = createDateTimeTrigger(-1, -1, D, 20, 41, 0, "DaWeiWang_Begin")
DWWTrig3 = createDateTimeTrigger(-1, -1, D, 21, 1, 0, "DaWeiWang_Begin")
DWWTrig4 = createDateTimeTrigger(-1, -1, D, 21, 21, 0, "DaWeiWang_Begin")
DWWTrig5 = createDateTimeTrigger(-1, -1, D, 21, 41, 0, "DaWeiWang_Begin")
TJbegin_trig1 = createDateTimeTrigger(-1, -1, D, 20, 10, 0, "DaWeiWang_Match")
TJbegin_trig2 = createDateTimeTrigger(-1, -1, D, 20, 30, 0, "DaWeiWang_Match")
TJbegin_trig3 = createDateTimeTrigger(-1, -1, D, 20, 50, 0, "DaWeiWang_Match")
TJbegin_trig4 = createDateTimeTrigger(-1, -1, D, 21, 10, 0, "DaWeiWang_Match")
TJbegin_trig5 = createDateTimeTrigger(-1, -1, D, 21, 30, 0, "DaWeiWang_Match")
TJbegin_trig6 = createDateTimeTrigger(-1, -1, D, 21, 50, 0, "DaWeiWang_Match")
TJend_trig1 = createDateTimeTrigger(-1, -1, D, 20, 20, 0, "DaWeiWang_End")
TJend_trig2 = createDateTimeTrigger(-1, -1, D, 20, 40, 0, "DaWeiWang_End")
TJend_trig3 = createDateTimeTrigger(-1, -1, D, 21, 0, 0, "DaWeiWang_End")
TJend_trig4 = createDateTimeTrigger(-1, -1, D, 21, 20, 0, "DaWeiWang_End")
TJend_trig5 = createDateTimeTrigger(-1, -1, D, 21, 40, 0, "DaWeiWang_End")
TJend_trig6 = createDateTimeTrigger(-1, -1, D, 22, 0, 0, "DaWeiWang_End")
end
上部分 |
|