mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
551 lines
10 KiB
Lua
551 lines
10 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
|
|
L0_1 = {}
|
|
L0_1.group_id = 133108020
|
|
L1_1 = {}
|
|
L2_1 = {}
|
|
L2_1.config_id = 20001
|
|
L2_1.monster_id = 20040301
|
|
L3_1 = {}
|
|
L3_1.x = 47.526
|
|
L3_1.y = 202.012
|
|
L3_1.z = -853.952
|
|
L2_1.pos = L3_1
|
|
L3_1 = {}
|
|
L3_1.x = 0.0
|
|
L3_1.y = 0.0
|
|
L3_1.z = 0.0
|
|
L2_1.rot = L3_1
|
|
L2_1.level = 36
|
|
L2_1.drop_id = 1000100
|
|
L2_1.area_id = 7
|
|
L1_1[1] = L2_1
|
|
monsters = L1_1
|
|
L1_1 = {}
|
|
npcs = L1_1
|
|
L1_1 = {}
|
|
L2_1 = {}
|
|
L2_1.config_id = 20002
|
|
L2_1.gadget_id = 70210106
|
|
L3_1 = {}
|
|
L3_1.x = 47.482
|
|
L3_1.y = 200.738
|
|
L3_1.z = -854.014
|
|
L2_1.pos = L3_1
|
|
L3_1 = {}
|
|
L3_1.x = 0.0
|
|
L3_1.y = 253.266
|
|
L3_1.z = 0.0
|
|
L2_1.rot = L3_1
|
|
L2_1.level = 26
|
|
L2_1.drop_tag = "\230\151\160\231\155\184\228\185\139\229\178\169"
|
|
L2_1.showcutscene = true
|
|
L2_1.persistent = true
|
|
L3_1 = {}
|
|
L3_1.monster_config_id = 20001
|
|
L3_1.resin = 40
|
|
L3_1.life_time = 600
|
|
L3_1.take_num = 100
|
|
L2_1.boss_chest = L3_1
|
|
L2_1.area_id = 7
|
|
L3_1 = {}
|
|
L3_1.config_id = 20004
|
|
L3_1.gadget_id = 70360083
|
|
L4_1 = {}
|
|
L4_1.x = 47.549
|
|
L4_1.y = 200.72
|
|
L4_1.z = -854.011
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 343.116
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 32
|
|
L3_1.persistent = true
|
|
L3_1.mark_flag = 1
|
|
L3_1.area_id = 7
|
|
L4_1 = {}
|
|
L4_1.config_id = 20006
|
|
L4_1.gadget_id = 70360080
|
|
L5_1 = {}
|
|
L5_1.x = 34.906
|
|
L5_1.y = 203.291
|
|
L5_1.z = -826.988
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 157.251
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 32
|
|
L4_1.persistent = true
|
|
L4_1.mark_flag = 1
|
|
L4_1.area_id = 7
|
|
L5_1 = {}
|
|
L5_1.config_id = 20007
|
|
L5_1.gadget_id = 70360080
|
|
L6_1 = {}
|
|
L6_1.x = 17.964
|
|
L6_1.y = 203.3
|
|
L6_1.z = -853.324
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 93.133
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 32
|
|
L5_1.persistent = true
|
|
L5_1.mark_flag = 1
|
|
L5_1.area_id = 7
|
|
L6_1 = {}
|
|
L6_1.config_id = 20008
|
|
L6_1.gadget_id = 70360080
|
|
L7_1 = {}
|
|
L7_1.x = 29.513
|
|
L7_1.y = 203.281
|
|
L7_1.z = -877.324
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 38.108
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 32
|
|
L6_1.persistent = true
|
|
L6_1.mark_flag = 1
|
|
L6_1.area_id = 7
|
|
L7_1 = {}
|
|
L7_1.config_id = 20009
|
|
L7_1.gadget_id = 70360080
|
|
L8_1 = {}
|
|
L8_1.x = 57.523
|
|
L8_1.y = 203.281
|
|
L8_1.z = -881.844
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 338.437
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 32
|
|
L7_1.persistent = true
|
|
L7_1.mark_flag = 1
|
|
L7_1.area_id = 7
|
|
L8_1 = {}
|
|
L8_1.config_id = 20010
|
|
L8_1.gadget_id = 70360080
|
|
L9_1 = {}
|
|
L9_1.x = 76.592
|
|
L9_1.y = 203.161
|
|
L9_1.z = -860.245
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 281.395
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 32
|
|
L8_1.persistent = true
|
|
L8_1.mark_flag = 1
|
|
L8_1.area_id = 7
|
|
L9_1 = {}
|
|
L9_1.config_id = 20011
|
|
L9_1.gadget_id = 70360080
|
|
L10_1 = {}
|
|
L10_1.x = 64.475
|
|
L10_1.y = 203.268
|
|
L10_1.z = -830.0
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 215.245
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 32
|
|
L9_1.persistent = true
|
|
L9_1.mark_flag = 1
|
|
L9_1.area_id = 7
|
|
L1_1[1] = L2_1
|
|
L1_1[2] = L3_1
|
|
L1_1[3] = L4_1
|
|
L1_1[4] = L5_1
|
|
L1_1[5] = L6_1
|
|
L1_1[6] = L7_1
|
|
L1_1[7] = L8_1
|
|
L1_1[8] = L9_1
|
|
gadgets = L1_1
|
|
L1_1 = {}
|
|
L2_1 = {}
|
|
L2_1.config_id = 20012
|
|
L3_1 = RegionShape
|
|
L3_1 = L3_1.SPHERE
|
|
L2_1.shape = L3_1
|
|
L2_1.radius = 35
|
|
L3_1 = {}
|
|
L3_1.x = 48.263
|
|
L3_1.y = 200.736
|
|
L3_1.z = -855.726
|
|
L2_1.pos = L3_1
|
|
L2_1.area_id = 7
|
|
L3_1 = {}
|
|
L3_1.config_id = 20013
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.SPHERE
|
|
L3_1.shape = L4_1
|
|
L3_1.radius = 45
|
|
L4_1 = {}
|
|
L4_1.x = 49.24
|
|
L4_1.y = 200.736
|
|
L4_1.z = -855.084
|
|
L3_1.pos = L4_1
|
|
L3_1.area_id = 7
|
|
L1_1[1] = L2_1
|
|
L1_1[2] = L3_1
|
|
regions = L1_1
|
|
L1_1 = {}
|
|
L2_1 = {}
|
|
L2_1.config_id = 1020003
|
|
L2_1.name = "ANY_MONSTER_DIE_20003"
|
|
L3_1 = EventType
|
|
L3_1 = L3_1.EVENT_ANY_MONSTER_DIE
|
|
L2_1.event = L3_1
|
|
L2_1.source = ""
|
|
L2_1.condition = "condition_EVENT_ANY_MONSTER_DIE_20003"
|
|
L2_1.action = "action_EVENT_ANY_MONSTER_DIE_20003"
|
|
L3_1 = {}
|
|
L3_1.config_id = 1020012
|
|
L3_1.name = "ENTER_REGION_20012"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_ENTER_REGION
|
|
L3_1.event = L4_1
|
|
L3_1.source = "1"
|
|
L3_1.condition = "condition_EVENT_ENTER_REGION_20012"
|
|
L3_1.action = "action_EVENT_ENTER_REGION_20012"
|
|
L3_1.trigger_count = 0
|
|
L3_1.forbid_guest = false
|
|
L4_1 = {}
|
|
L4_1.config_id = 1020013
|
|
L4_1.name = "LEAVE_REGION_20013"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_LEAVE_REGION
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_LEAVE_REGION_20013"
|
|
L4_1.action = "action_EVENT_LEAVE_REGION_20013"
|
|
L4_1.trigger_count = 0
|
|
L4_1.forbid_guest = false
|
|
L1_1[1] = L2_1
|
|
L1_1[2] = L3_1
|
|
L1_1[3] = L4_1
|
|
triggers = L1_1
|
|
L1_1 = {}
|
|
variables = L1_1
|
|
L1_1 = {}
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 20005
|
|
L3_1.gadget_id = 71000007
|
|
L4_1 = {}
|
|
L4_1.x = 47.546
|
|
L4_1.y = 201.441
|
|
L4_1.z = -854.774
|
|
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 = 32
|
|
L3_1.area_id = 7
|
|
L2_1[1] = L3_1
|
|
L1_1.gadgets = L2_1
|
|
garbages = L1_1
|
|
L1_1 = {}
|
|
L1_1.suite = 1
|
|
L1_1.end_suite = 0
|
|
L1_1.rand_suite = false
|
|
init_config = L1_1
|
|
L1_1 = {}
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = 20001
|
|
L3_1[1] = L4_1
|
|
L2_1.monsters = L3_1
|
|
L3_1 = {}
|
|
L4_1 = 20004
|
|
L5_1 = 20006
|
|
L6_1 = 20007
|
|
L7_1 = 20008
|
|
L8_1 = 20009
|
|
L9_1 = 20010
|
|
L10_1 = 20011
|
|
L3_1[1] = L4_1
|
|
L3_1[2] = L5_1
|
|
L3_1[3] = L6_1
|
|
L3_1[4] = L7_1
|
|
L3_1[5] = L8_1
|
|
L3_1[6] = L9_1
|
|
L3_1[7] = L10_1
|
|
L2_1.gadgets = L3_1
|
|
L3_1 = {}
|
|
L4_1 = 20012
|
|
L5_1 = 20013
|
|
L3_1[1] = L4_1
|
|
L3_1[2] = L5_1
|
|
L2_1.regions = L3_1
|
|
L3_1 = {}
|
|
L4_1 = "ANY_MONSTER_DIE_20003"
|
|
L5_1 = "ENTER_REGION_20012"
|
|
L6_1 = "LEAVE_REGION_20013"
|
|
L3_1[1] = L4_1
|
|
L3_1[2] = L5_1
|
|
L3_1[3] = L6_1
|
|
L2_1.triggers = L3_1
|
|
L2_1.rand_weight = 100
|
|
L1_1[1] = L2_1
|
|
suites = L1_1
|
|
function L1_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupMonsterCountByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = 133108020
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if L2_2 ~= 0 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ANY_MONSTER_DIE_20003 = L1_1
|
|
function L1_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.config_id = 20002
|
|
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 : create_gadget"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 4002
|
|
L5_2 = 3
|
|
L6_2 = 1
|
|
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 : mark_playerAction"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 20004
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 20006
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 20007
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 20008
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 20009
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 20010
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 20011
|
|
L5_2 = GadgetState
|
|
L5_2 = L5_2.Default
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ANY_MONSTER_DIE_20003 = L1_1
|
|
function L1_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if L2_2 ~= 20012 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ENTER_REGION_20012 = L1_1
|
|
function L1_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
|
|
L2_2 = A0_2.uid
|
|
if L2_2 ~= 0 then
|
|
L2_2 = {}
|
|
L3_2 = {}
|
|
L4_2 = 1
|
|
L5_2 = regions
|
|
L5_2 = #L5_2
|
|
L6_2 = 1
|
|
for L7_2 = L4_2, L5_2, L6_2 do
|
|
L8_2 = regions
|
|
L8_2 = L8_2[L7_2]
|
|
L8_2 = L8_2.config_id
|
|
if L8_2 == 20012 then
|
|
L8_2 = regions
|
|
L2_2 = L8_2[L7_2]
|
|
end
|
|
L8_2 = regions
|
|
L8_2 = L8_2[L7_2]
|
|
L8_2 = L8_2.config_id
|
|
if L8_2 == 20013 then
|
|
L8_2 = regions
|
|
L3_2 = L8_2[L7_2]
|
|
end
|
|
end
|
|
L4_2 = TrySetPlayerEyePoint
|
|
L5_2 = A0_2
|
|
L6_2 = L2_2
|
|
L7_2 = L3_2
|
|
L8_2 = 0
|
|
L9_2 = {}
|
|
L10_2 = 0
|
|
L9_2[1] = L10_2
|
|
L4_2(L5_2, L6_2, L7_2, L8_2, L9_2)
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ENTER_REGION_20012 = L1_1
|
|
function L1_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if L2_2 ~= 20013 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_LEAVE_REGION_20013 = L1_1
|
|
function L1_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = A0_2.uid
|
|
if L2_2 ~= 0 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ClearPlayerEyePoint
|
|
L3_2 = A0_2
|
|
L4_2 = 20012
|
|
L2_2(L3_2, L4_2)
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_LEAVE_REGION_20013 = L1_1
|
|
L1_1 = require
|
|
L2_1 = "TD_Lib"
|
|
L1_1(L2_1)
|