mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-28 09:05:26 +00:00
bypass time
This commit is contained in:
parent
f495f857c6
commit
bcc243a755
@ -1,4 +1,4 @@
|
||||
-- 基础信息
|
||||
-- 基础信息 (5th floor second challenge)
|
||||
local base_info = {
|
||||
group_id = 233401004
|
||||
}
|
||||
@ -101,13 +101,14 @@ function action_EVENT_ANY_MONSTER_LIVE_4008(context, evt)
|
||||
-- 从233401001的变量TPL_TIME中取出对应值并开启挑战
|
||||
local tpl_time = ScriptLib.GetGroupVariableValueByGroup(context, "TPL_TIME", 233401001)
|
||||
if tpl_time == nil or tpl_time < 0 then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge_by_remainTime")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : finish minus, GC bug?"..tpl_time)
|
||||
tpl_time = 600 -- Maybe this is the finish time (remainTime) to complete the second challenge, which is calculated based on the finish time on the first challenge?
|
||||
--return -1
|
||||
elseif tpl_time < 1 then
|
||||
tpl_time = 0
|
||||
end
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 2, 198, tpl_time, 233401004, 2, 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge_by_remainTime")
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : failed to start the challenge")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
@ -133,12 +133,14 @@ end
|
||||
function condition_EVENT_ANY_MONSTER_DIE_5005(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : Not all of the monsters have been killed")
|
||||
return false
|
||||
end
|
||||
|
||||
-- 判断变量"monster_wave"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
|
||||
return false
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : (GC: Maybe there's something wrong here)")
|
||||
--return false
|
||||
end
|
||||
|
||||
return true
|
||||
|
Loading…
x
Reference in New Issue
Block a user