Grasscutter_Resources/Resources/Scripts/Scene/3/scene3_group133106907.lua
hartie95 0195075dab Added the context to all GetEntityType calls
* 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)/'`
2022-09-03 18:02:23 +02:00

378 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 = 133106907
L1_1 = {}
L1_1.gadget_1 = 907011
L2_1 = {}
L3_1 = {}
L3_1.config_id = 907001
L3_1.monster_id = 21011201
L4_1 = {}
L4_1.x = -659.866
L4_1.y = 206.453
L4_1.z = 1223.43
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 = 907004
L4_1.monster_id = 21011001
L5_1 = {}
L5_1.x = -657.539
L5_1.y = 206.159
L5_1.z = 1221.737
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 246.661
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.area_id = 8
L5_1 = {}
L5_1.config_id = 907005
L5_1.monster_id = 21020301
L6_1 = {}
L6_1.x = -653.57
L6_1.y = 207.827
L6_1.z = 1233.137
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 216.559
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 = 907006
L6_1.monster_id = 21011001
L7_1 = {}
L7_1.x = -653.544
L7_1.y = 208.563
L7_1.z = 1240.983
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 17.021
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.area_id = 8
L7_1 = {}
L7_1.config_id = 907007
L7_1.monster_id = 21030101
L8_1 = {}
L8_1.x = -656.25
L8_1.y = 207.154
L8_1.z = 1228.561
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 36.205
L8_1.z = 0.0
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 = 907008
L8_1.monster_id = 21011201
L9_1 = {}
L9_1.x = -647.567
L9_1.y = 208.814
L9_1.z = 1238.494
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.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 = 907002
L3_1.gadget_id = 70300075
L4_1 = {}
L4_1.x = -656.801
L4_1.y = 206.578
L4_1.z = 1225.829
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 4.307
L4_1.y = 115.684
L4_1.z = 0.854
L3_1.rot = L4_1
L3_1.level = 32
L3_1.area_id = 8
L4_1 = {}
L4_1.config_id = 907003
L4_1.gadget_id = 70300075
L5_1 = {}
L5_1.x = -650.793
L5_1.y = 208.223
L5_1.z = 1236.387
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.839
L5_1.y = 292.448
L5_1.z = 357.662
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 = 907011
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 30
L4_1 = {}
L4_1.x = -654.293
L4_1.y = 207.49
L4_1.z = 1230.76
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 = 1907009
L3_1.name = "ANY_MONSTER_DIE_907009"
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_907009"
L3_1.action = "action_EVENT_ANY_MONSTER_DIE_907009"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1907010
L4_1.name = "ANY_GADGET_DIE_907010"
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_907010"
L4_1.action = "action_EVENT_ANY_GADGET_DIE_907010"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1907011
L5_1.name = "ENTER_REGION_907011"
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_907011"
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 = 907001
L7_1 = 907004
L8_1 = 907005
L9_1 = 907006
L10_1 = 907007
L11_1 = 907008
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 = 907002
L7_1 = 907003
L5_1[1] = L6_1
L5_1[2] = L7_1
L4_1.gadgets = L5_1
L5_1 = {}
L6_1 = 907011
L5_1[1] = L6_1
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "ANY_MONSTER_DIE_907009"
L7_1 = "ANY_GADGET_DIE_907010"
L8_1 = "ENTER_REGION_907011"
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 = 133106907
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_907009 = 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 = "1331069071"
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_907009 = 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 = 133106907
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_907010 = 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 = "1331069071"
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_907010 = 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 = 7082302
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_907011 = L2_1