Grasscutter_Resources/Resources/Scripts/Scene/20000/scene20000_group220000001.lua
2022-04-29 16:40:51 +02:00

698 lines
13 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
L0_1 = {}
L0_1.group_id = 220000001
L1_1 = {}
L1_1.monster_id_1 = 1001
L1_1.monster_id_2 = 1002
L1_1.monster_id_3 = 1003
L1_1.monster_id_4 = 1004
L1_1.monster_id_5 = 1005
L1_1.monster_id_6 = 1006
L1_1.monster_id_7 = 1007
L1_1.monster_id_8 = 1008
L1_1.gadget_id_1 = 100
L1_1.gadget_id_2 = 101
L1_1.gadget_id_3 = 102
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1001
L3_1.monster_id = 20010801
L4_1 = {}
L4_1.x = 57.499
L4_1.y = 0.5
L4_1.z = -2.595
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 1002
L4_1.monster_id = 20010801
L5_1 = {}
L5_1.x = 64.907
L5_1.y = 0.5
L5_1.z = 5.814
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 1003
L5_1.monster_id = 20011001
L6_1 = {}
L6_1.x = 60.626
L6_1.y = 0.5
L6_1.z = 0.895
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 0.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L6_1.config_id = 1004
L6_1.monster_id = 20010901
L7_1 = {}
L7_1.x = 56.622
L7_1.y = 0.5
L7_1.z = 8.253
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L7_1.config_id = 1005
L7_1.monster_id = 20011001
L8_1 = {}
L8_1.x = 53.984
L8_1.y = 0.5
L8_1.z = 5.116
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 1006
L8_1.monster_id = 20011001
L9_1 = {}
L9_1.x = 58.994
L9_1.y = 0.5
L9_1.z = 5.488
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 1007
L9_1.monster_id = 20011101
L10_1 = {}
L10_1.x = 52.43
L10_1.y = 0.5
L10_1.z = 6.416
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 1008
L10_1.monster_id = 20010901
L11_1 = {}
L11_1.x = 62.412
L11_1.y = 0.5
L11_1.z = 7.166
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1009
L3_1.gadget_id = 70350001
L4_1 = {}
L4_1.x = 57.011
L4_1.y = 0.5
L4_1.z = -22.59
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 1010
L4_1.gadget_id = 70360002
L5_1 = {}
L5_1.x = 63.18
L5_1.y = 0.5
L5_1.z = -28.576
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 161.385
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 1011
L5_1.gadget_id = 70211011
L6_1 = {}
L6_1.x = 111.4
L6_1.y = 22.9
L6_1.z = -36.916
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 95.413
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L5_1.drop_tag = "\230\136\152\230\150\151\228\184\173\231\186\167\232\146\153\229\190\183"
L5_1.isOneoff = true
L6_1 = {}
L6_1.config_id = 1012
L6_1.gadget_id = 70211011
L7_1 = {}
L7_1.x = 111.417
L7_1.y = 22.9
L7_1.z = -40.48
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 29.27
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.drop_tag = "\230\136\152\230\150\151\228\184\173\231\186\167\232\146\153\229\190\183"
L6_1.isOneoff = true
L7_1 = {}
L7_1.config_id = 1013
L7_1.gadget_id = 70380002
L8_1 = {}
L8_1.x = 21.541
L8_1.y = 2.923
L8_1.z = -22.585
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 270.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L7_1.route_id = 1
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
gadgets = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 10
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 19.05
L4_1 = {}
L4_1.x = 58.247
L4_1.y = 0.5
L4_1.z = -39.93
L3_1.pos = L4_1
L4_1 = {}
L4_1.config_id = 11
L5_1 = RegionShape
L5_1 = L5_1.SPHERE
L4_1.shape = L5_1
L4_1.radius = 20.08
L5_1 = {}
L5_1.x = 18.585
L5_1.y = 0.5
L5_1.z = -41.411
L4_1.pos = L5_1
L2_1[1] = L3_1
L2_1[2] = L4_1
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1000001
L3_1.name = "GADGET_CREATE_1"
L4_1 = EventType
L4_1 = L4_1.EVENT_GADGET_CREATE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_GADGET_CREATE_1"
L3_1.action = "action_EVENT_GADGET_CREATE_1"
L4_1 = {}
L4_1.config_id = 1000003
L4_1.name = "SELECT_OPTION_3"
L5_1 = EventType
L5_1 = L5_1.EVENT_SELECT_OPTION
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_SELECT_OPTION_3"
L4_1.action = "action_EVENT_SELECT_OPTION_3"
L4_1.forbid_guest = false
L5_1 = {}
L5_1.config_id = 1000004
L5_1.name = "SELECT_OPTION_4"
L6_1 = EventType
L6_1 = L6_1.EVENT_SELECT_OPTION
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_SELECT_OPTION_4"
L5_1.action = "action_EVENT_SELECT_OPTION_4"
L5_1.forbid_guest = false
L6_1 = {}
L6_1.config_id = 1000005
L6_1.name = "SELECT_OPTION_5"
L7_1 = EventType
L7_1 = L7_1.EVENT_SELECT_OPTION
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_SELECT_OPTION_5"
L6_1.action = "action_EVENT_SELECT_OPTION_5"
L6_1.forbid_guest = false
L7_1 = {}
L7_1.config_id = 1000010
L7_1.name = "ENTER_REGION_10"
L8_1 = EventType
L8_1 = L8_1.EVENT_ENTER_REGION
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_ENTER_REGION_10"
L7_1.action = "action_EVENT_ENTER_REGION_10"
L7_1.trigger_count = 0
L7_1.forbid_guest = false
L8_1 = {}
L8_1.config_id = 1000011
L8_1.name = "ENTER_REGION_11"
L9_1 = EventType
L9_1 = L9_1.EVENT_ENTER_REGION
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_ENTER_REGION_11"
L8_1.action = "action_EVENT_ENTER_REGION_11"
L8_1.trigger_count = 0
L8_1.forbid_guest = false
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
triggers = L2_1
L2_1 = {}
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 0
L2_1.rand_suite = true
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 1009
L6_1 = 1010
L7_1 = 1011
L8_1 = 1012
L9_1 = 1013
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 10
L6_1 = 11
L4_1[1] = L5_1
L4_1[2] = L6_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "GADGET_CREATE_1"
L6_1 = "SELECT_OPTION_3"
L7_1 = "SELECT_OPTION_4"
L8_1 = "SELECT_OPTION_5"
L9_1 = "ENTER_REGION_10"
L10_1 = "ENTER_REGION_11"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L2_1[1] = L3_1
suites = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 1010 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_1 = L2_1
function L2_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.SetWorktopOptions
L3_2 = A0_2
L4_2 = {}
L5_2 = 100
L6_2 = 101
L7_2 = 102
L4_2[1] = L5_2
L4_2[2] = L6_2
L4_2[3] = L7_2
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "@@ LUA_WARNING : set_work_options"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_CREATE_1 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 1010 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_3 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = L1_1.gadget_id_1
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_1
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_2
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_3
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.monster_id_1
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_3 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 1010 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_4 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = L1_1.gadget_id_2
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_4
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_5
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_6
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.monster_id_1
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_4 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 1010 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_5 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = L1_1.gadget_id_3
L3_2 = A1_2.param2
if L2_2 == L3_2 then
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_7
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.CreateMonster
L3_2 = A0_2
L4_2 = {}
L5_2 = L1_1.monster_id_8
L4_2.config_id = L5_2
L4_2.delay_time = 0
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.monster_id_1
L5_2 = GadgetState
L5_2 = L5_2.GearStart
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_5 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param1
if L2_2 ~= 10 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetRegionEntityCount
L3_2 = A0_2
L4_2 = {}
L5_2 = A1_2.source_eid
L4_2.region_eid = L5_2
L5_2 = EntityType
L5_2 = L5_2.AVATAR
L4_2.entity_type = L5_2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 < 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ENTER_REGION_10 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = {}
L2_2.x = 53
L2_2.y = 2
L2_2.z = -53
pos = L2_2
L2_2 = ScriptLib
L2_2 = L2_2.ScenePlaySound
L3_2 = A0_2
L4_2 = {}
L5_2 = pos
L4_2.play_pos = L5_2
L4_2.sound_name = "LevelHornSound001"
L4_2.play_type = 1
L4_2.is_broadcast = false
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_10 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = A1_2.param1
if L2_2 ~= 11 then
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetRegionEntityCount
L3_2 = A0_2
L4_2 = {}
L5_2 = A1_2.source_eid
L4_2.region_eid = L5_2
L5_2 = EntityType
L5_2 = L5_2.AVATAR
L4_2.entity_type = L5_2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 < 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ENTER_REGION_11 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = {}
L2_2.x = 53
L2_2.y = 2
L2_2.z = -53
pos = L2_2
L2_2 = ScriptLib
L2_2 = L2_2.ScenePlaySound
L3_2 = A0_2
L4_2 = {}
L5_2 = pos
L4_2.play_pos = L5_2
L4_2.sound_name = "LevelHornSound001"
L4_2.play_type = 2
L4_2.is_broadcast = false
L2_2 = L2_2(L3_2, L4_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_11 = L2_1