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

215 lines
4.1 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1
L0_1 = {}
L0_1.group_id = 133107934
L1_1 = {}
L1_1.gadget_1 = 934003
L1_1.gadget_2 = 934005
L1_1.gadget_3 = 934011
L2_1 = {}
L3_1 = {}
L3_1.config_id = 934001
L3_1.monster_id = 28020410
L4_1 = {}
L4_1.x = -604.779
L4_1.y = 204.809
L4_1.z = 130.059
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 = 1
L3_1.drop_tag = "\232\181\176\229\133\189"
L3_1.disableWander = true
L3_1.pose_id = 1
L3_1.area_id = 7
L4_1 = {}
L4_1.config_id = 934002
L4_1.monster_id = 28020409
L5_1 = {}
L5_1.x = -609.177
L5_1.y = 204.749
L5_1.z = 125.244
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 344.686
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L4_1.drop_tag = "\232\181\176\229\133\189"
L4_1.disableWander = true
L4_1.pose_id = 2
L4_1.area_id = 7
L5_1 = {}
L5_1.config_id = 934004
L5_1.monster_id = 28020410
L6_1 = {}
L6_1.x = -603.898
L6_1.y = 204.749
L6_1.z = 125.23
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 = 1
L5_1.drop_tag = "\232\181\176\229\133\189"
L5_1.disableWander = true
L5_1.pose_id = 3
L5_1.area_id = 7
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
gadgets = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 934003
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 13
L4_1 = {}
L4_1.x = -607.113
L4_1.y = 204.809
L4_1.z = 130.592
L3_1.pos = L4_1
L3_1.area_id = 7
L2_1[1] = L3_1
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1934003
L3_1.name = "ENTER_REGION_934003"
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_934003"
L3_1.action = "action_EVENT_ENTER_REGION_934003"
L3_1.trigger_count = 0
L2_1[1] = L3_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 = {}
L5_1 = 934001
L6_1 = 934002
L7_1 = 934004
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L3_1.monsters = L4_1
L4_1 = {}
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 934003
L4_1[1] = L5_1
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "ENTER_REGION_934003"
L4_1[1] = L5_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 = 7180902
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_934003 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.AddQuestProgress
L3_2 = A0_2
L4_2 = "1331079341"
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 = {}
L2_2.x = -607
L2_2.y = 205
L2_2.z = 130
L3_2 = {}
L3_2.x = 0
L3_2.y = 0
L3_2.z = 0
L4_2 = ScriptLib
L4_2 = L4_2.BeginCameraSceneLook
L5_2 = A0_2
L6_2 = {}
L6_2.look_pos = L2_2
L6_2.is_allow_input = false
L6_2.duration = 3
L6_2.is_force = true
L6_2.is_broadcast = false
L6_2.is_recover_keep_current = true
L6_2.delay = 0
L6_2.is_set_follow_pos = false
L6_2.follow_pos = L3_2
L6_2.is_force_walk = false
L6_2.is_change_play_mode = false
L6_2.is_set_screen_XY = false
L6_2.screen_x = 0
L6_2.screen_y = 0
L4_2 = L4_2(L5_2, L6_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : active_cameraLook_Begin"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = 0
return L4_2
end
action_EVENT_ENTER_REGION_934003 = L2_1