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)/'`
427 lines
7.9 KiB
Lua
427 lines
7.9 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1
|
|
L0_1 = {}
|
|
L0_1.group_id = 133102904
|
|
L1_1 = {}
|
|
L1_1.gadget_1 = 904010
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 904001
|
|
L3_1.monster_id = 20011201
|
|
L4_1 = {}
|
|
L4_1.x = 1538.712
|
|
L4_1.y = 251.361
|
|
L4_1.z = 413.951
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 237.611
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 18
|
|
L3_1.drop_id = 1000100
|
|
L3_1.disableWander = true
|
|
L3_1.area_id = 5
|
|
L4_1 = {}
|
|
L4_1.config_id = 904002
|
|
L4_1.monster_id = 20011201
|
|
L5_1 = {}
|
|
L5_1.x = 1534.797
|
|
L5_1.y = 251.107
|
|
L5_1.z = 415.049
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 194.705
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 18
|
|
L4_1.drop_id = 1000100
|
|
L4_1.disableWander = true
|
|
L4_1.area_id = 5
|
|
L5_1 = {}
|
|
L5_1.config_id = 904003
|
|
L5_1.monster_id = 20011301
|
|
L6_1 = {}
|
|
L6_1.x = 1536.243
|
|
L6_1.y = 251.781
|
|
L6_1.z = 411.728
|
|
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 = 18
|
|
L5_1.drop_id = 1000100
|
|
L5_1.disableWander = true
|
|
L5_1.area_id = 5
|
|
L6_1 = {}
|
|
L6_1.config_id = 904004
|
|
L6_1.monster_id = 26060101
|
|
L7_1 = {}
|
|
L7_1.x = 1530.334
|
|
L7_1.y = 251.323
|
|
L7_1.z = 414.464
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 303.683
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 18
|
|
L6_1.drop_id = 1000100
|
|
L6_1.disableWander = true
|
|
L6_1.area_id = 5
|
|
L7_1 = {}
|
|
L7_1.config_id = 904005
|
|
L7_1.monster_id = 26060101
|
|
L8_1 = {}
|
|
L8_1.x = 1532.257
|
|
L8_1.y = 251.121
|
|
L8_1.z = 414.209
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 99.377
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 18
|
|
L7_1.drop_id = 1000100
|
|
L7_1.disableWander = true
|
|
L7_1.area_id = 5
|
|
L8_1 = {}
|
|
L8_1.config_id = 904006
|
|
L8_1.monster_id = 26060101
|
|
L9_1 = {}
|
|
L9_1.x = 1532.841
|
|
L9_1.y = 250.644
|
|
L9_1.z = 416.712
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 0.0
|
|
L9_1.y = 273.266
|
|
L9_1.z = 0.0
|
|
L8_1.rot = L9_1
|
|
L8_1.level = 18
|
|
L8_1.drop_id = 1000100
|
|
L8_1.disableWander = true
|
|
L8_1.area_id = 5
|
|
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 = 904007
|
|
L3_1.gadget_id = 70500000
|
|
L4_1 = {}
|
|
L4_1.x = 1546.072
|
|
L4_1.y = 251.86
|
|
L4_1.z = 418.052
|
|
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 = 18
|
|
L3_1.point_type = 9112
|
|
L3_1.area_id = 5
|
|
L4_1 = {}
|
|
L4_1.config_id = 904008
|
|
L4_1.gadget_id = 70500000
|
|
L5_1 = {}
|
|
L5_1.x = 1538.584
|
|
L5_1.y = 251.745
|
|
L5_1.z = 407.873
|
|
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 = 18
|
|
L4_1.point_type = 9114
|
|
L4_1.area_id = 5
|
|
L5_1 = {}
|
|
L5_1.config_id = 904009
|
|
L5_1.gadget_id = 70500000
|
|
L6_1 = {}
|
|
L6_1.x = 1520.849
|
|
L6_1.y = 250.886
|
|
L6_1.z = 424.055
|
|
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 = 18
|
|
L5_1.point_type = 9115
|
|
L5_1.area_id = 5
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 904010
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.SPHERE
|
|
L3_1.shape = L4_1
|
|
L3_1.radius = 25
|
|
L4_1 = {}
|
|
L4_1.x = 1537.266
|
|
L4_1.y = 251.336
|
|
L4_1.z = 414.425
|
|
L3_1.pos = L4_1
|
|
L3_1.area_id = 5
|
|
L2_1[1] = L3_1
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1904010
|
|
L3_1.name = "ENTER_REGION_904010"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_ENTER_REGION
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_ENTER_REGION_904010"
|
|
L3_1.action = ""
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1904011
|
|
L4_1.name = "ANY_MONSTER_DIE_904011"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_ANY_MONSTER_DIE
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_ANY_MONSTER_DIE_904011"
|
|
L4_1.action = "action_EVENT_ANY_MONSTER_DIE_904011"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1904012
|
|
L5_1.name = "ANY_MONSTER_DIE_904012"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_ANY_MONSTER_DIE
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = ""
|
|
L5_1.action = "action_EVENT_ANY_MONSTER_DIE_904012"
|
|
L5_1.trigger_count = 0
|
|
L6_1 = {}
|
|
L6_1.config_id = 1904013
|
|
L6_1.name = "QUEST_START_904013"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_QUEST_START
|
|
L6_1.event = L7_1
|
|
L6_1.source = "2211503"
|
|
L6_1.condition = "condition_EVENT_QUEST_START_904013"
|
|
L6_1.action = "action_EVENT_QUEST_START_904013"
|
|
L6_1.trigger_count = 0
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
L2_1[4] = L6_1
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.configId = 1
|
|
L3_1.name = "monster_killed"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = false
|
|
L2_1[1] = L3_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
|
|
L3_1.ban_refresh = true
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L6_1 = 904001
|
|
L7_1 = 904002
|
|
L8_1 = 904003
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L4_1.monsters = L5_1
|
|
L5_1 = {}
|
|
L4_1.gadgets = L5_1
|
|
L5_1 = {}
|
|
L6_1 = 904010
|
|
L5_1[1] = L6_1
|
|
L4_1.regions = L5_1
|
|
L5_1 = {}
|
|
L6_1 = "ENTER_REGION_904010"
|
|
L7_1 = "ANY_MONSTER_DIE_904011"
|
|
L8_1 = "ANY_MONSTER_DIE_904012"
|
|
L9_1 = "QUEST_START_904013"
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L5_1[3] = L8_1
|
|
L5_1[4] = L9_1
|
|
L4_1.triggers = L5_1
|
|
L4_1.rand_weight = 100
|
|
L4_1.ban_refresh = true
|
|
L5_1 = {}
|
|
L6_1 = {}
|
|
L5_1.monsters = L6_1
|
|
L6_1 = {}
|
|
L7_1 = 904007
|
|
L8_1 = 904008
|
|
L9_1 = 904009
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_1
|
|
L6_1[3] = L9_1
|
|
L5_1.gadgets = L6_1
|
|
L6_1 = {}
|
|
L5_1.regions = L6_1
|
|
L6_1 = {}
|
|
L5_1.triggers = L6_1
|
|
L5_1.rand_weight = 100
|
|
L5_1.ban_refresh = true
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
suites = 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 = 2211502
|
|
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_904010 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_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 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ANY_MONSTER_DIE_904011 = 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 = "1331029041"
|
|
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_904011 = 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.SetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "monster_killed"
|
|
L5_2 = 1
|
|
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_groupVariable"
|
|
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_904012 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "monster_killed"
|
|
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_QUEST_START_904013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.RefreshGroup
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 133102904
|
|
L4_2.suite = 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 : refresh_group_to_suite"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_QUEST_START_904013 = L2_1
|