mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
461 lines
9.0 KiB
Lua
461 lines
9.0 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1
|
|
L0_1 = {}
|
|
L0_1.group_id = 155005017
|
|
L1_1 = {}
|
|
L2_1 = {}
|
|
L3_1 = 17001
|
|
L2_1[1] = L3_1
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
monsters = L6_1
|
|
L6_1 = {}
|
|
npcs = L6_1
|
|
L6_1 = {}
|
|
L7_1 = {}
|
|
L7_1.config_id = 17001
|
|
L7_1.gadget_id = 70360302
|
|
L8_1 = {}
|
|
L8_1.x = 269.42
|
|
L8_1.y = 358.704
|
|
L8_1.z = 211.912
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 7.184
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 36
|
|
L7_1.area_id = 200
|
|
L6_1[1] = L7_1
|
|
gadgets = L6_1
|
|
L6_1 = {}
|
|
regions = L6_1
|
|
L6_1 = {}
|
|
L7_1 = {}
|
|
L7_1.config_id = 1017002
|
|
L7_1.name = "GROUP_LOAD_17002"
|
|
L8_1 = EventType
|
|
L8_1 = L8_1.EVENT_GROUP_LOAD
|
|
L7_1.event = L8_1
|
|
L7_1.source = ""
|
|
L7_1.condition = ""
|
|
L7_1.action = "action_EVENT_GROUP_LOAD_17002"
|
|
L7_1.trigger_count = 0
|
|
L8_1 = {}
|
|
L8_1.config_id = 1017003
|
|
L8_1.name = "SELECT_OPTION_17003"
|
|
L9_1 = EventType
|
|
L9_1 = L9_1.EVENT_SELECT_OPTION
|
|
L8_1.event = L9_1
|
|
L8_1.source = ""
|
|
L8_1.condition = "condition_EVENT_SELECT_OPTION_17003"
|
|
L8_1.action = "action_EVENT_SELECT_OPTION_17003"
|
|
L8_1.trigger_count = 0
|
|
L9_1 = {}
|
|
L9_1.config_id = 1017004
|
|
L9_1.name = "QUEST_START_17004"
|
|
L10_1 = EventType
|
|
L10_1 = L10_1.EVENT_QUEST_START
|
|
L9_1.event = L10_1
|
|
L9_1.source = "7217716"
|
|
L9_1.condition = ""
|
|
L9_1.action = "action_EVENT_QUEST_START_17004"
|
|
L9_1.trigger_count = 0
|
|
L10_1 = {}
|
|
L10_1.config_id = 1017005
|
|
L10_1.name = "QUEST_FINISH_17005"
|
|
L11_1 = EventType
|
|
L11_1 = L11_1.EVENT_QUEST_FINISH
|
|
L10_1.event = L11_1
|
|
L10_1.source = "7217746"
|
|
L10_1.condition = ""
|
|
L10_1.action = "action_EVENT_QUEST_FINISH_17005"
|
|
L10_1.trigger_count = 0
|
|
L11_1 = {}
|
|
L11_1.config_id = 1017006
|
|
L11_1.name = "QUEST_START_17006"
|
|
L12_1 = EventType
|
|
L12_1 = L12_1.EVENT_QUEST_START
|
|
L11_1.event = L12_1
|
|
L11_1.source = "7217715"
|
|
L11_1.condition = ""
|
|
L11_1.action = "action_EVENT_QUEST_START_17006"
|
|
L11_1.trigger_count = 0
|
|
L12_1 = {}
|
|
L12_1.config_id = 1017007
|
|
L12_1.name = "GROUP_LOAD_17007"
|
|
L13_1 = EventType
|
|
L13_1 = L13_1.EVENT_GROUP_LOAD
|
|
L12_1.event = L13_1
|
|
L12_1.source = ""
|
|
L12_1.condition = ""
|
|
L12_1.action = "action_EVENT_GROUP_LOAD_17007"
|
|
L12_1.trigger_count = 0
|
|
L13_1 = {}
|
|
L13_1.config_id = 1017008
|
|
L13_1.name = "QUEST_START_17008"
|
|
L14_1 = EventType
|
|
L14_1 = L14_1.EVENT_QUEST_START
|
|
L13_1.event = L14_1
|
|
L13_1.source = "7217715"
|
|
L13_1.condition = ""
|
|
L13_1.action = "action_EVENT_QUEST_START_17008"
|
|
L13_1.trigger_count = 0
|
|
L14_1 = {}
|
|
L14_1.config_id = 1017009
|
|
L14_1.name = "GADGET_CREATE_17009"
|
|
L15_1 = EventType
|
|
L15_1 = L15_1.EVENT_GADGET_CREATE
|
|
L14_1.event = L15_1
|
|
L14_1.source = ""
|
|
L14_1.condition = "condition_EVENT_GADGET_CREATE_17009"
|
|
L14_1.action = "action_EVENT_GADGET_CREATE_17009"
|
|
L14_1.trigger_count = 0
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_1
|
|
L6_1[3] = L9_1
|
|
L6_1[4] = L10_1
|
|
L6_1[5] = L11_1
|
|
L6_1[6] = L12_1
|
|
L6_1[7] = L13_1
|
|
L6_1[8] = L14_1
|
|
triggers = L6_1
|
|
L6_1 = {}
|
|
variables = L6_1
|
|
L6_1 = {}
|
|
L6_1.io_type = 1
|
|
L6_1.suite = 1
|
|
L6_1.end_suite = 2
|
|
L6_1.rand_suite = false
|
|
init_config = L6_1
|
|
L6_1 = {}
|
|
L7_1 = {}
|
|
L8_1 = {}
|
|
L9_1 = {}
|
|
L9_1.config_id = 17001
|
|
L9_1.state = 0
|
|
L8_1[1] = L9_1
|
|
L7_1.gadgets = L8_1
|
|
L8_1 = {}
|
|
L7_1.monsters = L8_1
|
|
L8_1 = {}
|
|
L7_1.regions = L8_1
|
|
L8_1 = {}
|
|
L9_1 = "QUEST_START_17006"
|
|
L10_1 = "GROUP_LOAD_17007"
|
|
L8_1[1] = L9_1
|
|
L8_1[2] = L10_1
|
|
L7_1.triggers = L8_1
|
|
L8_1 = {}
|
|
L7_1.npcs = L8_1
|
|
L8_1 = {}
|
|
L7_1.variables = L8_1
|
|
L6_1[1] = L7_1
|
|
L7_1 = {}
|
|
L8_1 = {}
|
|
L9_1 = {}
|
|
L9_1.config_id = 17001
|
|
L9_1.state = 0
|
|
L8_1[1] = L9_1
|
|
L7_1.gadgets = L8_1
|
|
L8_1 = {}
|
|
L7_1.monsters = L8_1
|
|
L8_1 = {}
|
|
L7_1.regions = L8_1
|
|
L8_1 = {}
|
|
L9_1 = "GROUP_LOAD_17002"
|
|
L10_1 = "SELECT_OPTION_17003"
|
|
L11_1 = "QUEST_START_17004"
|
|
L12_1 = "QUEST_FINISH_17005"
|
|
L13_1 = "QUEST_START_17008"
|
|
L14_1 = "GADGET_CREATE_17009"
|
|
L8_1[1] = L9_1
|
|
L8_1[2] = L10_1
|
|
L8_1[3] = L11_1
|
|
L8_1[4] = L12_1
|
|
L8_1[5] = L13_1
|
|
L8_1[6] = L14_1
|
|
L7_1.triggers = L8_1
|
|
L8_1 = {}
|
|
L7_1.npcs = L8_1
|
|
L8_1 = {}
|
|
L7_1.variables = L8_1
|
|
L6_1[2] = L7_1
|
|
L7_1 = {}
|
|
L8_1 = {}
|
|
L7_1.gadgets = L8_1
|
|
L8_1 = {}
|
|
L7_1.monsters = L8_1
|
|
L8_1 = {}
|
|
L7_1.regions = L8_1
|
|
L8_1 = {}
|
|
L7_1.triggers = L8_1
|
|
L8_1 = {}
|
|
L7_1.npcs = L8_1
|
|
L8_1 = {}
|
|
L7_1.variables = L8_1
|
|
L6_1[3] = L7_1
|
|
suite_disk = L6_1
|
|
L6_1 = {}
|
|
L7_1 = {}
|
|
L8_1 = {}
|
|
L7_1.monsters = L8_1
|
|
L8_1 = {}
|
|
L9_1 = 17001
|
|
L8_1[1] = L9_1
|
|
L7_1.gadgets = L8_1
|
|
L8_1 = {}
|
|
L7_1.regions = L8_1
|
|
L8_1 = {}
|
|
L9_1 = "QUEST_START_17006"
|
|
L10_1 = "GROUP_LOAD_17007"
|
|
L8_1[1] = L9_1
|
|
L8_1[2] = L10_1
|
|
L7_1.triggers = L8_1
|
|
L7_1.rand_weight = 100
|
|
L7_1.ban_refresh = true
|
|
L8_1 = {}
|
|
L9_1 = {}
|
|
L8_1.monsters = L9_1
|
|
L9_1 = {}
|
|
L10_1 = 17001
|
|
L9_1[1] = L10_1
|
|
L8_1.gadgets = L9_1
|
|
L9_1 = {}
|
|
L8_1.regions = L9_1
|
|
L9_1 = {}
|
|
L10_1 = "GROUP_LOAD_17002"
|
|
L11_1 = "SELECT_OPTION_17003"
|
|
L12_1 = "QUEST_START_17004"
|
|
L13_1 = "QUEST_FINISH_17005"
|
|
L14_1 = "QUEST_START_17008"
|
|
L15_1 = "GADGET_CREATE_17009"
|
|
L9_1[1] = L10_1
|
|
L9_1[2] = L11_1
|
|
L9_1[3] = L12_1
|
|
L9_1[4] = L13_1
|
|
L9_1[5] = L14_1
|
|
L9_1[6] = L15_1
|
|
L8_1.triggers = L9_1
|
|
L8_1.rand_weight = 100
|
|
L9_1 = {}
|
|
L10_1 = {}
|
|
L9_1.monsters = L10_1
|
|
L10_1 = {}
|
|
L9_1.gadgets = L10_1
|
|
L10_1 = {}
|
|
L9_1.regions = L10_1
|
|
L10_1 = {}
|
|
L9_1.triggers = L10_1
|
|
L9_1.rand_weight = 100
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_1
|
|
L6_1[3] = L9_1
|
|
suites = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
|
|
L2_2 = DayNight_Gadget_Unlock
|
|
L3_2 = A0_2
|
|
L4_2 = 17001
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetSceneUidList
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
if L2_2 ~= nil then
|
|
L3_2 = #L2_2
|
|
if L3_2 ~= 0 then
|
|
goto lbl_16
|
|
end
|
|
end
|
|
L3_2 = 0
|
|
do return L3_2 end
|
|
::lbl_16::
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetAvatarEntityIdByUid
|
|
L4_2 = A0_2
|
|
L5_2 = L2_2[1]
|
|
L3_2 = L3_2(L4_2, L5_2)
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.GetQuestState
|
|
L5_2 = A0_2
|
|
L6_2 = L3_2
|
|
L7_2 = 7217716
|
|
L4_2 = L4_2(L5_2, L6_2, L7_2)
|
|
L5_2 = QuestState
|
|
L5_2 = L5_2.FINISHED
|
|
if L4_2 == L5_2 then
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.GoToFlowSuite
|
|
L6_2 = A0_2
|
|
L7_2 = 155005017
|
|
L8_2 = 3
|
|
L5_2(L6_2, L7_2, L8_2)
|
|
end
|
|
L5_2 = 0
|
|
return L5_2
|
|
end
|
|
action_EVENT_GROUP_LOAD_17002 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 17001 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param2
|
|
if 7 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_SELECT_OPTION_17003 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.DelWorktopOptionByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 155005017
|
|
L5_2 = 17001
|
|
L6_2 = 7
|
|
L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 17001
|
|
L5_2 = 312
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetSceneUidList
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
L3_2 = L2_2[1]
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.AddQuestProgress
|
|
L5_2 = A0_2
|
|
L6_2 = "72177_UnlockTokoEngine"
|
|
L4_2(L5_2, L6_2)
|
|
L4_2 = 0
|
|
return L4_2
|
|
end
|
|
action_EVENT_SELECT_OPTION_17003 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GoToFlowSuite
|
|
L3_2 = A0_2
|
|
L4_2 = 155005017
|
|
L5_2 = 3
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_QUEST_START_17004 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeToTargetLevelTag
|
|
L3_2 = A0_2
|
|
L4_2 = 2
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_QUEST_FINISH_17005 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L2_2 = DayNight_Gadget_Unlock
|
|
L3_2 = A0_2
|
|
L4_2 = 17001
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GoToFlowSuite
|
|
L3_2 = A0_2
|
|
L4_2 = 155005017
|
|
L5_2 = 2
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetWorktopOptionsByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 155005017
|
|
L5_2 = 17001
|
|
L6_2 = {}
|
|
L7_2 = 7
|
|
L6_2[1] = L7_2
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_wok_options_by_configid"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_QUEST_START_17006 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = DayNight_Gadget_Unlock
|
|
L3_2 = A0_2
|
|
L4_2 = 17001
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GROUP_LOAD_17007 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = DayNight_Gadget_Unlock
|
|
L3_2 = A0_2
|
|
L4_2 = 17001
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_QUEST_START_17008 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 17001 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_17009 = L6_1
|
|
function L6_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetWorktopOptionsByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 155005017
|
|
L5_2 = 17001
|
|
L6_2 = {}
|
|
L7_2 = 7
|
|
L6_2[1] = L7_2
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_wok_options_by_configid"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_CREATE_17009 = L6_1
|
|
L6_1 = require
|
|
L7_1 = "V2_4/EnvState"
|
|
L6_1(L7_1)
|