Grasscutter_Resources/Resources/Scripts/Scene/3/scene3_group133001902.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

159 lines
3.0 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1
L0_1 = {}
L0_1.group_id = 133001902
L1_1 = {}
L1_1.gadget_id_1 = 186
L1_1.gadget_id_2 = 217
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
gadgets = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 186
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 56.8
L4_1 = {}
L4_1.x = 1377.414
L4_1.y = 234.022
L4_1.z = -1562.365
L3_1.pos = L4_1
L3_1.area_id = 2
L4_1 = {}
L4_1.config_id = 217
L5_1 = RegionShape
L5_1 = L5_1.SPHERE
L4_1.shape = L5_1
L4_1.radius = 4
L5_1 = {}
L5_1.x = 1372.815
L5_1.y = 236.045
L5_1.z = -1570.076
L4_1.pos = L5_1
L4_1.area_id = 2
L2_1[1] = L3_1
L2_1[2] = L4_1
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1000186
L3_1.name = "ENTER_REGION_186"
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_186"
L3_1.action = ""
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1000217
L4_1.name = "ENTER_REGION_217"
L5_1 = EventType
L5_1 = L5_1.EVENT_ENTER_REGION
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_ENTER_REGION_217"
L4_1.action = ""
L4_1.trigger_count = 0
L2_1[1] = L3_1
L2_1[2] = L4_1
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "JZ"
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 = true
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 186
L6_1 = 217
L4_1[1] = L5_1
L4_1[2] = L6_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "ENTER_REGION_186"
L6_1 = "ENTER_REGION_217"
L4_1[1] = L5_1
L4_1[2] = L6_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, 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 = 41801
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_id_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_186 = 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 = 41803
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_id_2
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_217 = L2_1