mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
* used this shell command `grep -rl "L2_2 = L2_2.GetEntityType" . | xargs sed -i '/L2_2 = L2_2.GetEntityType/, /L3_2 = EntityType/ s/L2_2 = L2_2(L3_2)/L2_2 = L2_2(A0_2, L3_2)/'`
381 lines
7.0 KiB
Lua
381 lines
7.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
|
|
L0_1 = {}
|
|
L0_1.group_id = 133106311
|
|
L1_1 = {}
|
|
L1_1.gadget_1 = 311011
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 311001
|
|
L3_1.monster_id = 21011201
|
|
L4_1 = {}
|
|
L4_1.x = -741.187
|
|
L4_1.y = 213.289
|
|
L4_1.z = 1324.702
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 249.261
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 32
|
|
L3_1.drop_id = 1000100
|
|
L3_1.disableWander = true
|
|
L3_1.area_id = 8
|
|
L4_1 = {}
|
|
L4_1.config_id = 311002
|
|
L4_1.monster_id = 21010101
|
|
L5_1 = {}
|
|
L5_1.x = -738.092
|
|
L5_1.y = 213.869
|
|
L5_1.z = 1326.605
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 164.968
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 32
|
|
L4_1.drop_id = 1000100
|
|
L4_1.disableWander = true
|
|
L4_1.pose_id = 9015
|
|
L4_1.area_id = 8
|
|
L5_1 = {}
|
|
L5_1.config_id = 311003
|
|
L5_1.monster_id = 21020301
|
|
L6_1 = {}
|
|
L6_1.x = -742.379
|
|
L6_1.y = 213.48
|
|
L6_1.z = 1332.615
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 313.085
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 32
|
|
L5_1.drop_id = 1000100
|
|
L5_1.disableWander = true
|
|
L5_1.pose_id = 401
|
|
L5_1.area_id = 8
|
|
L6_1 = {}
|
|
L6_1.config_id = 311004
|
|
L6_1.monster_id = 21020201
|
|
L7_1 = {}
|
|
L7_1.x = -741.941
|
|
L7_1.y = 213.204
|
|
L7_1.z = 1327.419
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 252.625
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 32
|
|
L6_1.drop_id = 1000100
|
|
L6_1.disableWander = true
|
|
L6_1.pose_id = 401
|
|
L6_1.area_id = 8
|
|
L7_1 = {}
|
|
L7_1.config_id = 311005
|
|
L7_1.monster_id = 21030201
|
|
L8_1 = {}
|
|
L8_1.x = -739.763
|
|
L8_1.y = 213.885
|
|
L8_1.z = 1330.712
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 353.556
|
|
L8_1.y = 242.535
|
|
L8_1.z = 355.257
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 32
|
|
L7_1.drop_id = 1000100
|
|
L7_1.disableWander = true
|
|
L7_1.pose_id = 9012
|
|
L7_1.area_id = 8
|
|
L8_1 = {}
|
|
L8_1.config_id = 311006
|
|
L8_1.monster_id = 21010101
|
|
L9_1 = {}
|
|
L9_1.x = -746.639
|
|
L9_1.y = 212.039
|
|
L9_1.z = 1326.262
|
|
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 = 32
|
|
L8_1.drop_id = 1000100
|
|
L8_1.disableWander = true
|
|
L8_1.pose_id = 9015
|
|
L8_1.area_id = 8
|
|
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
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 311008
|
|
L3_1.gadget_id = 70300091
|
|
L4_1 = {}
|
|
L4_1.x = -736.96
|
|
L4_1.y = 213.959
|
|
L4_1.z = 1324.075
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.642
|
|
L4_1.y = 180.147
|
|
L4_1.z = 354.549
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 32
|
|
L3_1.area_id = 8
|
|
L4_1 = {}
|
|
L4_1.config_id = 311012
|
|
L4_1.gadget_id = 70300091
|
|
L5_1 = {}
|
|
L5_1.x = -746.487
|
|
L5_1.y = 212.118
|
|
L5_1.z = 1328.965
|
|
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 = 32
|
|
L4_1.area_id = 8
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 311011
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.SPHERE
|
|
L3_1.shape = L4_1
|
|
L3_1.radius = 30
|
|
L4_1 = {}
|
|
L4_1.x = -740.668
|
|
L4_1.y = 213.463
|
|
L4_1.z = 1327.501
|
|
L3_1.pos = L4_1
|
|
L3_1.area_id = 8
|
|
L2_1[1] = L3_1
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1311009
|
|
L3_1.name = "ANY_MONSTER_DIE_311009"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_ANY_MONSTER_DIE
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_ANY_MONSTER_DIE_311009"
|
|
L3_1.action = "action_EVENT_ANY_MONSTER_DIE_311009"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1311010
|
|
L4_1.name = "ANY_GADGET_DIE_311010"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_ANY_GADGET_DIE
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_ANY_GADGET_DIE_311010"
|
|
L4_1.action = "action_EVENT_ANY_GADGET_DIE_311010"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1311011
|
|
L5_1.name = "ENTER_REGION_311011"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_ENTER_REGION
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_ENTER_REGION_311011"
|
|
L5_1.action = ""
|
|
L5_1.trigger_count = 0
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.suite = 1
|
|
L2_1.end_suite = 0
|
|
L2_1.rand_suite = false
|
|
init_config = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L3_1.triggers = L4_1
|
|
L3_1.rand_weight = 100
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L6_1 = 311001
|
|
L7_1 = 311002
|
|
L8_1 = 311003
|
|
L9_1 = 311004
|
|
L10_1 = 311005
|
|
L11_1 = 311006
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_1
|
|
L5_1[5] = L10_1
|
|
L5_1[6] = L11_1
|
|
L4_1.monsters = L5_1
|
|
L5_1 = {}
|
|
L6_1 = 311008
|
|
L7_1 = 311012
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L4_1.gadgets = L5_1
|
|
L5_1 = {}
|
|
L6_1 = 311011
|
|
L5_1[1] = L6_1
|
|
L4_1.regions = L5_1
|
|
L5_1 = {}
|
|
L6_1 = "ANY_MONSTER_DIE_311009"
|
|
L7_1 = "ANY_GADGET_DIE_311010"
|
|
L8_1 = "ENTER_REGION_311011"
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L4_1.triggers = L5_1
|
|
L4_1.rand_weight = 100
|
|
L4_1.ban_refresh = true
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
suites = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupMonsterCount
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
if L2_2 ~= 0 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CheckRemainGadgetCountByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 133106311
|
|
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_311009 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.AddQuestProgress
|
|
L3_2 = A0_2
|
|
L4_2 = "1331063111"
|
|
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 : add_quest_progress"
|
|
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_311009 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupMonsterCount
|
|
L3_2 = A0_2
|
|
L2_2 = L2_2(L3_2)
|
|
if L2_2 ~= 0 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CheckRemainGadgetCountByGroupId
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 133106311
|
|
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_GADGET_DIE_311010 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.AddQuestProgress
|
|
L3_2 = A0_2
|
|
L4_2 = "1331063111"
|
|
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 : add_quest_progress"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ANY_GADGET_DIE_311010 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetEntityType
|
|
L3_2 = A1_2.target_eid
|
|
L2_2 = L2_2(A0_2, L3_2)
|
|
L3_2 = EntityType
|
|
L3_2 = L3_2.AVATAR
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetQuestState
|
|
L3_2 = A0_2
|
|
L4_2 = A1_2.target_eid
|
|
L5_2 = 7082304
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = QuestState
|
|
L3_2 = L3_2.UNFINISHED
|
|
if L2_2 == L3_2 then
|
|
L2_2 = A1_2.param1
|
|
L3_2 = L1_1.gadget_1
|
|
if L2_2 == L3_2 then
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
end
|
|
end
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ENTER_REGION_311011 = L2_1
|