diff --git a/Resources/Scripts/Scene/20011/scene20011.lua b/Resources/Scripts/Scene/20011/scene20011.lua index e470b106b..3d10814c7 100644 --- a/Resources/Scripts/Scene/20011/scene20011.lua +++ b/Resources/Scripts/Scene/20011/scene20011.lua @@ -1,50 +1,26 @@ -local L0_1, L1_1, L2_1 -L0_1 = {} -L1_1 = {} -L1_1.x = -3183.1 -L1_1.z = -3914.8 -L0_1.begin_pos = L1_1 -L1_1 = {} -L1_1.x = 7251.8 -L1_1.z = 7647.9 -L0_1.size = L1_1 -L1_1 = {} -L1_1.x = 549.825 -L1_1.y = -43.0 -L1_1.z = 36.335 -L0_1.born_pos = L1_1 -L1_1 = {} -L1_1.x = 0.0 -L1_1.y = 0.0 -L1_1.z = 0.0 -L0_1.born_rot = L1_1 -L0_1.die_y = -80 -L1_1 = {} -L1_1.x = -3183.1 -L1_1.z = -3914.8 -L0_1.vision_anchor = L1_1 -scene_config = L0_1 -L0_1 = {} -L1_1 = 20011 -L0_1[1] = L1_1 -blocks = L0_1 -L0_1 = {} -L1_1 = {} -L2_1 = {} -L2_1.x = -3183.1 -L2_1.z = -3914.8 -L1_1.min = L2_1 -L2_1 = {} -L2_1.x = 4068.8 -L2_1.z = 3733.1 -L1_1.max = L2_1 -L0_1[1] = L1_1 -block_rects = L0_1 -L0_1 = {} -L1_1 = "dummy_points" -L0_1[1] = L1_1 -dummy_points = L0_1 -L0_1 = {} -L1_1 = "routes" -L0_1[1] = L1_1 -routes_config = L0_1 +scene_config = { + begin_pos = { x = -3183.1, z = -3914.8 }, + size = { x = 7251.8, z = 7647.9 }, + born_pos = { x = 549.825, y = -43.0, z = 36.335 }, + born_rot = { x = 0.0, y = 0.0, z = 0.0 }, + die_y = -80, + vision_anchor = { x = -3183.1, z = -3914.8 } +} +blocks = { + 20011 +} + +block_rects = { + { + min = { x = -3183.1, z = -3914.8 }, + max = { x = 4068.8, z = 3733.1 } + } +} + +dummy_points = { + "dummy_points" +} + +routes_config = { + "routes" +} diff --git a/Resources/Scripts/Scene/20011/scene20011_block20011.lua b/Resources/Scripts/Scene/20011/scene20011_block20011.lua index 957f51f86..5768073f8 100644 --- a/Resources/Scripts/Scene/20011/scene20011_block20011.lua +++ b/Resources/Scripts/Scene/20011/scene20011_block20011.lua @@ -1,65 +1,9 @@ -local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1 -L0_1 = {} -L1_1 = {} -L1_1.id = 220011001 -L1_1.refresh_id = 1001 -L2_1 = {} -L2_1.x = 482.533 -L2_1.y = -21.557 -L2_1.z = 67.901 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.id = 220011002 -L2_1.refresh_id = 1001 -L3_1 = {} -L3_1.x = 404.611 -L3_1.y = -22.097 -L3_1.z = 123.562 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.id = 220011003 -L3_1.refresh_id = 1001 -L4_1 = {} -L4_1.x = 487.411 -L4_1.y = -21.557 -L4_1.z = 120.364 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.id = 220011004 -L4_1.refresh_id = 1 -L5_1 = {} -L5_1.x = 532.904 -L5_1.y = -1.984 -L5_1.z = 242.369 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.id = 220011006 -L5_1.refresh_id = 1001 -L6_1 = {} -L6_1.x = 411.579 -L6_1.y = -22.05 -L6_1.z = 67.135 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.id = 220011007 -L6_1.refresh_id = 1 -L7_1 = {} -L7_1.x = 512.678 -L7_1.y = -37.384 -L7_1.z = 70.972 -L6_1.pos = L7_1 -L7_1 = {} -L7_1.id = 220011901 -L8_1 = {} -L8_1.x = 514.882 -L8_1.y = -37.384 -L8_1.z = 72.99 -L7_1.pos = L8_1 -L0_1[1] = L1_1 -L0_1[2] = L2_1 -L0_1[3] = L3_1 -L0_1[4] = L4_1 -L0_1[5] = L5_1 -L0_1[6] = L6_1 -L0_1[7] = L7_1 -groups = L0_1 +groups = { + { id = 220011001, refresh_id = 1001, pos = { x = 482.533, y = -21.557, z = 67.901 } }, + { id = 220011002, refresh_id = 1001, pos = { x = 404.611, y = -22.097, z = 123.562 } }, + { id = 220011003, refresh_id = 1001, pos = { x = 487.411, y = -21.557, z = 120.364 } }, + { id = 220011004, refresh_id = 1, pos = { x = 532.904, y = -1.984, z = 242.369 } }, + { id = 220011006, refresh_id = 1001, pos = { x = 411.579, y = -22.05, z = 67.135 } }, + { id = 220011007, refresh_id = 1, pos = { x = 512.678, y = -37.384, z = 70.972 } }, + { id = 220011901, pos = { x = 514.882, y = -37.384, z = 72.99 } } +} \ No newline at end of file diff --git a/Resources/Scripts/Scene/20011/scene20011_dummy_points.lua b/Resources/Scripts/Scene/20011/scene20011_dummy_points.lua index 37d0b4c44..0e793140c 100644 --- a/Resources/Scripts/Scene/20011/scene20011_dummy_points.lua +++ b/Resources/Scripts/Scene/20011/scene20011_dummy_points.lua @@ -1,87 +1,9 @@ -local L0_1, L1_1, L2_1 -L0_1 = {} -L1_1 = {} -L2_1 = {} -L2_1.x = 550.087 -L2_1.y = -38.184 -L2_1.z = 59.971 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.x = 0.0 -L2_1.y = 0.0 -L2_1.z = 0.0 -L1_1.rot = L2_1 -L0_1.Q30812Player = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.x = 535.24 -L2_1.y = -1.984 -L2_1.z = 252.617 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.x = 0.0 -L2_1.y = 241.24 -L2_1.z = 0.0 -L1_1.rot = L2_1 -L0_1.Q308Lisa = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.x = 550.122 -L2_1.y = -38.15 -L2_1.z = 62.006 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.x = 0.0 -L2_1.y = 179.45 -L2_1.z = 0.0 -L1_1.rot = L2_1 -L0_1.Q308LisaDungeon = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.x = 550.122 -L2_1.y = -38.15 -L2_1.z = 62.006 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.x = 0.0 -L2_1.y = 0.0 -L2_1.z = 0.0 -L1_1.rot = L2_1 -L0_1.Q308LisaWay = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.x = 533.844 -L2_1.y = -1.984 -L2_1.z = 250.744 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.x = 0.0 -L2_1.y = 31.312 -L2_1.z = 0.0 -L1_1.rot = L2_1 -L0_1.Q308Paimon = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.x = 533.174 -L2_1.y = -1.953 -L2_1.z = 251.773 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.x = 0.0 -L2_1.y = 73.661 -L2_1.z = 0.0 -L1_1.rot = L2_1 -L0_1.Q308Player = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.x = 474.457 -L2_1.y = -20.033 -L2_1.z = 72.402 -L1_1.pos = L2_1 -L2_1 = {} -L2_1.x = 0.0 -L2_1.y = 0.0 -L2_1.z = 0.0 -L1_1.rot = L2_1 -L0_1.Q308SavePointIntro = L1_1 -dummy_points = L0_1 +dummy_points = { + Q30812Player = { pos = { x = 550.087, y = -38.184, z = 59.971 }, rot = { x = 0, y = 0, z = 0 } }, + Q308Lisa = { pos = { x = 535.24, y = -1.984, z = 252.617 }, rot = { x = 0, y = 241.24, z = 0 } }, + Q308LisaDungeon = { pos = { x = 550.122, y = -38.15, z = 62.006 }, rot = { x = 0, y = 179.45, z = 0 } }, + Q308LisaWay = { pos = { x = 550.122, y = -38.15, z = 62.006 }, rot = { x = 0, y = 0, z = 0 } }, + Q308Paimon = { pos = { x = 533.844, y = -1.984, z = 250.744 }, rot = { x = 0, y = 31.312, z = 0 } }, + Q308Player = { pos = { x = 533.174, y = -1.953, z = 251.773 }, rot = { x = 0, y = 73.661, z = 0 } }, + Q308SavePointIntro = { pos = { x = 474.457, y = -20.033, z = 72.402 }, rot = { x = 0, y = 0, z = 0 } } +} \ No newline at end of file diff --git a/Resources/Scripts/Scene/20011/scene20011_group220011001.lua b/Resources/Scripts/Scene/20011/scene20011_group220011001.lua index e15414cc4..66cd95f49 100644 --- a/Resources/Scripts/Scene/20011/scene20011_group220011001.lua +++ b/Resources/Scripts/Scene/20011/scene20011_group220011001.lua @@ -1,2574 +1,619 @@ -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, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1, L30_1, L31_1, L32_1, L33_1, L34_1, L35_1, L36_1, L37_1, L38_1, L39_1, L40_1, L41_1, L42_1, L43_1, L44_1, L45_1, L46_1, L47_1 -L0_1 = {} -L0_1.group_id = 220011001 -L1_1 = {} -L1_1.gadget_id_1 = 1047 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 1001 -L3_1.monster_id = 20011201 -L4_1 = {} -L4_1.x = 448.686 -L4_1.y = -24.413 -L4_1.z = 68.376 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 92.335 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 3 -L2_1[1] = L3_1 -monsters = L2_1 -L2_1 = {} -npcs = L2_1 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 1002 -L3_1.gadget_id = 70211101 -L4_1 = {} -L4_1.x = 507.446 -L4_1.y = -37.485 -L4_1.z = 83.806 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 182.26 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 1 -L3_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\232\146\153\229\190\183" -L3_1.isOneoff = true -L4_1 = {} -L4_1.config_id = 1003 -L4_1.gadget_id = 70350002 -L5_1 = {} -L5_1.x = 469.561 -L5_1.y = -20.423 -L5_1.z = 67.499 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.x = 0.0 -L5_1.y = 90.0 -L5_1.z = 0.0 -L4_1.rot = L5_1 -L4_1.level = 1 -L5_1 = {} -L5_1.config_id = 1004 -L5_1.gadget_id = 70360002 -L6_1 = {} -L6_1.x = 475.525 -L6_1.y = -20.035 -L6_1.z = 63.895 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.x = 0.0 -L6_1.y = 90.056 -L6_1.z = 0.0 -L5_1.rot = L6_1 -L5_1.level = 1 -L6_1 = {} -L6_1.config_id = 1005 -L6_1.gadget_id = 70211001 -L7_1 = {} -L7_1.x = 428.371 -L7_1.y = -22.064 -L7_1.z = 53.57 -L6_1.pos = L7_1 -L7_1 = {} -L7_1.x = 0.0 -L7_1.y = 321.609 -L7_1.z = 0.0 -L6_1.rot = L7_1 -L6_1.level = 1 -L6_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\232\146\153\229\190\183" -L6_1.isOneoff = true -L7_1 = {} -L7_1.config_id = 1006 -L7_1.gadget_id = 70350002 -L8_1 = {} -L8_1.x = 406.374 -L8_1.y = -22.161 -L8_1.z = 81.408 -L7_1.pos = L8_1 -L8_1 = {} -L8_1.x = 0.0 -L8_1.y = 180.21 -L8_1.z = 0.0 -L7_1.rot = L8_1 -L7_1.level = 1 -L8_1 = {} -L8_1.config_id = 1007 -L8_1.gadget_id = 70350002 -L9_1 = {} -L9_1.x = 423.516 -L9_1.y = -22.097 -L9_1.z = 71.1 -L8_1.pos = L9_1 -L9_1 = {} -L9_1.x = 0.0 -L9_1.y = 90.0 -L9_1.z = 0.0 -L8_1.rot = L9_1 -L8_1.level = 1 -L9_1 = {} -L9_1.config_id = 1008 -L9_1.gadget_id = 70220013 -L10_1 = {} -L10_1.x = 490.493 -L10_1.y = -20.051 -L10_1.z = 78.232 -L9_1.pos = L10_1 -L10_1 = {} -L10_1.x = 0.0 -L10_1.y = 41.505 -L10_1.z = 0.0 -L9_1.rot = L10_1 -L9_1.level = 1 -L10_1 = {} -L10_1.config_id = 1009 -L10_1.gadget_id = 70220013 -L11_1 = {} -L11_1.x = 491.485 -L11_1.y = -20.265 -L11_1.z = 75.821 -L10_1.pos = L11_1 -L11_1 = {} -L11_1.x = 0.0 -L11_1.y = 272.591 -L11_1.z = 0.0 -L10_1.rot = L11_1 -L10_1.level = 1 -L11_1 = {} -L11_1.config_id = 1010 -L11_1.gadget_id = 70211101 -L12_1 = {} -L12_1.x = 495.062 -L12_1.y = -20.033 -L12_1.z = 77.011 -L11_1.pos = L12_1 -L12_1 = {} -L12_1.x = 0.0 -L12_1.y = 75.558 -L12_1.z = 0.0 -L11_1.rot = L12_1 -L11_1.level = 1 -L11_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\232\146\153\229\190\183" -L11_1.isOneoff = true -L12_1 = {} -L12_1.config_id = 1011 -L12_1.gadget_id = 70220014 -L13_1 = {} -L13_1.x = 489.414 -L13_1.y = -20.334 -L13_1.z = 79.56 -L12_1.pos = L13_1 -L13_1 = {} -L13_1.x = 0.0 -L13_1.y = 283.946 -L13_1.z = 0.0 -L12_1.rot = L13_1 -L12_1.level = 1 -L13_1 = {} -L13_1.config_id = 1012 -L13_1.gadget_id = 70220013 -L14_1 = {} -L14_1.x = 502.881 -L14_1.y = -37.317 -L14_1.z = 81.759 -L13_1.pos = L14_1 -L14_1 = {} -L14_1.x = 0.0 -L14_1.y = 351.358 -L14_1.z = 0.0 -L13_1.rot = L14_1 -L13_1.level = 1 -L14_1 = {} -L14_1.config_id = 1013 -L14_1.gadget_id = 70220013 -L15_1 = {} -L15_1.x = 505.355 -L15_1.y = -37.535 -L15_1.z = 82.002 -L14_1.pos = L15_1 -L15_1 = {} -L15_1.x = 0.0 -L15_1.y = 314.506 -L15_1.z = 0.0 -L14_1.rot = L15_1 -L14_1.level = 1 -L15_1 = {} -L15_1.config_id = 1014 -L15_1.gadget_id = 70220013 -L16_1 = {} -L16_1.x = 504.487 -L16_1.y = -37.735 -L16_1.z = 80.146 -L15_1.pos = L16_1 -L16_1 = {} -L16_1.x = 0.0 -L16_1.y = 290.533 -L16_1.z = 0.0 -L15_1.rot = L16_1 -L15_1.level = 1 -L16_1 = {} -L16_1.config_id = 1015 -L16_1.gadget_id = 70310002 -L17_1 = {} -L17_1.x = 494.202 -L17_1.y = -26.998 -L17_1.z = 70.886 -L16_1.pos = L17_1 -L17_1 = {} -L17_1.x = 0.0 -L17_1.y = 90.0 -L17_1.z = 0.0 -L16_1.rot = L17_1 -L16_1.level = 1 -L17_1 = {} -L17_1.config_id = 1016 -L17_1.gadget_id = 70310002 -L18_1 = {} -L18_1.x = 494.425 -L18_1.y = -26.764 -L18_1.z = 64.127 -L17_1.pos = L18_1 -L18_1 = {} -L18_1.x = 0.0 -L18_1.y = 90.0 -L18_1.z = 0.0 -L17_1.rot = L18_1 -L17_1.level = 1 -L18_1 = {} -L18_1.config_id = 1017 -L18_1.gadget_id = 70310002 -L19_1 = {} -L19_1.x = 495.341 -L19_1.y = -16.234 -L19_1.z = 72.0 -L18_1.pos = L19_1 -L19_1 = {} -L19_1.x = 0.0 -L19_1.y = 180.0 -L19_1.z = 0.0 -L18_1.rot = L19_1 -L18_1.level = 1 -L19_1 = {} -L19_1.config_id = 1018 -L19_1.gadget_id = 70310002 -L20_1 = {} -L20_1.x = 494.991 -L20_1.y = -16.363 -L20_1.z = 63.191 -L19_1.pos = L20_1 -L20_1 = {} -L20_1.x = 0.0 -L20_1.y = 0.0 -L20_1.z = 0.0 -L19_1.rot = L20_1 -L19_1.level = 1 -L20_1 = {} -L20_1.config_id = 1019 -L20_1.gadget_id = 70310002 -L21_1 = {} -L21_1.x = 450.161 -L21_1.y = -19.643 -L21_1.z = 64.219 -L20_1.pos = L21_1 -L21_1 = {} -L21_1.x = 0.0 -L21_1.y = 0.0 -L21_1.z = 0.0 -L20_1.rot = L21_1 -L20_1.level = 1 -L21_1 = {} -L21_1.config_id = 1020 -L21_1.gadget_id = 70310001 -L22_1 = {} -L22_1.x = 425.898 -L22_1.y = -22.324 -L22_1.z = 65.538 -L21_1.pos = L22_1 -L22_1 = {} -L22_1.x = 0.0 -L22_1.y = 90.0 -L22_1.z = 0.0 -L21_1.rot = L22_1 -L21_1.level = 1 -L22_1 = {} -L22_1.config_id = 1021 -L22_1.gadget_id = 70310001 -L23_1 = {} -L23_1.x = 425.962 -L23_1.y = -22.151 -L23_1.z = 76.792 -L22_1.pos = L23_1 -L23_1 = {} -L23_1.x = 0.0 -L23_1.y = 90.0 -L23_1.z = 0.0 -L22_1.rot = L23_1 -L22_1.level = 1 -L23_1 = {} -L23_1.config_id = 1022 -L23_1.gadget_id = 70310001 -L24_1 = {} -L24_1.x = 400.746 -L24_1.y = -20.073 -L24_1.z = 78.909 -L23_1.pos = L24_1 -L24_1 = {} -L24_1.x = 0.0 -L24_1.y = 180.0 -L24_1.z = 0.0 -L23_1.rot = L24_1 -L23_1.level = 1 -L24_1 = {} -L24_1.config_id = 1023 -L24_1.gadget_id = 70310001 -L25_1 = {} -L25_1.x = 411.845 -L25_1.y = -20.076 -L25_1.z = 78.945 -L24_1.pos = L25_1 -L25_1 = {} -L25_1.x = 0.0 -L25_1.y = 180.0 -L25_1.z = 0.0 -L24_1.rot = L25_1 -L24_1.level = 1 -L25_1 = {} -L25_1.config_id = 1024 -L25_1.gadget_id = 70310002 -L26_1 = {} -L26_1.x = 472.137 -L26_1.y = -15.665 -L26_1.z = 61.579 -L25_1.pos = L26_1 -L26_1 = {} -L26_1.x = 0.0 -L26_1.y = 90.0 -L26_1.z = 0.0 -L25_1.rot = L26_1 -L25_1.level = 1 -L26_1 = {} -L26_1.config_id = 1025 -L26_1.gadget_id = 70310002 -L27_1 = {} -L27_1.x = 472.14 -L27_1.y = -15.58 -L27_1.z = 73.325 -L26_1.pos = L27_1 -L27_1 = {} -L27_1.x = 0.0 -L27_1.y = 90.0 -L27_1.z = 0.0 -L26_1.rot = L27_1 -L26_1.level = 1 -L27_1 = {} -L27_1.config_id = 1026 -L27_1.gadget_id = 70310002 -L28_1 = {} -L28_1.x = 500.972 -L28_1.y = -31.446 -L28_1.z = 84.375 -L27_1.pos = L28_1 -L28_1 = {} -L28_1.x = 0.0 -L28_1.y = 90.0 -L28_1.z = 0.0 -L27_1.rot = L28_1 -L27_1.level = 1 -L28_1 = {} -L28_1.config_id = 1027 -L28_1.gadget_id = 70310001 -L29_1 = {} -L29_1.x = 420.841 -L29_1.y = -22.084 -L29_1.z = 58.142 -L28_1.pos = L29_1 -L29_1 = {} -L29_1.x = 0.0 -L29_1.y = 98.952 -L29_1.z = 0.0 -L28_1.rot = L29_1 -L28_1.level = 1 -L29_1 = {} -L29_1.config_id = 1028 -L29_1.gadget_id = 70310001 -L30_1 = {} -L30_1.x = 544.595 -L30_1.y = -42.056 -L30_1.z = 46.233 -L29_1.pos = L30_1 -L30_1 = {} -L30_1.x = 0.0 -L30_1.y = 223.245 -L30_1.z = 0.0 -L29_1.rot = L30_1 -L29_1.level = 1 -L30_1 = {} -L30_1.config_id = 1029 -L30_1.gadget_id = 70310001 -L31_1 = {} -L31_1.x = 555.298 -L31_1.y = -42.02 -L31_1.z = 46.185 -L30_1.pos = L31_1 -L31_1 = {} -L31_1.x = 0.0 -L31_1.y = 183.036 -L31_1.z = 0.0 -L30_1.rot = L31_1 -L30_1.level = 1 -L31_1 = {} -L31_1.config_id = 1030 -L31_1.gadget_id = 70310001 -L32_1 = {} -L32_1.x = 544.739 -L32_1.y = -43.356 -L32_1.z = 40.212 -L31_1.pos = L32_1 -L32_1 = {} -L32_1.x = 0.0 -L32_1.y = 63.973 -L32_1.z = 0.0 -L31_1.rot = L32_1 -L31_1.level = 1 -L32_1 = {} -L32_1.config_id = 1031 -L32_1.gadget_id = 70310001 -L33_1 = {} -L33_1.x = 555.476 -L33_1.y = -43.385 -L33_1.z = 40.564 -L32_1.pos = L33_1 -L33_1 = {} -L33_1.x = 0.0 -L33_1.y = 83.172 -L33_1.z = 0.0 -L32_1.rot = L33_1 -L32_1.level = 1 -L33_1 = {} -L33_1.config_id = 1032 -L33_1.gadget_id = 70310001 -L34_1 = {} -L34_1.x = 555.558 -L34_1.y = -40.544 -L34_1.z = 51.271 -L33_1.pos = L34_1 -L34_1 = {} -L34_1.x = 0.0 -L34_1.y = 76.84 -L34_1.z = 0.0 -L33_1.rot = L34_1 -L33_1.level = 1 -L34_1 = {} -L34_1.config_id = 1033 -L34_1.gadget_id = 70310001 -L35_1 = {} -L35_1.x = 544.648 -L35_1.y = -40.557 -L35_1.z = 51.131 -L34_1.pos = L35_1 -L35_1 = {} -L35_1.x = 0.0 -L35_1.y = 265.978 -L35_1.z = 0.0 -L34_1.rot = L35_1 -L34_1.level = 1 -L35_1 = {} -L35_1.config_id = 1034 -L35_1.gadget_id = 70310001 -L36_1 = {} -L36_1.x = 555.398 -L36_1.y = -39.273 -L36_1.z = 55.224 -L35_1.pos = L36_1 -L36_1 = {} -L36_1.x = 0.0 -L36_1.y = 209.609 -L36_1.z = 0.0 -L35_1.rot = L36_1 -L35_1.level = 1 -L36_1 = {} -L36_1.config_id = 1035 -L36_1.gadget_id = 70310001 -L37_1 = {} -L37_1.x = 544.782 -L37_1.y = -39.282 -L37_1.z = 55.27 -L36_1.pos = L37_1 -L37_1 = {} -L37_1.x = 0.0 -L37_1.y = 97.228 -L37_1.z = 0.0 -L36_1.rot = L37_1 -L36_1.level = 1 -L37_1 = {} -L37_1.config_id = 1036 -L37_1.gadget_id = 70310001 -L38_1 = {} -L38_1.x = 555.31 -L38_1.y = -38.151 -L38_1.z = 71.121 -L37_1.pos = L38_1 -L38_1 = {} -L38_1.x = 0.0 -L38_1.y = 348.422 -L38_1.z = 0.0 -L37_1.rot = L38_1 -L37_1.level = 1 -L38_1 = {} -L38_1.config_id = 1037 -L38_1.gadget_id = 70310001 -L39_1 = {} -L39_1.x = 545.1 -L39_1.y = -38.135 -L39_1.z = 71.161 -L38_1.pos = L39_1 -L39_1 = {} -L39_1.x = 0.0 -L39_1.y = 239.016 -L39_1.z = 0.0 -L38_1.rot = L39_1 -L38_1.level = 1 -L39_1 = {} -L39_1.config_id = 1038 -L39_1.gadget_id = 70310001 -L40_1 = {} -L40_1.x = 555.394 -L40_1.y = -38.213 -L40_1.z = 81.758 -L39_1.pos = L40_1 -L40_1 = {} -L40_1.x = 0.0 -L40_1.y = 21.28 -L40_1.z = 0.0 -L39_1.rot = L40_1 -L39_1.level = 1 -L40_1 = {} -L40_1.config_id = 1039 -L40_1.gadget_id = 70310001 -L41_1 = {} -L41_1.x = 545.119 -L41_1.y = -38.184 -L41_1.z = 81.482 -L40_1.pos = L41_1 -L41_1 = {} -L41_1.x = 0.0 -L41_1.y = 100.803 -L41_1.z = 0.0 -L40_1.rot = L41_1 -L40_1.level = 1 -L41_1 = {} -L41_1.config_id = 1040 -L41_1.gadget_id = 70900202 -L42_1 = {} -L42_1.x = 532.301 -L42_1.y = 2.338 -L42_1.z = 219.869 -L41_1.pos = L42_1 -L42_1 = {} -L42_1.x = 0.0 -L42_1.y = 331.636 -L42_1.z = 0.0 -L41_1.rot = L42_1 -L41_1.level = 1 -L42_1 = {} -L42_1.config_id = 1041 -L42_1.gadget_id = 70900202 -L43_1 = {} -L43_1.x = 496.332 -L43_1.y = -34.534 -L43_1.z = 67.662 -L42_1.pos = L43_1 -L43_1 = {} -L43_1.x = 0.0 -L43_1.y = 274.978 -L43_1.z = 0.0 -L42_1.rot = L43_1 -L42_1.level = 1 -L43_1 = {} -L43_1.config_id = 1042 -L43_1.gadget_id = 70900202 -L44_1 = {} -L44_1.x = 475.449 -L44_1.y = -18.451 -L44_1.z = 63.887 -L43_1.pos = L44_1 -L44_1 = {} -L44_1.x = 0.0 -L44_1.y = 162.878 -L44_1.z = 0.0 -L43_1.rot = L44_1 -L43_1.level = 1 -L44_1 = {} -L44_1.config_id = 1047 -L44_1.gadget_id = 70900008 -L45_1 = {} -L45_1.x = 410.549 -L45_1.y = -22.101 -L45_1.z = 63.921 -L44_1.pos = L45_1 -L45_1 = {} -L45_1.x = 0.0 -L45_1.y = 0.0 -L45_1.z = 0.0 -L44_1.rot = L45_1 -L44_1.level = 1 -L45_1 = {} -L45_1.config_id = 1048 -L45_1.gadget_id = 70211002 -L46_1 = {} -L46_1.x = 400.092 -L46_1.y = -22.083 -L46_1.z = 65.379 -L45_1.pos = L46_1 -L46_1 = {} -L46_1.x = 0.0 -L46_1.y = 91.011 -L46_1.z = 0.0 -L45_1.rot = L46_1 -L45_1.level = 1 -L45_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\232\146\153\229\190\183" -L46_1 = GadgetState -L46_1 = L46_1.ChestLocked -L45_1.state = L46_1 -L45_1.isOneoff = true -L46_1 = {} -L46_1.config_id = 1049 -L46_1.gadget_id = 70900201 -L47_1 = {} -L47_1.x = 533.887 -L47_1.y = -1.984 -L47_1.z = 248.031 -L46_1.pos = L47_1 -L47_1 = {} -L47_1.x = 0.0 -L47_1.y = 120.05 -L47_1.z = 0.0 -L46_1.rot = L47_1 -L46_1.level = 1 -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 -L2_1[7] = L9_1 -L2_1[8] = L10_1 -L2_1[9] = L11_1 -L2_1[10] = L12_1 -L2_1[11] = L13_1 -L2_1[12] = L14_1 -L2_1[13] = L15_1 -L2_1[14] = L16_1 -L2_1[15] = L17_1 -L2_1[16] = L18_1 -L2_1[17] = L19_1 -L2_1[18] = L20_1 -L2_1[19] = L21_1 -L2_1[20] = L22_1 -L2_1[21] = L23_1 -L2_1[22] = L24_1 -L2_1[23] = L25_1 -L2_1[24] = L26_1 -L2_1[25] = L27_1 -L2_1[26] = L28_1 -L2_1[27] = L29_1 -L2_1[28] = L30_1 -L2_1[29] = L31_1 -L2_1[30] = L32_1 -L2_1[31] = L33_1 -L2_1[32] = L34_1 -L2_1[33] = L35_1 -L2_1[34] = L36_1 -L2_1[35] = L37_1 -L2_1[36] = L38_1 -L2_1[37] = L39_1 -L2_1[38] = L40_1 -L2_1[39] = L41_1 -L2_1[40] = L42_1 -L2_1[41] = L43_1 -L2_1[42] = L44_1 -L2_1[43] = L45_1 -L2_1[44] = L46_1 -gadgets = L2_1 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 13 -L4_1 = RegionShape -L4_1 = L4_1.SPHERE -L3_1.shape = L4_1 -L4_1 = "radius" -L5_1 = 9 -L3_1[L4_1] = L5_1 -L4_1 = {} -L5_1 = 549.954 -L4_1.x = L5_1 -L5_1 = -38.121 -L4_1.y = L5_1 -L5_1 = 75.771 -L4_1.z = L5_1 -L3_1.pos = L4_1 -L4_1 = {} -L5_1 = 14 -L4_1.config_id = L5_1 -L5_1 = RegionShape -L6_1 = "CUBIC" -L5_1 = L5_1[L6_1] -L4_1.shape = L5_1 -L5_1 = "size" -L6_1 = {} -L7_1 = 15.0 -L6_1.x = L7_1 -L7_1 = 10.0 -L6_1.y = L7_1 -L7_1 = 25.0 -L6_1.z = L7_1 -L4_1[L5_1] = L6_1 -L5_1 = {} -L6_1 = 512.009 -L5_1.x = L6_1 -L6_1 = -35.2 -L5_1.y = L6_1 -L6_1 = 75.08 -L5_1.z = L6_1 -L4_1.pos = L5_1 -L5_1 = {} -L6_1 = 16 -L5_1.config_id = L6_1 -L6_1 = RegionShape -L7_1 = "CUBIC" -L6_1 = L6_1[L7_1] -L5_1.shape = L6_1 -L6_1 = "size" -L7_1 = {} -L8_1 = 6.0 -L7_1.x = L8_1 -L8_1 = 5.0 -L7_1.y = L8_1 -L8_1 = 12.0 -L7_1.z = L8_1 -L5_1[L6_1] = L7_1 -L6_1 = {} -L7_1 = 459.749 -L6_1.x = L7_1 -L7_1 = -22.562 -L6_1.y = L7_1 -L7_1 = 69.188 -L6_1.z = L7_1 -L5_1.pos = L6_1 -L6_1 = {} -L7_1 = 17 -L6_1.config_id = L7_1 -L7_1 = RegionShape -L8_1 = "CUBIC" -L7_1 = L7_1[L8_1] -L6_1.shape = L7_1 -L7_1 = "size" -L8_1 = {} -L9_1 = 6.0 -L8_1.x = L9_1 -L9_1 = 8.0 -L8_1.y = L9_1 -L9_1 = 3.8 -L8_1.z = L9_1 -L6_1[L7_1] = L8_1 -L7_1 = {} -L8_1 = 430.517 -L7_1.x = L8_1 -L8_1 = -22.137 -L7_1.y = L8_1 -L8_1 = 63.496 -L7_1.z = L8_1 -L6_1.pos = L7_1 -L7_1 = {} -L8_1 = 36 -L7_1.config_id = L8_1 -L8_1 = RegionShape -L9_1 = "CUBIC" -L8_1 = L8_1[L9_1] -L7_1.shape = L8_1 -L8_1 = "size" -L9_1 = {} -L10_1 = 8.0 -L9_1.x = L10_1 -L10_1 = 5.0 -L9_1.y = L10_1 -L10_1 = 8.0 -L9_1.z = L10_1 -L7_1[L8_1] = L9_1 -L8_1 = {} -L9_1 = 496.588 -L8_1.x = L9_1 -L9_1 = -27.48 -L8_1.y = L9_1 -L9_1 = 67.701 -L8_1.z = L9_1 -L7_1.pos = L8_1 -L8_1 = {} -L9_1 = 37 -L8_1.config_id = L9_1 -L9_1 = RegionShape -L10_1 = "CUBIC" -L9_1 = L9_1[L10_1] -L8_1.shape = L9_1 -L9_1 = "size" -L10_1 = {} -L11_1 = 6.0 -L10_1.x = L11_1 -L11_1 = 3.0 -L10_1.y = L11_1 -L11_1 = 9.0 -L10_1.z = L11_1 -L8_1[L9_1] = L10_1 -L9_1 = {} -L10_1 = 496.978 -L9_1.x = L10_1 -L10_1 = -16.889 -L9_1.y = L10_1 -L10_1 = 67.723 -L9_1.z = L10_1 -L8_1.pos = L9_1 -L9_1 = {} -L10_1 = 44 -L9_1.config_id = L10_1 -L10_1 = RegionShape -L11_1 = "CUBIC" -L10_1 = L10_1[L11_1] -L9_1.shape = L10_1 -L10_1 = "size" -L11_1 = {} -L12_1 = 15.0 -L11_1.x = L12_1 -L12_1 = 3.0 -L11_1.y = L12_1 -L12_1 = 3.0 -L11_1.z = L12_1 -L9_1[L10_1] = L11_1 -L10_1 = {} -L11_1 = 550.039 -L10_1.x = L11_1 -L11_1 = -42.195 -L10_1.y = L11_1 -L11_1 = 43.212 -L10_1.z = L11_1 -L9_1.pos = L10_1 -L10_1 = {} -L11_1 = 45 -L10_1.config_id = L11_1 -L11_1 = RegionShape -L12_1 = "CUBIC" -L11_1 = L11_1[L12_1] -L10_1.shape = L11_1 -L11_1 = "size" -L12_1 = {} -L13_1 = 15.0 -L12_1.x = L13_1 -L13_1 = 5.0 -L12_1.y = L13_1 -L13_1 = 3.0 -L12_1.z = L13_1 -L10_1[L11_1] = L12_1 -L11_1 = {} -L12_1 = 549.723 -L11_1.x = L12_1 -L12_1 = -41.104 -L11_1.y = L12_1 -L12_1 = 48.071 -L11_1.z = L12_1 -L10_1.pos = L11_1 -L11_1 = {} -L12_1 = 46 -L11_1.config_id = L12_1 -L12_1 = RegionShape -L12_1 = L12_1.SPHERE -L11_1.shape = L12_1 -L12_1 = "radius" -L13_1 = 5 -L11_1[L12_1] = L13_1 -L12_1 = {} -L13_1 = 549.864 -L12_1.x = L13_1 -L13_1 = -38.15 -L12_1.y = L13_1 -L13_1 = 62.537 -L12_1.z = L13_1 -L11_1.pos = L12_1 -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 -L2_1[7] = L9_1 -L2_1[8] = L10_1 -L2_1[9] = L11_1 -regions = L2_1 -L2_1 = "triggers" -L3_1 = {} -L4_1 = {} -L5_1 = 1000001 -L4_1.config_id = L5_1 -L5_1 = "name" -L6_1 = "GADGET_CREATE_1" -L4_1[L5_1] = L6_1 -L5_1 = "event" -L6_1 = "EventType" -L6_1 = _ENV[L6_1] -L7_1 = "EVENT_GADGET_CREATE" -L6_1 = L6_1[L7_1] -L4_1[L5_1] = L6_1 -L5_1 = "source" -L6_1 = "" -L4_1[L5_1] = L6_1 -L5_1 = "condition" -L6_1 = "condition_EVENT_GADGET_CREATE_1" -L4_1[L5_1] = L6_1 -L5_1 = "action" -L6_1 = "action_EVENT_GADGET_CREATE_1" -L4_1[L5_1] = L6_1 -L5_1 = {} -L6_1 = 1000004 -L5_1.config_id = L6_1 -L6_1 = "name" -L7_1 = "SELECT_OPTION_4" -L5_1[L6_1] = L7_1 -L6_1 = "event" -L7_1 = "EventType" -L7_1 = _ENV[L7_1] -L8_1 = "EVENT_SELECT_OPTION" -L7_1 = L7_1[L8_1] -L5_1[L6_1] = L7_1 -L6_1 = "source" -L7_1 = "" -L5_1[L6_1] = L7_1 -L6_1 = "condition" -L7_1 = "condition_EVENT_SELECT_OPTION_4" -L5_1[L6_1] = L7_1 -L6_1 = "action" -L7_1 = "action_EVENT_SELECT_OPTION_4" -L5_1[L6_1] = L7_1 -L6_1 = "forbid_guest" -L7_1 = false -L5_1[L6_1] = L7_1 -L6_1 = {} -L7_1 = 1000007 -L6_1.config_id = L7_1 -L7_1 = "name" -L8_1 = "ANY_MONSTER_DIE_7" -L6_1[L7_1] = L8_1 -L7_1 = "event" -L8_1 = "EventType" -L8_1 = _ENV[L8_1] -L9_1 = "EVENT_ANY_MONSTER_DIE" -L8_1 = L8_1[L9_1] -L6_1[L7_1] = L8_1 -L7_1 = "source" -L8_1 = "" -L6_1[L7_1] = L8_1 -L7_1 = "condition" -L8_1 = "condition_EVENT_ANY_MONSTER_DIE_7" -L6_1[L7_1] = L8_1 -L7_1 = "action" -L8_1 = "action_EVENT_ANY_MONSTER_DIE_7" -L6_1[L7_1] = L8_1 -L7_1 = {} -L8_1 = 1000013 -L7_1.config_id = L8_1 -L8_1 = "name" -L9_1 = "ENTER_REGION_13" -L7_1[L8_1] = L9_1 -L8_1 = "event" -L9_1 = "EventType" -L9_1 = _ENV[L9_1] -L10_1 = "EVENT_ENTER_REGION" -L9_1 = L9_1[L10_1] -L7_1[L8_1] = L9_1 -L8_1 = "source" -L9_1 = "" -L7_1[L8_1] = L9_1 -L8_1 = "condition" -L9_1 = "condition_EVENT_ENTER_REGION_13" -L7_1[L8_1] = L9_1 -L8_1 = "action" -L9_1 = "action_EVENT_ENTER_REGION_13" -L7_1[L8_1] = L9_1 -L8_1 = "forbid_guest" -L9_1 = false -L7_1[L8_1] = L9_1 -L8_1 = {} -L9_1 = 1000014 -L8_1.config_id = L9_1 -L9_1 = "name" -L10_1 = "ENTER_REGION_14" -L8_1[L9_1] = L10_1 -L9_1 = "event" -L10_1 = "EventType" -L10_1 = _ENV[L10_1] -L11_1 = "EVENT_ENTER_REGION" -L10_1 = L10_1[L11_1] -L8_1[L9_1] = L10_1 -L9_1 = "source" -L10_1 = "" -L8_1[L9_1] = L10_1 -L9_1 = "condition" -L10_1 = "condition_EVENT_ENTER_REGION_14" -L8_1[L9_1] = L10_1 -L9_1 = "action" -L10_1 = "action_EVENT_ENTER_REGION_14" -L8_1[L9_1] = L10_1 -L9_1 = "forbid_guest" -L10_1 = false -L8_1[L9_1] = L10_1 -L9_1 = {} -L10_1 = 1000016 -L9_1.config_id = L10_1 -L10_1 = "name" -L11_1 = "ENTER_REGION_16" -L9_1[L10_1] = L11_1 -L10_1 = "event" -L11_1 = "EventType" -L11_1 = _ENV[L11_1] -L12_1 = "EVENT_ENTER_REGION" -L11_1 = L11_1[L12_1] -L9_1[L10_1] = L11_1 -L10_1 = "source" -L11_1 = "" -L9_1[L10_1] = L11_1 -L10_1 = "condition" -L11_1 = "condition_EVENT_ENTER_REGION_16" -L9_1[L10_1] = L11_1 -L10_1 = "action" -L11_1 = "action_EVENT_ENTER_REGION_16" -L9_1[L10_1] = L11_1 -L10_1 = "forbid_guest" -L11_1 = false -L9_1[L10_1] = L11_1 -L10_1 = {} -L11_1 = 1000017 -L10_1.config_id = L11_1 -L11_1 = "name" -L12_1 = "ENTER_REGION_17" -L10_1[L11_1] = L12_1 -L11_1 = "event" -L12_1 = "EventType" -L12_1 = _ENV[L12_1] -L13_1 = "EVENT_ENTER_REGION" -L12_1 = L12_1[L13_1] -L10_1[L11_1] = L12_1 -L11_1 = "source" -L12_1 = "" -L10_1[L11_1] = L12_1 -L11_1 = "condition" -L12_1 = "condition_EVENT_ENTER_REGION_17" -L10_1[L11_1] = L12_1 -L11_1 = "action" -L12_1 = "action_EVENT_ENTER_REGION_17" -L10_1[L11_1] = L12_1 -L11_1 = "forbid_guest" -L12_1 = false -L10_1[L11_1] = L12_1 -L11_1 = {} -L12_1 = 1000036 -L11_1.config_id = L12_1 -L12_1 = "name" -L13_1 = "ENTER_REGION_36" -L11_1[L12_1] = L13_1 -L12_1 = "event" -L13_1 = "EventType" -L13_1 = _ENV[L13_1] -L14_1 = "EVENT_ENTER_REGION" -L13_1 = L13_1[L14_1] -L11_1[L12_1] = L13_1 -L12_1 = "source" -L13_1 = "" -L11_1[L12_1] = L13_1 -L12_1 = "condition" -L13_1 = "condition_EVENT_ENTER_REGION_36" -L11_1[L12_1] = L13_1 -L12_1 = "action" -L13_1 = "action_EVENT_ENTER_REGION_36" -L11_1[L12_1] = L13_1 -L12_1 = "forbid_guest" -L13_1 = false -L11_1[L12_1] = L13_1 -L12_1 = {} -L13_1 = 1000037 -L12_1.config_id = L13_1 -L13_1 = "name" -L14_1 = "ENTER_REGION_37" -L12_1[L13_1] = L14_1 -L13_1 = "event" -L14_1 = "EventType" -L14_1 = _ENV[L14_1] -L15_1 = "EVENT_ENTER_REGION" -L14_1 = L14_1[L15_1] -L12_1[L13_1] = L14_1 -L13_1 = "source" -L14_1 = "" -L12_1[L13_1] = L14_1 -L13_1 = "condition" -L14_1 = "condition_EVENT_ENTER_REGION_37" -L12_1[L13_1] = L14_1 -L13_1 = "action" -L14_1 = "action_EVENT_ENTER_REGION_37" -L12_1[L13_1] = L14_1 -L13_1 = "forbid_guest" -L14_1 = false -L12_1[L13_1] = L14_1 -L13_1 = {} -L14_1 = 1000039 -L13_1.config_id = L14_1 -L14_1 = "name" -L15_1 = "GADGET_CREATE_39" -L13_1[L14_1] = L15_1 -L14_1 = "event" -L15_1 = "EventType" -L15_1 = _ENV[L15_1] -L16_1 = "EVENT_GADGET_CREATE" -L15_1 = L15_1[L16_1] -L13_1[L14_1] = L15_1 -L14_1 = "source" -L15_1 = "" -L13_1[L14_1] = L15_1 -L14_1 = "condition" -L15_1 = "condition_EVENT_GADGET_CREATE_39" -L13_1[L14_1] = L15_1 -L14_1 = "action" -L15_1 = "action_EVENT_GADGET_CREATE_39" -L13_1[L14_1] = L15_1 -L14_1 = {} -L15_1 = 1000044 -L14_1.config_id = L15_1 -L15_1 = "name" -L16_1 = "ENTER_REGION_44" -L14_1[L15_1] = L16_1 -L15_1 = "event" -L16_1 = "EventType" -L16_1 = _ENV[L16_1] -L17_1 = "EVENT_ENTER_REGION" -L16_1 = L16_1[L17_1] -L14_1[L15_1] = L16_1 -L15_1 = "source" -L16_1 = "" -L14_1[L15_1] = L16_1 -L15_1 = "condition" -L16_1 = "condition_EVENT_ENTER_REGION_44" -L14_1[L15_1] = L16_1 -L15_1 = "action" -L16_1 = "action_EVENT_ENTER_REGION_44" -L14_1[L15_1] = L16_1 -L15_1 = "forbid_guest" -L16_1 = false -L14_1[L15_1] = L16_1 -L15_1 = {} -L16_1 = 1000045 -L15_1.config_id = L16_1 -L16_1 = "name" -L17_1 = "ENTER_REGION_45" -L15_1[L16_1] = L17_1 -L16_1 = "event" -L17_1 = "EventType" -L17_1 = _ENV[L17_1] -L18_1 = "EVENT_ENTER_REGION" -L17_1 = L17_1[L18_1] -L15_1[L16_1] = L17_1 -L16_1 = "source" -L17_1 = "" -L15_1[L16_1] = L17_1 -L16_1 = "condition" -L17_1 = "condition_EVENT_ENTER_REGION_45" -L15_1[L16_1] = L17_1 -L16_1 = "action" -L17_1 = "action_EVENT_ENTER_REGION_45" -L15_1[L16_1] = L17_1 -L16_1 = "forbid_guest" -L17_1 = false -L15_1[L16_1] = L17_1 -L16_1 = {} -L17_1 = 1000046 -L16_1.config_id = L17_1 -L17_1 = "name" -L18_1 = "ENTER_REGION_46" -L16_1[L17_1] = L18_1 -L17_1 = "event" -L18_1 = "EventType" -L18_1 = _ENV[L18_1] -L19_1 = "EVENT_ENTER_REGION" -L18_1 = L18_1[L19_1] -L16_1[L17_1] = L18_1 -L17_1 = "source" -L18_1 = "" -L16_1[L17_1] = L18_1 -L17_1 = "condition" -L18_1 = "condition_EVENT_ENTER_REGION_46" -L16_1[L17_1] = L18_1 -L17_1 = "action" -L18_1 = "action_EVENT_ENTER_REGION_46" -L16_1[L17_1] = L18_1 -L17_1 = "forbid_guest" -L18_1 = false -L16_1[L17_1] = L18_1 -L17_1 = {} -L18_1 = 1000060 -L17_1.config_id = L18_1 -L18_1 = "name" -L19_1 = "GADGET_STATE_CHANGE_60" -L17_1[L18_1] = L19_1 -L18_1 = "event" -L19_1 = "EventType" -L19_1 = _ENV[L19_1] -L20_1 = "EVENT_GADGET_STATE_CHANGE" -L19_1 = L19_1[L20_1] -L17_1[L18_1] = L19_1 -L18_1 = "source" -L19_1 = "" -L17_1[L18_1] = L19_1 -L18_1 = "condition" -L19_1 = "condition_EVENT_GADGET_STATE_CHANGE_60" -L17_1[L18_1] = L19_1 -L18_1 = "action" -L19_1 = "action_EVENT_GADGET_STATE_CHANGE_60" -L17_1[L18_1] = L19_1 -L18_1 = "trigger_count" -L19_1 = 0 -L17_1[L18_1] = L19_1 -L18_1 = {} -L19_1 = 1000064 -L18_1.config_id = L19_1 -L19_1 = "name" -L20_1 = "TIMER_EVENT_64" -L18_1[L19_1] = L20_1 -L19_1 = "event" -L20_1 = "EventType" -L20_1 = _ENV[L20_1] -L21_1 = "EVENT_TIMER_EVENT" -L20_1 = L20_1[L21_1] -L18_1[L19_1] = L20_1 -L19_1 = "source" -L20_1 = "begin" -L18_1[L19_1] = L20_1 -L19_1 = "condition" -L20_1 = "" -L18_1[L19_1] = L20_1 -L19_1 = "action" -L20_1 = "action_EVENT_TIMER_EVENT_64" -L18_1[L19_1] = L20_1 -L19_1 = "trigger_count" -L20_1 = 0 -L18_1[L19_1] = L20_1 -L3_1[1] = L4_1 -L3_1[2] = L5_1 -L3_1[3] = L6_1 -L3_1[4] = L7_1 -L3_1[5] = L8_1 -L3_1[6] = L9_1 -L3_1[7] = L10_1 -L3_1[8] = L11_1 -L3_1[9] = L12_1 -L3_1[10] = L13_1 -L3_1[11] = L14_1 -L3_1[12] = L15_1 -L3_1[13] = L16_1 -L3_1[14] = L17_1 -L3_1[15] = L18_1 -_ENV[L2_1] = L3_1 -L2_1 = "variables" -L3_1 = {} -_ENV[L2_1] = L3_1 -L2_1 = "init_config" -L3_1 = {} -L4_1 = "suite" -L3_1[L4_1] = 1 -L4_1 = "end_suite" -L5_1 = 0 -L3_1[L4_1] = L5_1 -L4_1 = "rand_suite" -L3_1[L4_1] = true -_ENV[L2_1] = L3_1 -L2_1 = "suites" -L3_1 = {} -L4_1 = {} -L5_1 = {} -L6_1 = 1001 -L5_1[1] = L6_1 -L4_1.monsters = L5_1 -L5_1 = {} -L6_1 = 1002 -L7_1 = 1003 -L8_1 = 1004 -L9_1 = 1005 -L10_1 = 1006 -L11_1 = 1007 -L12_1 = 1008 -L13_1 = 1009 -L14_1 = 1010 -L15_1 = 1011 -L16_1 = 1012 -L17_1 = 1013 -L18_1 = 1014 -L19_1 = 1015 -L20_1 = 1016 -L21_1 = 1017 -L22_1 = 1018 -L23_1 = 1019 -L24_1 = 1020 -L25_1 = 1021 -L26_1 = 1022 -L27_1 = 1023 -L28_1 = 1024 -L29_1 = 1025 -L30_1 = 1026 -L31_1 = 1027 -L32_1 = 1028 -L33_1 = 1029 -L34_1 = 1030 -L35_1 = 1031 -L36_1 = 1032 -L37_1 = 1033 -L38_1 = 1034 -L39_1 = 1035 -L40_1 = 1036 -L41_1 = 1037 -L42_1 = 1038 -L43_1 = 1039 -L44_1 = 1047 -L45_1 = 1048 -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 -L5_1[7] = L12_1 -L5_1[8] = L13_1 -L5_1[9] = L14_1 -L5_1[10] = L15_1 -L5_1[11] = L16_1 -L5_1[12] = L17_1 -L5_1[13] = L18_1 -L5_1[14] = L19_1 -L5_1[15] = L20_1 -L5_1[16] = L21_1 -L5_1[17] = L22_1 -L5_1[18] = L23_1 -L5_1[19] = L24_1 -L5_1[20] = L25_1 -L5_1[21] = L26_1 -L5_1[22] = L27_1 -L5_1[23] = L28_1 -L5_1[24] = L29_1 -L5_1[25] = L30_1 -L5_1[26] = L31_1 -L5_1[27] = L32_1 -L5_1[28] = L33_1 -L5_1[29] = L34_1 -L5_1[30] = L35_1 -L5_1[31] = L36_1 -L5_1[32] = L37_1 -L5_1[33] = L38_1 -L5_1[34] = L39_1 -L5_1[35] = L40_1 -L5_1[36] = L41_1 -L5_1[37] = L42_1 -L5_1[38] = L43_1 -L5_1[39] = L44_1 -L5_1[40] = L45_1 -L4_1.gadgets = L5_1 -L5_1 = {} -L6_1 = 13 -L7_1 = 14 -L8_1 = 16 -L9_1 = 17 -L10_1 = 36 -L11_1 = 37 -L12_1 = 44 -L13_1 = 45 -L14_1 = 46 -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 -L5_1[7] = L12_1 -L5_1[8] = L13_1 -L5_1[9] = L14_1 -L4_1.regions = L5_1 -L5_1 = "triggers" -L6_1 = {} -L7_1 = "GADGET_CREATE_1" -L8_1 = "SELECT_OPTION_4" -L9_1 = "ANY_MONSTER_DIE_7" -L10_1 = "ENTER_REGION_13" -L11_1 = "ENTER_REGION_14" -L12_1 = "ENTER_REGION_16" -L13_1 = "ENTER_REGION_17" -L14_1 = "ENTER_REGION_36" -L15_1 = "ENTER_REGION_37" -L16_1 = "GADGET_CREATE_39" -L17_1 = "ENTER_REGION_44" -L18_1 = "ENTER_REGION_45" -L19_1 = "ENTER_REGION_46" -L20_1 = "GADGET_STATE_CHANGE_60" -L21_1 = "TIMER_EVENT_64" -L6_1[1] = L7_1 -L6_1[2] = L8_1 -L6_1[3] = L9_1 -L6_1[4] = L10_1 -L6_1[5] = L11_1 -L6_1[6] = L12_1 -L6_1[7] = L13_1 -L6_1[8] = L14_1 -L6_1[9] = L15_1 -L6_1[10] = L16_1 -L6_1[11] = L17_1 -L6_1[12] = L18_1 -L6_1[13] = L19_1 -L6_1[14] = L20_1 -L6_1[15] = L21_1 -L4_1[L5_1] = L6_1 -L5_1 = "rand_weight" -L6_1 = 100 -L4_1[L5_1] = L6_1 -L3_1[1] = L4_1 -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_GADGET_CREATE_1" -function L3_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 1004 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_GADGET_CREATE_1" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetWorktopOptions - L3_2 = A0_2 - L4_2 = {} - L5_2 = 1 - L4_2[1] = L5_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 : set_work_options" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_SELECT_OPTION_4" -function L3_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 1004 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = A1_2.param2 - if 1 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_SELECT_OPTION_4" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = ScriptLib - L2_2 = L2_2.RemoveExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 2 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.AddExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 3 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1003 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1004 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.DelWorktopOptionByGroupId - L3_2 = A0_2 - L4_2 = 220011001 - L5_2 = 1004 - L6_2 = 1 - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : del_work_options_by_group_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.KillGroupEntity - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011001 - L5_2 = {} - L4_2.monsters = L5_2 - L5_2 = {} - L6_2 = 1042 - L5_2[1] = L6_2 - L4_2.gadgets = L5_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 : kill_monsters_and_gadgets_by_group" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ANY_MONSTER_DIE_7" -function L3_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if L2_2 ~= 1001 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ANY_MONSTER_DIE_7" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1007 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1020 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1021 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_13" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 13 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_13" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = {} - L2_2.x = 550 - L2_2.y = -35 - L2_2.z = 83 - 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 = ScriptLib - L4_2 = L4_2.ShowReminder - L5_2 = A0_2 - L6_2 = 1041001 - 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_reminder_ui" - L4_2(L5_2, L6_2) - L4_2 = -1 - return L4_2 - end - L4_2 = ScriptLib - L4_2 = L4_2.CreateGadget - L5_2 = A0_2 - L6_2 = {} - L6_2.config_id = 1041 - 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 : dungeon_settle" - L4_2(L5_2, L6_2) - L4_2 = -1 - return L4_2 - end - L4_2 = ScriptLib - L4_2 = L4_2.CreateGadget - L5_2 = A0_2 - L6_2 = {} - L6_2.config_id = 1049 - 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 : dungeon_settle" - L4_2(L5_2, L6_2) - L4_2 = -1 - return L4_2 - end - L4_2 = 0 - return L4_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_14" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 14 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_14" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041011 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.ShowClientGuide - L3_2 = A0_2 - L4_2 = "GuideAvatarFlyInWind" - 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 : show_client_guide" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.RemoveEntityByConfigId - L3_2 = A0_2 - L4_2 = 220011001 - L5_2 = EntityType - L5_2 = L5_2.GADGET - L6_2 = 1049 - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : remove_gadget_by_configid" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.AddExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 2 - L2_2(L3_2, L4_2, L5_2) - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_16" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 16 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_16" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041041 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1019 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_17" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 17 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_17" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2 - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041031 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_36" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 36 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_36" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1015 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1016 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.KillGroupEntity - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011001 - L5_2 = {} - L4_2.monsters = L5_2 - L5_2 = {} - L6_2 = 1041 - L7_2 = 1049 - L5_2[1] = L6_2 - L5_2[2] = L7_2 - L4_2.gadgets = L5_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 : kill_monsters_and_gadgets_by_group" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.CreateGadget - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 1042 - 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 : dungeon_settle" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_37" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 37 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_37" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1017 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1018 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1024 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1025 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_GADGET_CREATE_39" -function L3_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 1026 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_GADGET_CREATE_39" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1026 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1027 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_44" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 44 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_44" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1028 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1029 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1030 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1031 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_45" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 45 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_45" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1032 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1033 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1034 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1035 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_ENTER_REGION_46" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 46 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_ENTER_REGION_46" -function L3_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1036 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1037 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1038 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 1039 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -_ENV[L2_1] = L3_1 -L2_1 = "condition_EVENT_GADGET_STATE_CHANGE_60" -function L3_1(A0_2, A1_2) - local L2_2, L3_2 - L2_2 = GadgetState - L2_2 = L2_2.GearStart - L3_2 = A1_2.param1 - if L2_2 == L3_2 then - L2_2 = L1_1.gadget_id_1 - L3_2 = A1_2.param2 - if L2_2 == L3_2 then - goto lbl_12 +local globalDefs = { + gadget_id_1 = 1047 +} + +group_id = 220011001 + +monsters = { + { config_id = 1001, monster_id = 20011201, pos = { x = 448.686, y = -24.413, z = 68.376 }, rot = { x = 0, y = 92.335, z = 0 }, level = 3 } +} + +npcs = {} + +gadgets = { + { config_id = 1002, gadget_id = 70211101, pos = { x = 507.446, y = -37.485, z = 83.806 }, rot = { x = 0, y = 182.26, z = 0 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true }, + { config_id = 1003, gadget_id = 70350002, pos = { x = 469.561, y = -20.423, z = 67.499 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1004, gadget_id = 70360002, pos = { x = 475.525, y = -20.035, z = 63.895 }, rot = { x = 0, y = 90.056, z = 0 }, level = 1 }, + { config_id = 1005, gadget_id = 70211001, pos = { x = 428.371, y = -22.064, z = 53.57 }, rot = { x = 0, y = 321.609, z = 0 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true }, + { config_id = 1006, gadget_id = 70350002, pos = { x = 406.374, y = -22.161, z = 81.408 }, rot = { x = 0, y = 180.21, z = 0 }, level = 1 }, + { config_id = 1007, gadget_id = 70350002, pos = { x = 423.516, y = -22.097, z = 71.1 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1008, gadget_id = 70220013, pos = { x = 490.493, y = -20.051, z = 78.232 }, rot = { x = 0, y = 41.505, z = 0 }, level = 1 }, + { config_id = 1009, gadget_id = 70220013, pos = { x = 491.485, y = -20.265, z = 75.821 }, rot = { x = 0, y = 272.591, z = 0 }, level = 1 }, + { config_id = 1010, gadget_id = 70211101, pos = { x = 495.062, y = -20.033, z = 77.011 }, rot = { x = 0, y = 75.558, z = 0 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true }, + { config_id = 1011, gadget_id = 70220014, pos = { x = 489.414, y = -20.334, z = 79.56 }, rot = { x = 0, y = 283.946, z = 0 }, level = 1 }, + { config_id = 1012, gadget_id = 70220013, pos = { x = 502.881, y = -37.317, z = 81.759 }, rot = { x = 0, y = 351.358, z = 0 }, level = 1 }, + { config_id = 1013, gadget_id = 70220013, pos = { x = 505.355, y = -37.535, z = 82.002 }, rot = { x = 0, y = 314.506, z = 0 }, level = 1 }, + { config_id = 1014, gadget_id = 70220013, pos = { x = 504.487, y = -37.735, z = 80.146 }, rot = { x = 0, y = 290.533, z = 0 }, level = 1 }, + { config_id = 1015, gadget_id = 70310002, pos = { x = 494.202, y = -26.998, z = 70.886 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1016, gadget_id = 70310002, pos = { x = 494.425, y = -26.764, z = 64.127 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1017, gadget_id = 70310002, pos = { x = 495.341, y = -16.234, z = 72 }, rot = { x = 0, y = 180, z = 0 }, level = 1 }, + { config_id = 1018, gadget_id = 70310002, pos = { x = 494.991, y = -16.363, z = 63.191 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 1019, gadget_id = 70310002, pos = { x = 450.161, y = -19.643, z = 64.219 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 1020, gadget_id = 70310001, pos = { x = 425.898, y = -22.324, z = 65.538 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1021, gadget_id = 70310001, pos = { x = 425.962, y = -22.151, z = 76.792 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1022, gadget_id = 70310001, pos = { x = 400.746, y = -20.073, z = 78.909 }, rot = { x = 0, y = 180, z = 0 }, level = 1 }, + { config_id = 1023, gadget_id = 70310001, pos = { x = 411.845, y = -20.076, z = 78.945 }, rot = { x = 0, y = 180, z = 0 }, level = 1 }, + { config_id = 1024, gadget_id = 70310002, pos = { x = 472.137, y = -15.665, z = 61.579 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1025, gadget_id = 70310002, pos = { x = 472.14, y = -15.58, z = 73.325 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1026, gadget_id = 70310002, pos = { x = 500.972, y = -31.446, z = 84.375 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 1027, gadget_id = 70310001, pos = { x = 420.841, y = -22.084, z = 58.142 }, rot = { x = 0, y = 98.952, z = 0 }, level = 1 }, + { config_id = 1028, gadget_id = 70310001, pos = { x = 544.595, y = -42.056, z = 46.233 }, rot = { x = 0, y = 223.245, z = 0 }, level = 1 }, + { config_id = 1029, gadget_id = 70310001, pos = { x = 555.298, y = -42.02, z = 46.185 }, rot = { x = 0, y = 183.036, z = 0 }, level = 1 }, + { config_id = 1030, gadget_id = 70310001, pos = { x = 544.739, y = -43.356, z = 40.212 }, rot = { x = 0, y = 63.973, z = 0 }, level = 1 }, + { config_id = 1031, gadget_id = 70310001, pos = { x = 555.476, y = -43.385, z = 40.564 }, rot = { x = 0, y = 83.172, z = 0 }, level = 1 }, + { config_id = 1032, gadget_id = 70310001, pos = { x = 555.558, y = -40.544, z = 51.271 }, rot = { x = 0, y = 76.84, z = 0 }, level = 1 }, + { config_id = 1033, gadget_id = 70310001, pos = { x = 544.648, y = -40.557, z = 51.131 }, rot = { x = 0, y = 265.978, z = 0 }, level = 1 }, + { config_id = 1034, gadget_id = 70310001, pos = { x = 555.398, y = -39.273, z = 55.224 }, rot = { x = 0, y = 209.609, z = 0 }, level = 1 }, + { config_id = 1035, gadget_id = 70310001, pos = { x = 544.782, y = -39.282, z = 55.27 }, rot = { x = 0, y = 97.228, z = 0 }, level = 1 }, + { config_id = 1036, gadget_id = 70310001, pos = { x = 555.31, y = -38.151, z = 71.121 }, rot = { x = 0, y = 348.422, z = 0 }, level = 1 }, + { config_id = 1037, gadget_id = 70310001, pos = { x = 545.1, y = -38.135, z = 71.161 }, rot = { x = 0, y = 239.016, z = 0 }, level = 1 }, + { config_id = 1038, gadget_id = 70310001, pos = { x = 555.394, y = -38.213, z = 81.758 }, rot = { x = 0, y = 21.28, z = 0 }, level = 1 }, + { config_id = 1039, gadget_id = 70310001, pos = { x = 545.119, y = -38.184, z = 81.482 }, rot = { x = 0, y = 100.803, z = 0 }, level = 1 }, + { config_id = 1040, gadget_id = 70900202, pos = { x = 532.301, y = 2.338, z = 219.869 }, rot = { x = 0, y = 331.636, z = 0 }, level = 1 }, + { config_id = 1041, gadget_id = 70900202, pos = { x = 496.332, y = -34.534, z = 67.662 }, rot = { x = 0, y = 274.978, z = 0 }, level = 1 }, + { config_id = 1042, gadget_id = 70900202, pos = { x = 475.449, y = -18.451, z = 63.887 }, rot = { x = 0, y = 162.878, z = 0 }, level = 1 }, + { config_id = 1047, gadget_id = 70900008, pos = { x = 410.549, y = -22.101, z = 63.921 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 1048, gadget_id = 70211002, pos = { x = 400.092, y = -22.083, z = 65.379 }, rot = { x = 0, y = 91.011, z = 0 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true }, + { config_id = 1049, gadget_id = 70900201, pos = { x = 533.887, y = -1.984, z = 248.031 }, rot = { x = 0, y = 120.05, z = 0 }, level = 1 } +} + +regions = { + { config_id = 13, shape = RegionShape.SPHERE, radius = 9, pos = { x = 549.954, y = -38.121, z = 75.771 } }, + { config_id = 14, shape = RegionShape.CUBIC, size = { x = 15, y = 10, z = 25 }, pos = { x = 512.009, y = -35.2, z = 75.08 } }, + { config_id = 16, shape = RegionShape.CUBIC, size = { x = 6, y = 5, z = 12 }, pos = { x = 459.749, y = -22.562, z = 69.188 } }, + { config_id = 17, shape = RegionShape.CUBIC, size = { x = 6, y = 8, z = 3.8 }, pos = { x = 430.517, y = -22.137, z = 63.496 } }, + { config_id = 36, shape = RegionShape.CUBIC, size = { x = 8, y = 5, z = 8 }, pos = { x = 496.588, y = -27.48, z = 67.701 } }, + { config_id = 37, shape = RegionShape.CUBIC, size = { x = 6, y = 3, z = 9 }, pos = { x = 496.978, y = -16.889, z = 67.723 } }, + { config_id = 44, shape = RegionShape.CUBIC, size = { x = 15, y = 3, z = 3 }, pos = { x = 550.039, y = -42.195, z = 43.212 } }, + { config_id = 45, shape = RegionShape.CUBIC, size = { x = 15, y = 5, z = 3 }, pos = { x = 549.723, y = -41.104, z = 48.071 } }, + { config_id = 46, shape = RegionShape.SPHERE, radius = 5, pos = { x = 549.864, y = -38.15, z = 62.537 } } +} + +triggers = { + { config_id = 1000001, name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1" }, + { config_id = 1000004, name = "SELECT_OPTION_4", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4", action = "action_EVENT_SELECT_OPTION_4", forbid_guest = false }, + { config_id = 1000007, name = "ANY_MONSTER_DIE_7", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7", action = "action_EVENT_ANY_MONSTER_DIE_7" }, + { config_id = 1000013, name = "ENTER_REGION_13", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13", action = "action_EVENT_ENTER_REGION_13", forbid_guest = false }, + { config_id = 1000014, name = "ENTER_REGION_14", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14", action = "action_EVENT_ENTER_REGION_14", forbid_guest = false }, + { config_id = 1000016, name = "ENTER_REGION_16", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16", action = "action_EVENT_ENTER_REGION_16", forbid_guest = false }, + { config_id = 1000017, name = "ENTER_REGION_17", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17", action = "action_EVENT_ENTER_REGION_17", forbid_guest = false }, + { config_id = 1000036, name = "ENTER_REGION_36", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_36", action = "action_EVENT_ENTER_REGION_36", forbid_guest = false }, + { config_id = 1000037, name = "ENTER_REGION_37", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_37", action = "action_EVENT_ENTER_REGION_37", forbid_guest = false }, + { config_id = 1000039, name = "GADGET_CREATE_39", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_39", action = "action_EVENT_GADGET_CREATE_39" }, + { config_id = 1000044, name = "ENTER_REGION_44", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_44", action = "action_EVENT_ENTER_REGION_44", forbid_guest = false }, + { config_id = 1000045, name = "ENTER_REGION_45", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45", action = "action_EVENT_ENTER_REGION_45", forbid_guest = false }, + { config_id = 1000046, name = "ENTER_REGION_46", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_46", action = "action_EVENT_ENTER_REGION_46", forbid_guest = false }, + { config_id = 1000060, name = "GADGET_STATE_CHANGE_60", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_60", action = "action_EVENT_GADGET_STATE_CHANGE_60", trigger_count = 0 }, + { config_id = 1000064, name = "TIMER_EVENT_64", event = EventType.EVENT_TIMER_EVENT, source = "begin", condition = "", action = "action_EVENT_TIMER_EVENT_64", trigger_count = 0 } +} + +variables = {} + +init_config = { + suite = 1, + end_suite = 0, + rand_suite = true +} + +suites = { + { + monsters = { 1001 }, + gadgets = { 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1047, 1048 }, + regions = { 13, 14, 16, 17, 36, 37, 44, 45, 46 }, + triggers = { "GADGET_CREATE_1", "SELECT_OPTION_4", "ANY_MONSTER_DIE_7", "ENTER_REGION_13", "ENTER_REGION_14", "ENTER_REGION_16", "ENTER_REGION_17", "ENTER_REGION_36", "ENTER_REGION_37", "GADGET_CREATE_39", "ENTER_REGION_44", "ENTER_REGION_45", "ENTER_REGION_46", "GADGET_STATE_CHANGE_60", "TIMER_EVENT_64" }, + rand_weight = 100 + } +} + +function condition_EVENT_GADGET_CREATE_1(context, args) + if 1004 ~= args.param1 then + return false end - end - L2_2 = false - do return L2_2 end - ::lbl_12:: - L2_2 = true - return L2_2 + return true end -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_GADGET_STATE_CHANGE_60" -function L3_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 = "LisaOne" - 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 = ScriptLib - L2_2 = L2_2.CreateGroupTimerEvent - L3_2 = A0_2 - L4_2 = 220011001 - L5_2 = "begin" - L6_2 = 3 - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : create_timerevent_by_group" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_GADGET_CREATE_1(context, args) + local var1 = ScriptLib.SetWorktopOptions(context, {1}) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options") + return -1 + end + return 0 end -_ENV[L2_1] = L3_1 -L2_1 = "action_EVENT_TIMER_EVENT_64" -function L3_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 = 220011006 - L4_2.suite = 1 - 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 + +function condition_EVENT_SELECT_OPTION_4(context, args) + if 1004 ~= args.param1 then + return false + end + if 1 ~= args.param2 then + return false + end + return true +end + +function action_EVENT_SELECT_OPTION_4(context, args) + ScriptLib.RemoveExtraGroupSuite(context, 220011007, 2) + ScriptLib.AddExtraGroupSuite(context, 220011007, 3) + + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1004, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.DelWorktopOptionByGroupId(context, 220011001, 1004, 1) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId") + return -1 + end + + local var4 = ScriptLib.KillGroupEntity(context, { + group_id = 220011001, + monsters = {}, + gadgets = {1042} + }) + + if 0 ~= var4 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group") + return -1 + end + return 0 +end + +function condition_EVENT_ANY_MONSTER_DIE_7(context, args) + if args.param1 ~= 1001 then + return false + end + return true +end + +function action_EVENT_ANY_MONSTER_DIE_7(context, args) + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1007, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1020, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.SetGadgetStateByConfigId(context, 1021, GadgetState.GearStart) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_13(context, args) + if args.param1 ~= 13 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_13(context, args) + local var1 = ScriptLib.BeginCameraSceneLook(context, { + look_pos = { x = 550, y = -35, z = 83 }, + is_allow_input = false, + duration = 3, + is_force = true, + is_broadcast = false, + is_recover_keep_current = true, + delay = 0, + is_set_follow_pos = false, + follow_pos = { x = 0, y = 0, z = 0 }, + is_force_walk = false, + is_change_play_mode = false, + is_set_screen_XY = false, + screen_x = 0, + screen_y = 0 + }) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin") + return -1 + end + + local var2 = ScriptLib.ShowReminder(context, 1041001) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + + local var3 = ScriptLib.CreateGadget(context, { + config_id = 1041 + }) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + + local var4 = ScriptLib.CreateGadget(context, { + config_id = 1049 + }) + if 0 ~= var4 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_14(context, args) + if args.param1 ~= 14 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_14(context, args) + local var1 = ScriptLib.ShowReminder(context, 1041011) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + + local var2 = ScriptLib.ShowClientGuide(context, "GuideAvatarFlyInWind") + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : show_client_guide") + return -1 + end + + local var3 = ScriptLib.RemoveEntityByConfigId(context, 220011001, EntityType.GADGET, 1049) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid") + return -1 + end + + ScriptLib.AddExtraGroupSuite(context, 220011007, 2) + return 0 +end + +function condition_EVENT_ENTER_REGION_16(context, args) + if args.param1 ~= 16 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_16(context, args) + local var1 = ScriptLib.ShowReminder(context, 1041041) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1019, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_17(context, args) + if args.param1 ~= 17 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_17(context, args) + local var1 = ScriptLib.ShowReminder(context, 1041031) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_36(context, args) + if args.param1 ~= 36 then + return false + end + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_36(context, args) + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1015, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1016, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.KillGroupEntity(context, { + group_id = 220011001, + monsters = {}, + gadgets = {1041, 1049} + }) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group") + return -1 + end + + local var4 = ScriptLib.CreateGadget(context, { + config_id = 1042 + }) + if 0 ~= var4 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_37(context, args) + if args.param1 ~= 37 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_37(context, args) + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1017, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1018, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.SetGadgetStateByConfigId(context, 1024, GadgetState.GearStart) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var4 = ScriptLib.SetGadgetStateByConfigId(context, 1025, GadgetState.GearStart) + if 0 ~= var4 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 +end + +function condition_EVENT_GADGET_CREATE_39(context, args) + if 1026 ~= args.param1 then + return false + end + return true +end + +function action_EVENT_GADGET_CREATE_39(context, args) + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1026, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1027, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_44(context, args) + if args.param1 ~= 44 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_44(context, args) + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1028, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1029, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.SetGadgetStateByConfigId(context, 1030, GadgetState.GearStart) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var4 = ScriptLib.SetGadgetStateByConfigId(context, 1031, GadgetState.GearStart) + if 0 ~= var4 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_45(context, args) + if args.param1 ~= 45 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_45(context, args) + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1032, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1033, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.SetGadgetStateByConfigId(context, 1034, GadgetState.GearStart) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var4 = ScriptLib.SetGadgetStateByConfigId(context, 1035, GadgetState.GearStart) + if 0 ~= var4 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_46(context, args) + if args.param1 ~= 46 then + return false + end + + local var1 = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if var1 < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_46(context, args) + local var1 = ScriptLib.SetGadgetStateByConfigId(context, 1036, GadgetState.GearStart) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var2 = ScriptLib.SetGadgetStateByConfigId(context, 1037, GadgetState.GearStart) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.SetGadgetStateByConfigId(context, 1038, GadgetState.GearStart) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var4 = ScriptLib.SetGadgetStateByConfigId(context, 1039, GadgetState.GearStart) + if 0 ~= var4 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 +end + +function condition_EVENT_GADGET_STATE_CHANGE_60(context, args) + if GadgetState.GearStart ~= args.param1 or globalDefs.gadget_id_1 ~= args.param2 then + return false + end + return true +end + +function action_EVENT_GADGET_STATE_CHANGE_60(context, args) + local var1 = ScriptLib.AddQuestProgress(context, "LisaOne") + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress") + return -1 + end + + local var2 = ScriptLib.CreateGroupTimerEvent(context, 220011001, "begin", 3) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group") + return -1 + end + return 0 +end + +function action_EVENT_TIMER_EVENT_64(context, args) + local var1 = ScriptLib.RefreshGroup(context, { + group_id = 220011006, + suite = 1 + }) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") + return -1 + end + return 0 end -_ENV[L2_1] = L3_1 diff --git a/Resources/Scripts/Scene/20011/scene20011_group220011002.lua b/Resources/Scripts/Scene/20011/scene20011_group220011002.lua index 6e4614535..b42c40eb7 100644 --- a/Resources/Scripts/Scene/20011/scene20011_group220011002.lua +++ b/Resources/Scripts/Scene/20011/scene20011_group220011002.lua @@ -1,673 +1,200 @@ -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, L12_1 -L0_1 = {} -L0_1.group_id = 220011002 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 2001 -L2_1.monster_id = 21010401 -L3_1 = {} -L3_1.x = 403.547 -L3_1.y = -23.915 -L3_1.z = 127.105 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.x = 0.0 -L3_1.y = 182.002 -L3_1.z = 0.0 -L2_1.rot = L3_1 -L2_1.level = 3 -L2_1.disableWander = true -L2_1.pose_id = 402 -L3_1 = {} -L3_1.config_id = 2002 -L3_1.monster_id = 21010401 -L4_1 = {} -L4_1.x = 408.938 -L4_1.y = -24.157 -L4_1.z = 125.166 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 206.842 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 3 -L3_1.disableWander = true -L3_1.pose_id = 402 -L4_1 = {} -L4_1.config_id = 2003 -L4_1.monster_id = 21010401 -L5_1 = {} -L5_1.x = 397.369 -L5_1.y = -24.082 -L5_1.z = 125.887 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.x = 0.0 -L5_1.y = 159.597 -L5_1.z = 0.0 -L4_1.rot = L5_1 -L4_1.level = 3 -L4_1.disableWander = true -L4_1.pose_id = 402 -L5_1 = {} -L5_1.config_id = 2004 -L5_1.monster_id = 21010201 -L6_1 = {} -L6_1.x = 400.309 -L6_1.y = -24.535 -L6_1.z = 130.894 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.x = 0.0 -L6_1.y = 181.892 -L6_1.z = 0.0 -L5_1.rot = L6_1 -L5_1.level = 3 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -monsters = L1_1 -L1_1 = {} -npcs = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 2005 -L2_1.gadget_id = 70350002 -L3_1 = {} -L3_1.x = 415.696 -L3_1.y = -24.157 -L3_1.z = 120.856 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.x = 0.0 -L3_1.y = 90.0 -L3_1.z = 0.0 -L2_1.rot = L3_1 -L2_1.level = 1 -L3_1 = {} -L3_1.config_id = 2006 -L3_1.gadget_id = 70211002 -L4_1 = {} -L4_1.x = 403.362 -L4_1.y = -24.195 -L4_1.z = 122.321 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 180.016 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 1 -L3_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\232\146\153\229\190\183" -L4_1 = GadgetState -L4_1 = L4_1.ChestLocked -L3_1.state = L4_1 -L3_1.isOneoff = true -L4_1 = {} -L4_1.config_id = 2007 -L4_1.gadget_id = 70220005 -L5_1 = {} -L5_1.x = 399.79 -L5_1.y = -23.586 -L5_1.z = 140.555 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.x = 0.0 -L5_1.y = 212.019 -L5_1.z = 0.0 -L4_1.rot = L5_1 -L4_1.level = 1 -L5_1 = {} -L5_1.config_id = 2008 -L5_1.gadget_id = 70220014 -L6_1 = {} -L6_1.x = 401.448 -L6_1.y = -23.735 -L6_1.z = 141.314 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.x = 0.0 -L6_1.y = 206.747 -L6_1.z = 0.0 -L5_1.rot = L6_1 -L5_1.level = 1 -L6_1 = {} -L6_1.config_id = 2009 -L6_1.gadget_id = 70220013 -L7_1 = {} -L7_1.x = 404.071 -L7_1.y = -23.598 -L7_1.z = 141.198 -L6_1.pos = L7_1 -L7_1 = {} -L7_1.x = 0.0 -L7_1.y = 199.722 -L7_1.z = 0.0 -L6_1.rot = L7_1 -L6_1.level = 1 -L7_1 = {} -L7_1.config_id = 2010 -L7_1.gadget_id = 70220013 -L8_1 = {} -L8_1.x = 402.69 -L8_1.y = -23.677 -L8_1.z = 142.969 -L7_1.pos = L8_1 -L8_1 = {} -L8_1.x = 0.0 -L8_1.y = 205.364 -L8_1.z = 0.0 -L7_1.rot = L8_1 -L7_1.level = 1 -L8_1 = {} -L8_1.config_id = 2011 -L8_1.gadget_id = 70220013 -L9_1 = {} -L9_1.x = 399.898 -L9_1.y = -23.576 -L9_1.z = 142.352 -L8_1.pos = L9_1 -L9_1 = {} -L9_1.x = 0.0 -L9_1.y = 92.675 -L9_1.z = 0.0 -L8_1.rot = L9_1 -L8_1.level = 1 -L9_1 = {} -L9_1.config_id = 2012 -L9_1.gadget_id = 70310001 -L10_1 = {} -L10_1.x = 414.01 -L10_1.y = -22.193 -L10_1.z = 126.607 -L9_1.pos = L10_1 -L10_1 = {} -L10_1.x = 0.0 -L10_1.y = 270.0 -L10_1.z = 0.0 -L9_1.rot = L10_1 -L9_1.level = 1 -L10_1 = {} -L10_1.config_id = 2013 -L10_1.gadget_id = 70310001 -L11_1 = {} -L11_1.x = 413.83 -L11_1.y = -22.155 -L11_1.z = 114.879 -L10_1.pos = L11_1 -L11_1 = {} -L11_1.x = 0.0 -L11_1.y = 270.0 -L11_1.z = 0.0 -L10_1.rot = L11_1 -L10_1.level = 1 -L11_1 = {} -L11_1.config_id = 2014 -L11_1.gadget_id = 70900202 -L12_1 = {} -L12_1.x = 422.935 -L12_1.y = -22.809 -L12_1.z = 120.917 -L11_1.pos = L12_1 -L12_1 = {} -L12_1.x = 0.0 -L12_1.y = 215.579 -L12_1.z = 0.0 -L11_1.rot = L12_1 -L11_1.level = 1 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -L1_1[5] = L6_1 -L1_1[6] = L7_1 -L1_1[7] = L8_1 -L1_1[8] = L9_1 -L1_1[9] = L10_1 -L1_1[10] = L11_1 -gadgets = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 33 -L3_1 = RegionShape -L3_1 = L3_1.CUBIC -L2_1.shape = L3_1 -L3_1 = {} -L3_1.x = 5.0 -L3_1.y = 3.0 -L3_1.z = 10.0 -L2_1.size = L3_1 -L3_1 = {} -L3_1.x = 418.49 -L3_1.y = -24.134 -L3_1.z = 121.102 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.config_id = 62 -L4_1 = RegionShape -L4_1 = L4_1.CUBIC -L3_1.shape = L4_1 -L4_1 = {} -L4_1.x = 10.0 -L4_1.y = 3.0 -L4_1.z = 10.0 -L3_1.size = L4_1 -L4_1 = {} -L4_1.x = 418.126 -L4_1.y = -22.55 -L4_1.z = 71.301 -L3_1.pos = L4_1 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -regions = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 1000009 -L2_1.name = "ANY_MONSTER_DIE_9" -L3_1 = EventType -L3_1 = L3_1.EVENT_ANY_MONSTER_DIE -L2_1.event = L3_1 -L2_1.source = "" -L2_1.condition = "condition_EVENT_ANY_MONSTER_DIE_9" -L2_1.action = "action_EVENT_ANY_MONSTER_DIE_9" -L3_1 = {} -L3_1.config_id = 1000032 -L3_1.name = "ANY_MONSTER_DIE_32" -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_32" -L3_1.action = "action_EVENT_ANY_MONSTER_DIE_32" -L4_1 = {} -L4_1.config_id = 1000033 -L4_1.name = "ENTER_REGION_33" -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_33" -L4_1.action = "action_EVENT_ENTER_REGION_33" -L4_1.forbid_guest = false -L5_1 = {} -L5_1.config_id = 1000062 -L5_1.name = "ENTER_REGION_62" -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_62" -L5_1.action = "action_EVENT_ENTER_REGION_62" -L5_1.forbid_guest = false -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -triggers = L1_1 -L1_1 = {} -variables = L1_1 -L1_1 = {} -L1_1.suite = 1 -L1_1.end_suite = 0 -L1_1.rand_suite = true -init_config = L1_1 -L1_1 = {} -L2_1 = {} -L3_1 = {} -L4_1 = 2001 -L5_1 = 2002 -L6_1 = 2003 -L7_1 = 2004 -L3_1[1] = L4_1 -L3_1[2] = L5_1 -L3_1[3] = L6_1 -L3_1[4] = L7_1 -L2_1.monsters = L3_1 -L3_1 = {} -L4_1 = 2005 -L5_1 = 2006 -L6_1 = 2007 -L7_1 = 2008 -L8_1 = 2009 -L9_1 = 2010 -L10_1 = 2011 -L11_1 = 2012 -L12_1 = 2013 -L3_1[1] = L4_1 -L3_1[2] = L5_1 -L3_1[3] = L6_1 -L3_1[4] = L7_1 -L3_1[5] = L8_1 -L3_1[6] = L9_1 -L3_1[7] = L10_1 -L3_1[8] = L11_1 -L3_1[9] = L12_1 -L2_1.gadgets = L3_1 -L3_1 = {} -L4_1 = 33 -L5_1 = 62 -L3_1[1] = L4_1 -L3_1[2] = L5_1 -L2_1.regions = L3_1 -L3_1 = {} -L4_1 = "ANY_MONSTER_DIE_9" -L5_1 = "ANY_MONSTER_DIE_32" -L6_1 = "ENTER_REGION_33" -L7_1 = "ENTER_REGION_62" -L3_1[1] = L4_1 -L3_1[2] = L5_1 -L3_1[3] = L6_1 -L3_1[4] = L7_1 -L2_1.triggers = L3_1 -L2_1.rand_weight = 100 -L1_1[1] = L2_1 -suites = L1_1 -function L1_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 +group_id = 220011002 + +monsters = { + { config_id = 2001, monster_id = 21010401, pos = { x = 403.547, y = -23.915, z = 127.105 }, rot = { x = 0, y = 182.002, z = 0 }, level = 3, disableWander = true, pose_id = 402 }, + { config_id = 2002, monster_id = 21010401, pos = { x = 408.938, y = -24.157, z = 125.166 }, rot = { x = 0, y = 206.842, z = 0 }, level = 3, disableWander = true, pose_id = 402 }, + { config_id = 2003, monster_id = 21010401, pos = { x = 397.369, y = -24.082, z = 125.887 }, rot = { x = 0, y = 159.597, z = 0 }, level = 3, disableWander = true, pose_id = 402 }, + { config_id = 2004, monster_id = 21010201, pos = { x = 400.309, y = -24.535, z = 130.894 }, rot = { x = 0, y = 181.892, z = 0 }, level = 3 } +} + +npcs = { } + +gadgets = { + { config_id = 2005, gadget_id = 70350002, pos = { x = 415.696, y = -24.157, z = 120.856 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 2006, gadget_id = 70211002, pos = { x = 403.362, y = -24.195, z = 122.321 }, rot = { x = 0, y = 180.016, z = 0 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true }, + { config_id = 2007, gadget_id = 70220005, pos = { x = 399.79, y = -23.586, z = 140.555 }, rot = { x = 0, y = 212.019, z = 0 }, level = 1 }, + { config_id = 2008, gadget_id = 70220014, pos = { x = 401.448, y = -23.735, z = 141.314 }, rot = { x = 0, y = 206.747, z = 0 }, level = 1 }, + { config_id = 2009, gadget_id = 70220013, pos = { x = 404.071, y = -23.598, z = 141.198 }, rot = { x = 0, y = 199.722, z = 0 }, level = 1 }, + { config_id = 2010, gadget_id = 70220013, pos = { x = 402.69, y = -23.677, z = 142.969 }, rot = { x = 0, y = 205.364, z = 0 }, level = 1 }, + { config_id = 2011, gadget_id = 70220013, pos = { x = 399.898, y = -23.576, z = 142.352 }, rot = { x = 0, y = 92.675, z = 0 }, level = 1 }, + { config_id = 2012, gadget_id = 70310001, pos = { x = 414.01, y = -22.193, z = 126.607 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 2013, gadget_id = 70310001, pos = { x = 413.83, y = -22.155, z = 114.879 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 2014, gadget_id = 70900202, pos = { x = 422.935, y = -22.809, z = 120.917 }, rot = { x = 0, y = 215.579, z = 0 }, level = 1 } +} + +regions = { + { config_id = 33, shape = RegionShape.CUBIC, size = { x = 5, y = 3, z = 10 }, pos = { x = 418.49, y = -24.134, z = 121.102 } }, + { config_id = 62, shape = RegionShape.CUBIC, size = { x = 10, y = 3, z = 10 }, pos = { x = 418.126, y = -22.55, z = 71.301 } } +} + +triggers = { + { config_id = 1000009, name = "ANY_MONSTER_DIE_9", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9", action = "action_EVENT_ANY_MONSTER_DIE_9" }, + { config_id = 1000032, name = "ANY_MONSTER_DIE_32", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32", action = "action_EVENT_ANY_MONSTER_DIE_32" }, + { config_id = 1000033, name = "ENTER_REGION_33", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_33", action = "action_EVENT_ENTER_REGION_33", forbid_guest = false }, + { config_id = 1000062, name = "ENTER_REGION_62", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_62", action = "action_EVENT_ENTER_REGION_62", forbid_guest = false } +} + +variables = { } + +init_config = { + suite = 1, + end_suite = 0, + rand_suite = true +} + +suites = {{ + monsters = {2001, 2002, 2003, 2004}, + gadgets = {2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013}, + regions = {33, 62}, + triggers = {"ANY_MONSTER_DIE_9", "ANY_MONSTER_DIE_32", "ENTER_REGION_33", "ENTER_REGION_62"}, + rand_weight = 100 +}} + +function condition_EVENT_ANY_MONSTER_DIE_9(context, args) + if ScriptLib.GetGroupMonsterCount(context) ~= 0 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_9 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = ScriptLib - L2_2 = L2_2.AddExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 5 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.RemoveExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 4 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 2005 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 2012 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 2013 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.CreateGadget - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 2014 - 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 : dungeon_settle" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041042 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = {} - L2_2.x = 415 - L2_2.y = -19 - L2_2.z = 121 - 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 = 2 - 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 + +function action_EVENT_ANY_MONSTER_DIE_9(context, args) + ScriptLib.AddExtraGroupSuite(context, 220011007, 5) + ScriptLib.RemoveExtraGroupSuite(context, 220011007, 4) + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2005, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2012, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2013, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.CreateGadget(context, { + config_id = 2014 + }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + + if 0 ~= ScriptLib.ShowReminder(context, 1041042) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + + local lookPos = { + x = 415, + y = -19, + z = 121 + } + local followPos = { + x = 0, + y = 0, + z = 0 + } + if 0 ~= ScriptLib.BeginCameraSceneLook(context, { + look_pos = lookPos, + is_allow_input = false, + duration = 2, + is_force = true, + is_broadcast = false, + is_recover_keep_current = true, + delay = 0, + is_set_follow_pos = false, + follow_pos = followPos, + is_force_walk = false, + is_change_play_mode = false, + is_set_screen_XY = false, + screen_x = 0, + screen_y = 0 + }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_9 = L1_1 -function L1_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 + + +function condition_EVENT_ANY_MONSTER_DIE_32(context, args) + if ScriptLib.GetGroupMonsterCount(context) ~= 0 then + return false end - L2_2 = true - return L2_2 + return true end -condition_EVENT_ANY_MONSTER_DIE_32 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 2006 - L5_2 = GadgetState - L5_2 = L5_2.Default - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_32(context, args) + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.Default) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 end - L2_2 = 0 - return L2_2 + return 0 end -action_EVENT_ANY_MONSTER_DIE_32 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 33 then - L2_2 = false - return L2_2 + +function condition_EVENT_ENTER_REGION_33(context, args) + if args.param1 ~= 33 then + return false end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - L2_2 = L2_2(L3_2, L4_2) - if L2_2 < 1 then - L2_2 = false - return L2_2 + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { region_eid = args.source_eid, entity_type = EntityType.AVATAR }) + if avatarEntityCount < 1 then + return false end - L2_2 = true - return L2_2 + return true end -condition_EVENT_ENTER_REGION_33 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2 - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041072 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 + +function action_EVENT_ENTER_REGION_33(context, args) + if 0 ~= ScriptLib.ShowReminder(context, 1041072) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 end - L2_2 = 0 - return L2_2 + return 0 end -action_EVENT_ENTER_REGION_33 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 62 then - L2_2 = false - return L2_2 + +function condition_EVENT_ENTER_REGION_62(context, args) + if args.param1 ~= 62 then + return false end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - L2_2 = L2_2(L3_2, L4_2) - if L2_2 < 1 then - L2_2 = false - return L2_2 + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { region_eid = args.source_eid, entity_type = EntityType.AVATAR }) + if avatarEntityCount < 1 then + return false end - L2_2 = true - return L2_2 + return true end -condition_EVENT_ENTER_REGION_62 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = {} - L2_2.x = 410 - L2_2.y = -22 - L2_2.z = 63 - 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 = 1 - 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 = ScriptLib - L4_2 = L4_2.ShowReminder - L5_2 = A0_2 - L6_2 = 1041093 - 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_reminder_ui" - L4_2(L5_2, L6_2) - L4_2 = -1 - return L4_2 - end - L4_2 = 0 - return L4_2 + +function action_EVENT_ENTER_REGION_62(context, args) + local lookPos = { x = 410, y = -22, z = 63 } + local followPos = { x = 0, y = 0, z = 0 } + if 0 ~= ScriptLib.BeginCameraSceneLook(context, { + look_pos = lookPos, + is_allow_input = false, + duration = 1, + is_force = true, + is_broadcast = false, + is_recover_keep_current = true, + delay = 0, + is_set_follow_pos = false, + follow_pos = followPos, + is_force_walk = false, + is_change_play_mode = false, + is_set_screen_XY = false, + screen_x = 0, + screen_y = 0 + }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin") + return -1 + end + + if 0 ~= ScriptLib.ShowReminder(context, 1041093) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + return 0 end -action_EVENT_ENTER_REGION_62 = L1_1 + + diff --git a/Resources/Scripts/Scene/20011/scene20011_group220011003.lua b/Resources/Scripts/Scene/20011/scene20011_group220011003.lua index 4583f971b..9fd853e7d 100644 --- a/Resources/Scripts/Scene/20011/scene20011_group220011003.lua +++ b/Resources/Scripts/Scene/20011/scene20011_group220011003.lua @@ -1,1536 +1,412 @@ -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, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1 -L0_1 = {} -L0_1.group_id = 220011003 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 3001 -L2_1.monster_id = 21010401 -L3_1 = {} -L3_1.x = 488.998 -L3_1.y = -24.119 -L3_1.z = 126.999 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.x = 0.0 -L3_1.y = 239.999 -L3_1.z = 0.0 -L2_1.rot = L3_1 -L2_1.level = 3 -L2_1.pose_id = 402 -L3_1 = {} -L3_1.config_id = 3002 -L3_1.monster_id = 21010401 -L4_1 = {} -L4_1.x = 488.459 -L4_1.y = -23.42 -L4_1.z = 116.25 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 305.466 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 3 -L3_1.pose_id = 402 -L4_1 = {} -L4_1.config_id = 3003 -L4_1.monster_id = 20011101 -L5_1 = {} -L5_1.x = 486.595 -L5_1.y = -23.615 -L5_1.z = 120.939 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.x = 0.0 -L5_1.y = 269.28 -L5_1.z = 0.0 -L4_1.rot = L5_1 -L4_1.level = 3 -L4_1.disableWander = true -L5_1 = {} -L5_1.config_id = 3004 -L5_1.monster_id = 21010401 -L6_1 = {} -L6_1.x = 489.836 -L6_1.y = -22.88 -L6_1.z = 121.183 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.x = 0.0 -L6_1.y = 280.53 -L6_1.z = 0.0 -L5_1.rot = L6_1 -L5_1.level = 3 -L5_1.pose_id = 402 -L6_1 = {} -L6_1.config_id = 3005 -L6_1.monster_id = 21010201 -L7_1 = {} -L7_1.x = 480.113 -L7_1.y = -22.88 -L7_1.z = 126.691 -L6_1.pos = L7_1 -L7_1 = {} -L7_1.x = 0.0 -L7_1.y = 140.117 -L7_1.z = 0.0 -L6_1.rot = L7_1 -L6_1.level = 3 -L7_1 = {} -L7_1.config_id = 3006 -L7_1.monster_id = 21010201 -L8_1 = {} -L8_1.x = 481.056 -L8_1.y = -22.88 -L8_1.z = 116.133 -L7_1.pos = L8_1 -L8_1 = {} -L8_1.x = 0.0 -L8_1.y = 53.65 -L8_1.z = 0.0 -L7_1.rot = L8_1 -L7_1.level = 3 -L8_1 = {} -L8_1.config_id = 3007 -L8_1.monster_id = 21010201 -L9_1 = {} -L9_1.x = 491.968 -L9_1.y = -23.01 -L9_1.z = 116.6 -L8_1.pos = L9_1 -L9_1 = {} -L9_1.x = 0.0 -L9_1.y = 297.97 -L9_1.z = 0.0 -L8_1.rot = L9_1 -L8_1.level = 3 -L9_1 = {} -L9_1.config_id = 3008 -L9_1.monster_id = 21010201 -L10_1 = {} -L10_1.x = 492.038 -L10_1.y = -23.01 -L10_1.z = 126.518 -L9_1.pos = L10_1 -L10_1 = {} -L10_1.x = 0.0 -L10_1.y = 225.324 -L10_1.z = 0.0 -L9_1.rot = L10_1 -L9_1.level = 3 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -L1_1[5] = L6_1 -L1_1[6] = L7_1 -L1_1[7] = L8_1 -L1_1[8] = L9_1 -monsters = L1_1 -L1_1 = {} -npcs = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 3009 -L2_1.gadget_id = 70350002 -L3_1 = {} -L3_1.x = 463.668 -L3_1.y = -9.541 -L3_1.z = 120.944 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.x = 0.0 -L3_1.y = 90.0 -L3_1.z = 0.0 -L2_1.rot = L3_1 -L2_1.level = 1 -L3_1 = {} -L3_1.config_id = 3010 -L3_1.gadget_id = 70350002 -L4_1 = {} -L4_1.x = 500.938 -L4_1.y = -23.18 -L4_1.z = 121.64 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 270.0 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 1 -L4_1 = {} -L4_1.config_id = 3011 -L4_1.gadget_id = 70310001 -L5_1 = {} -L5_1.x = 460.074 -L5_1.y = -7.317 -L5_1.z = 126.777 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.x = 0.0 -L5_1.y = 270.0 -L5_1.z = 0.0 -L4_1.rot = L5_1 -L4_1.level = 1 -L5_1 = {} -L5_1.config_id = 3012 -L5_1.gadget_id = 70310001 -L6_1 = {} -L6_1.x = 460.087 -L6_1.y = -7.185 -L6_1.z = 115.093 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.x = 0.0 -L6_1.y = 270.0 -L6_1.z = 0.0 -L5_1.rot = L6_1 -L5_1.level = 1 -L6_1 = {} -L6_1.config_id = 3013 -L6_1.gadget_id = 70310002 -L7_1 = {} -L7_1.x = 498.672 -L7_1.y = -18.596 -L7_1.z = 127.408 -L6_1.pos = L7_1 -L7_1 = {} -L7_1.x = 0.0 -L7_1.y = 270.0 -L7_1.z = 0.0 -L6_1.rot = L7_1 -L6_1.level = 1 -L7_1 = {} -L7_1.config_id = 3014 -L7_1.gadget_id = 70310002 -L8_1 = {} -L8_1.x = 498.679 -L8_1.y = -18.511 -L8_1.z = 116.032 -L7_1.pos = L8_1 -L8_1 = {} -L8_1.x = 0.0 -L8_1.y = 270.0 -L8_1.z = 0.0 -L7_1.rot = L8_1 -L7_1.level = 1 -L8_1 = {} -L8_1.config_id = 3015 -L8_1.gadget_id = 70310002 -L9_1 = {} -L9_1.x = 430.307 -L9_1.y = -13.33 -L9_1.z = 128.477 -L8_1.pos = L9_1 -L9_1 = {} -L9_1.x = 0.0 -L9_1.y = 270.0 -L9_1.z = 0.0 -L8_1.rot = L9_1 -L8_1.level = 1 -L9_1 = {} -L9_1.config_id = 3016 -L9_1.gadget_id = 70310002 -L10_1 = {} -L10_1.x = 430.301 -L10_1.y = -13.358 -L10_1.z = 114.697 -L9_1.pos = L10_1 -L10_1 = {} -L10_1.x = 0.0 -L10_1.y = 270.0 -L10_1.z = 0.0 -L9_1.rot = L10_1 -L9_1.level = 1 -L10_1 = {} -L10_1.config_id = 3017 -L10_1.gadget_id = 70310002 -L11_1 = {} -L11_1.x = 430.318 -L11_1.y = -19.403 -L11_1.z = 128.472 -L10_1.pos = L11_1 -L11_1 = {} -L11_1.x = 0.0 -L11_1.y = 270.0 -L11_1.z = 0.0 -L10_1.rot = L11_1 -L10_1.level = 1 -L11_1 = {} -L11_1.config_id = 3018 -L11_1.gadget_id = 70310002 -L12_1 = {} -L12_1.x = 430.298 -L12_1.y = -19.434 -L12_1.z = 114.665 -L11_1.pos = L12_1 -L12_1 = {} -L12_1.x = 0.0 -L12_1.y = 270.0 -L12_1.z = 0.0 -L11_1.rot = L12_1 -L11_1.level = 1 -L12_1 = {} -L12_1.config_id = 3019 -L12_1.gadget_id = 70900202 -L13_1 = {} -L13_1.x = 511.916 -L13_1.y = -24.254 -L13_1.z = 121.694 -L12_1.pos = L13_1 -L13_1 = {} -L13_1.x = 0.0 -L13_1.y = 48.844 -L13_1.z = 0.0 -L12_1.rot = L13_1 -L12_1.level = 1 -L13_1 = {} -L13_1.config_id = 3020 -L13_1.gadget_id = 70900202 -L14_1 = {} -L14_1.x = 532.83 -L14_1.y = -23.262 -L14_1.z = 123.108 -L13_1.pos = L14_1 -L14_1 = {} -L14_1.x = 0.0 -L14_1.y = 215.626 -L14_1.z = 0.0 -L13_1.rot = L14_1 -L13_1.level = 1 -L14_1 = {} -L14_1.config_id = 3021 -L14_1.gadget_id = 70220013 -L15_1 = {} -L15_1.x = 458.379 -L15_1.y = -9.35 -L15_1.z = 111.762 -L14_1.pos = L15_1 -L15_1 = {} -L15_1.x = 0.0 -L15_1.y = 147.084 -L15_1.z = 0.0 -L14_1.rot = L15_1 -L14_1.level = 1 -L15_1 = {} -L15_1.config_id = 3022 -L15_1.gadget_id = 70220013 -L16_1 = {} -L16_1.x = 455.744 -L16_1.y = -9.3 -L16_1.z = 111.288 -L15_1.pos = L16_1 -L16_1 = {} -L16_1.x = 0.0 -L16_1.y = 241.337 -L16_1.z = 0.0 -L15_1.rot = L16_1 -L15_1.level = 1 -L16_1 = {} -L16_1.config_id = 3023 -L16_1.gadget_id = 70220013 -L17_1 = {} -L17_1.x = 453.328 -L17_1.y = -9.254 -L17_1.z = 110.179 -L16_1.pos = L17_1 -L17_1 = {} -L17_1.x = 0.0 -L17_1.y = 163.634 -L17_1.z = 0.0 -L16_1.rot = L17_1 -L16_1.level = 1 -L17_1 = {} -L17_1.config_id = 3024 -L17_1.gadget_id = 70220013 -L18_1 = {} -L18_1.x = 459.152 -L18_1.y = -9.254 -L18_1.z = 109.246 -L17_1.pos = L18_1 -L18_1 = {} -L18_1.x = 0.0 -L18_1.y = 238.989 -L18_1.z = 0.0 -L17_1.rot = L18_1 -L17_1.level = 1 -L18_1 = {} -L18_1.config_id = 3025 -L18_1.gadget_id = 70211101 -L19_1 = {} -L19_1.x = 456.424 -L19_1.y = -9.254 -L19_1.z = 107.768 -L18_1.pos = L19_1 -L19_1 = {} -L19_1.x = 0.0 -L19_1.y = 245.888 -L19_1.z = 0.0 -L18_1.rot = L19_1 -L18_1.level = 1 -L18_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\232\146\153\229\190\183" -L18_1.isOneoff = true -L19_1 = {} -L19_1.config_id = 3026 -L19_1.gadget_id = 70220014 -L20_1 = {} -L20_1.x = 455.003 -L20_1.y = -9.366 -L20_1.z = 109.295 -L19_1.pos = L20_1 -L20_1 = {} -L20_1.x = 0.0 -L20_1.y = 299.25 -L20_1.z = 0.0 -L19_1.rot = L20_1 -L19_1.level = 1 -L20_1 = {} -L20_1.config_id = 3027 -L20_1.gadget_id = 70220014 -L21_1 = {} -L21_1.x = 456.474 -L21_1.y = -9.254 -L21_1.z = 113.151 -L20_1.pos = L21_1 -L21_1 = {} -L21_1.x = 0.0 -L21_1.y = 34.842 -L21_1.z = 0.0 -L20_1.rot = L21_1 -L20_1.level = 1 -L21_1 = {} -L21_1.config_id = 3028 -L21_1.gadget_id = 70220014 -L22_1 = {} -L22_1.x = 454.405 -L22_1.y = -9.35 -L22_1.z = 110.894 -L21_1.pos = L22_1 -L22_1 = {} -L22_1.x = 0.0 -L22_1.y = 48.81 -L22_1.z = 0.0 -L21_1.rot = L22_1 -L21_1.level = 1 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -L1_1[5] = L6_1 -L1_1[6] = L7_1 -L1_1[7] = L8_1 -L1_1[8] = L9_1 -L1_1[9] = L10_1 -L1_1[10] = L11_1 -L1_1[11] = L12_1 -L1_1[12] = L13_1 -L1_1[13] = L14_1 -L1_1[14] = L15_1 -L1_1[15] = L16_1 -L1_1[16] = L17_1 -L1_1[17] = L18_1 -L1_1[18] = L19_1 -L1_1[19] = L20_1 -L1_1[20] = L21_1 -gadgets = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 11 -L3_1 = RegionShape -L3_1 = L3_1.SPHERE -L2_1.shape = L3_1 -L2_1.radius = 7.3 -L3_1 = {} -L3_1.x = 435.196 -L3_1.y = -7.707 -L3_1.z = 121.122 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.config_id = 26 -L4_1 = RegionShape -L4_1 = L4_1.CUBIC -L3_1.shape = L4_1 -L4_1 = {} -L4_1.x = 10.0 -L4_1.y = 8.0 -L4_1.z = 15.0 -L3_1.size = L4_1 -L4_1 = {} -L4_1.x = 506.843 -L4_1.y = -22.5 -L4_1.z = 121.314 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.config_id = 40 -L5_1 = RegionShape -L5_1 = L5_1.SPHERE -L4_1.shape = L5_1 -L4_1.radius = 5 -L5_1 = {} -L5_1.x = 422.789 -L5_1.y = -24.284 -L5_1.z = 120.497 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.config_id = 41 -L6_1 = RegionShape -L6_1 = L6_1.CUBIC -L5_1.shape = L6_1 -L6_1 = {} -L6_1.x = 15.0 -L6_1.y = 3.0 -L6_1.z = 15.0 -L5_1.size = L6_1 -L6_1 = {} -L6_1.x = 426.984 -L6_1.y = -17.041 -L6_1.z = 121.846 -L5_1.pos = L6_1 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -regions = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 1000011 -L2_1.name = "ENTER_REGION_11" -L3_1 = EventType -L3_1 = L3_1.EVENT_ENTER_REGION -L2_1.event = L3_1 -L2_1.source = "" -L2_1.condition = "condition_EVENT_ENTER_REGION_11" -L2_1.action = "action_EVENT_ENTER_REGION_11" -L2_1.forbid_guest = false -L3_1 = {} -L3_1.config_id = 1000012 -L3_1.name = "VARIABLE_CHANGE_12" -L4_1 = EventType -L4_1 = L4_1.EVENT_VARIABLE_CHANGE -L3_1.event = L4_1 -L3_1.source = "" -L3_1.condition = "condition_EVENT_VARIABLE_CHANGE_12" -L3_1.action = "action_EVENT_VARIABLE_CHANGE_12" -L4_1 = {} -L4_1.config_id = 1000022 -L4_1.name = "ANY_MONSTER_DIE_22" -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_22" -L4_1.action = "action_EVENT_ANY_MONSTER_DIE_22" -L5_1 = {} -L5_1.config_id = 1000026 -L5_1.name = "ENTER_REGION_26" -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_26" -L5_1.action = "action_EVENT_ENTER_REGION_26" -L5_1.forbid_guest = false -L6_1 = {} -L6_1.config_id = 1000040 -L6_1.name = "ENTER_REGION_40" -L7_1 = EventType -L7_1 = L7_1.EVENT_ENTER_REGION -L6_1.event = L7_1 -L6_1.source = "" -L6_1.condition = "condition_EVENT_ENTER_REGION_40" -L6_1.action = "action_EVENT_ENTER_REGION_40" -L6_1.forbid_guest = false -L7_1 = {} -L7_1.config_id = 1000041 -L7_1.name = "ENTER_REGION_41" -L8_1 = EventType -L8_1 = L8_1.EVENT_ENTER_REGION -L7_1.event = L8_1 -L7_1.source = "" -L7_1.condition = "condition_EVENT_ENTER_REGION_41" -L7_1.action = "action_EVENT_ENTER_REGION_41" -L7_1.forbid_guest = false -L8_1 = {} -L8_1.config_id = 1000066 -L8_1.name = "ANY_MONSTER_DIE_66" -L9_1 = EventType -L9_1 = L9_1.EVENT_ANY_MONSTER_DIE -L8_1.event = L9_1 -L8_1.source = "" -L8_1.condition = "condition_EVENT_ANY_MONSTER_DIE_66" -L8_1.action = "action_EVENT_ANY_MONSTER_DIE_66" -L9_1 = {} -L9_1.config_id = 1000067 -L9_1.name = "ANY_MONSTER_DIE_67" -L10_1 = EventType -L10_1 = L10_1.EVENT_ANY_MONSTER_DIE -L9_1.event = L10_1 -L9_1.source = "" -L9_1.condition = "condition_EVENT_ANY_MONSTER_DIE_67" -L9_1.action = "action_EVENT_ANY_MONSTER_DIE_67" -L10_1 = {} -L10_1.config_id = 1000068 -L10_1.name = "ANY_MONSTER_DIE_68" -L11_1 = EventType -L11_1 = L11_1.EVENT_ANY_MONSTER_DIE -L10_1.event = L11_1 -L10_1.source = "" -L10_1.condition = "condition_EVENT_ANY_MONSTER_DIE_68" -L10_1.action = "action_EVENT_ANY_MONSTER_DIE_68" -L11_1 = {} -L11_1.config_id = 1000069 -L11_1.name = "ANY_MONSTER_DIE_69" -L12_1 = EventType -L12_1 = L12_1.EVENT_ANY_MONSTER_DIE -L11_1.event = L12_1 -L11_1.source = "" -L11_1.condition = "condition_EVENT_ANY_MONSTER_DIE_69" -L11_1.action = "action_EVENT_ANY_MONSTER_DIE_69" -L12_1 = {} -L12_1.config_id = 1000070 -L12_1.name = "ANY_MONSTER_DIE_70" -L13_1 = EventType -L13_1 = L13_1.EVENT_ANY_MONSTER_DIE -L12_1.event = L13_1 -L12_1.source = "" -L12_1.condition = "condition_EVENT_ANY_MONSTER_DIE_70" -L12_1.action = "action_EVENT_ANY_MONSTER_DIE_70" -L13_1 = {} -L13_1.config_id = 1000071 -L13_1.name = "ANY_MONSTER_DIE_71" -L14_1 = EventType -L14_1 = L14_1.EVENT_ANY_MONSTER_DIE -L13_1.event = L14_1 -L13_1.source = "" -L13_1.condition = "condition_EVENT_ANY_MONSTER_DIE_71" -L13_1.action = "action_EVENT_ANY_MONSTER_DIE_71" -L14_1 = {} -L14_1.config_id = 1000072 -L14_1.name = "ANY_MONSTER_DIE_72" -L15_1 = EventType -L15_1 = L15_1.EVENT_ANY_MONSTER_DIE -L14_1.event = L15_1 -L14_1.source = "" -L14_1.condition = "condition_EVENT_ANY_MONSTER_DIE_72" -L14_1.action = "action_EVENT_ANY_MONSTER_DIE_72" -L15_1 = {} -L15_1.config_id = 1000073 -L15_1.name = "ANY_MONSTER_DIE_73" -L16_1 = EventType -L16_1 = L16_1.EVENT_ANY_MONSTER_DIE -L15_1.event = L16_1 -L15_1.source = "" -L15_1.condition = "condition_EVENT_ANY_MONSTER_DIE_73" -L16_1 = "action_EVENT_ANY_MONSTER_DIE_73" -L15_1.action = L16_1 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -L1_1[5] = L6_1 -L1_1[6] = L7_1 -L1_1[7] = L8_1 -L1_1[8] = L9_1 -L1_1[9] = L10_1 -L1_1[10] = L11_1 -L1_1[11] = L12_1 -L1_1[12] = L13_1 -L1_1[13] = L14_1 -L1_1[14] = L15_1 -triggers = L1_1 -L1_1 = "variables" -L2_1 = {} -L3_1 = {} -L4_1 = "configId" -L3_1[L4_1] = 1 -L4_1 = "Key" -L3_1.name = L4_1 -L4_1 = "value" -L5_1 = 0 -L3_1[L4_1] = L5_1 -L4_1 = "no_refresh" -L3_1[L4_1] = false -L2_1[1] = L3_1 -_ENV[L1_1] = L2_1 -L1_1 = "init_config" -L2_1 = {} -L3_1 = "suite" -L2_1[L3_1] = 1 -L3_1 = "end_suite" -L4_1 = 0 -L2_1[L3_1] = L4_1 -L3_1 = "rand_suite" -L2_1[L3_1] = true -_ENV[L1_1] = L2_1 -L1_1 = "suites" -L2_1 = {} -L3_1 = {} -L4_1 = {} -L5_1 = 3001 -L6_1 = 3002 -L7_1 = 3003 -L8_1 = 3004 -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L3_1.monsters = L4_1 -L4_1 = {} -L5_1 = 3009 -L6_1 = 3010 -L7_1 = 3011 -L8_1 = 3012 -L9_1 = 3013 -L10_1 = 3014 -L11_1 = 3015 -L12_1 = 3016 -L13_1 = 3017 -L14_1 = 3018 -L15_1 = 3021 -L16_1 = 3022 -L17_1 = 3023 -L18_1 = 3024 -L19_1 = 3025 -L20_1 = 3026 -L21_1 = 3027 -L22_1 = 3028 -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L4_1[5] = L9_1 -L4_1[6] = L10_1 -L4_1[7] = L11_1 -L4_1[8] = L12_1 -L4_1[9] = L13_1 -L4_1[10] = L14_1 -L4_1[11] = L15_1 -L4_1[12] = L16_1 -L4_1[13] = L17_1 -L4_1[14] = L18_1 -L4_1[15] = L19_1 -L4_1[16] = L20_1 -L4_1[17] = L21_1 -L4_1[18] = L22_1 -L3_1.gadgets = L4_1 -L4_1 = {} -L5_1 = 11 -L6_1 = 26 -L7_1 = 40 -L8_1 = 41 -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L3_1.regions = L4_1 -L4_1 = {} -L5_1 = "ENTER_REGION_11" -L6_1 = "VARIABLE_CHANGE_12" -L7_1 = "ANY_MONSTER_DIE_22" -L8_1 = "ENTER_REGION_26" -L9_1 = "ENTER_REGION_40" -L10_1 = "ENTER_REGION_41" -L11_1 = "ANY_MONSTER_DIE_66" -L12_1 = "ANY_MONSTER_DIE_67" -L13_1 = "ANY_MONSTER_DIE_68" -L14_1 = "ANY_MONSTER_DIE_69" -L15_1 = "ANY_MONSTER_DIE_70" -L16_1 = "ANY_MONSTER_DIE_71" -L17_1 = "ANY_MONSTER_DIE_72" -L18_1 = "ANY_MONSTER_DIE_73" -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L4_1[5] = L9_1 -L4_1[6] = L10_1 -L4_1[7] = L11_1 -L4_1[8] = L12_1 -L4_1[9] = L13_1 -L4_1[10] = L14_1 -L4_1[11] = L15_1 -L4_1[12] = L16_1 -L4_1[13] = L17_1 -L4_1[14] = L18_1 -L3_1.triggers = L4_1 -L4_1 = "rand_weight" -L5_1 = 100 -L3_1[L4_1] = L5_1 -L2_1[1] = L3_1 -_ENV[L1_1] = L2_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 11 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 +group_id = 220011003 + +monsters = { + { config_id = 3001, monster_id = 21010401, pos = { x = 488.998, y = -24.119, z = 126.999 }, rot = { x = 0, y = 239.999, z = 0 }, level = 3, pose_id = 402 }, + { config_id = 3002, monster_id = 21010401, pos = { x = 488.459, y = -23.42, z = 116.25 }, rot = { x = 0, y = 305.466, z = 0 }, level = 3, pose_id = 402 }, + { config_id = 3003, monster_id = 20011101, pos = { x = 486.595, y = -23.615, z = 120.939 }, rot = { x = 0, y = 269.28, z = 0 }, level = 3, disableWander = true }, + { config_id = 3004, monster_id = 21010401, pos = { x = 489.836, y = -22.88, z = 121.183 }, rot = { x = 0, y = 280.53, z = 0 }, level = 3, pose_id = 402 }, + { config_id = 3005, monster_id = 21010201, pos = { x = 480.113, y = -22.88, z = 126.691 }, rot = { x = 0, y = 140.117, z = 0 }, level = 3 }, + { config_id = 3006, monster_id = 21010201, pos = { x = 481.056, y = -22.88, z = 116.133 }, rot = { x = 0, y = 53.65, z = 0 }, level = 3 }, + { config_id = 3007, monster_id = 21010201, pos = { x = 491.968, y = -23.01, z = 116.6 }, rot = { x = 0, y = 297.97, z = 0 }, level = 3 }, + { config_id = 3008, monster_id = 21010201, pos = { x = 492.038, y = -23.01, z = 126.518 }, rot = { x = 0, y = 225.324, z = 0 }, level = 3 } +} + +npcs = { } + +gadgets = { + { config_id = 3009, gadget_id = 70350002, pos = { x = 463.668, y = -9.541, z = 120.944 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 3010, gadget_id = 70350002, pos = { x = 500.938, y = -23.18, z = 121.64 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3011, gadget_id = 70310001, pos = { x = 460.074, y = -7.317, z = 126.777 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3012, gadget_id = 70310001, pos = { x = 460.087, y = -7.185, z = 115.093 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3013, gadget_id = 70310002, pos = { x = 498.672, y = -18.596, z = 127.408 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3014, gadget_id = 70310002, pos = { x = 498.679, y = -18.511, z = 116.032 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3015, gadget_id = 70310002, pos = { x = 430.307, y = -13.33, z = 128.477 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3016, gadget_id = 70310002, pos = { x = 430.301, y = -13.358, z = 114.697 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3017, gadget_id = 70310002, pos = { x = 430.318, y = -19.403, z = 128.472 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3018, gadget_id = 70310002, pos = { x = 430.298, y = -19.434, z = 114.665 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 3019, gadget_id = 70900202, pos = { x = 511.916, y = -24.254, z = 121.694 }, rot = { x = 0, y = 48.844, z = 0 }, level = 1 }, + { config_id = 3020, gadget_id = 70900202, pos = { x = 532.83, y = -23.262, z = 123.108 }, rot = { x = 0, y = 215.626, z = 0 }, level = 1 }, + { config_id = 3021, gadget_id = 70220013, pos = { x = 458.379, y = -9.35, z = 111.762 }, rot = { x = 0, y = 147.084, z = 0 }, level = 1 }, + { config_id = 3022, gadget_id = 70220013, pos = { x = 455.744, y = -9.3, z = 111.288 }, rot = { x = 0, y = 241.337, z = 0 }, level = 1 }, + { config_id = 3023, gadget_id = 70220013, pos = { x = 453.328, y = -9.254, z = 110.179 }, rot = { x = 0, y = 163.634, z = 0 }, level = 1 }, + { config_id = 3024, gadget_id = 70220013, pos = { x = 459.152, y = -9.254, z = 109.246 }, rot = { x = 0, y = 238.989, z = 0 }, level = 1 }, + { config_id = 3025, gadget_id = 70211101, pos = { x = 456.424, y = -9.254, z = 107.768 }, rot = { x = 0, y = 245.888, z = 0 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true }, + { config_id = 3026, gadget_id = 70220014, pos = { x = 455.003, y = -9.366, z = 109.295 }, rot = { x = 0, y = 299.25, z = 0 }, level = 1 }, + { config_id = 3027, gadget_id = 70220014, pos = { x = 456.474, y = -9.254, z = 113.151 }, rot = { x = 0, y = 34.842, z = 0 }, level = 1 }, + { config_id = 3028, gadget_id = 70220014, pos = { x = 454.405, y = -9.35, z = 110.894 }, rot = { x = 0, y = 48.81, z = 0 }, level = 1 } +} + +regions = { + { config_id = 11, shape = RegionShape.SPHERE, radius = 7.3, pos = { x = 435.196, y = -7.707, z = 121.122 } }, + { config_id = 26, shape = RegionShape.CUBIC, size = { x = 10, y = 8, z = 15 }, pos = { x = 506.843, y = -22.5, z = 121.314 } }, + { config_id = 40, shape = RegionShape.SPHERE, radius = 5, pos = { x = 422.789, y = -24.284, z = 120.497 } }, + { config_id = 41, shape = RegionShape.CUBIC, size = { x = 15, y = 3, z = 15 }, pos = { x = 426.984, y = -17.041, z = 121.846 } } +} + +triggers = { + { config_id = 1000011, name = "ENTER_REGION_11", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11", action = "action_EVENT_ENTER_REGION_11", forbid_guest = false }, + { config_id = 1000012, name = "VARIABLE_CHANGE_12", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_12", action = "action_EVENT_VARIABLE_CHANGE_12" }, + { config_id = 1000022, name = "ANY_MONSTER_DIE_22", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22", action = "action_EVENT_ANY_MONSTER_DIE_22" }, + { config_id = 1000026, name = "ENTER_REGION_26", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_26", action = "action_EVENT_ENTER_REGION_26", forbid_guest = false }, + { config_id = 1000040, name = "ENTER_REGION_40", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_40", action = "action_EVENT_ENTER_REGION_40", forbid_guest = false }, + { config_id = 1000041, name = "ENTER_REGION_41", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_41", action = "action_EVENT_ENTER_REGION_41", forbid_guest = false }, + { config_id = 1000066, name = "ANY_MONSTER_DIE_66", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_66", action = "action_EVENT_ANY_MONSTER_DIE_66" }, + { config_id = 1000067, name = "ANY_MONSTER_DIE_67", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_67", action = "action_EVENT_ANY_MONSTER_DIE_67" }, + { config_id = 1000068, name = "ANY_MONSTER_DIE_68", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_68", action = "action_EVENT_ANY_MONSTER_DIE_68" }, + { config_id = 1000069, name = "ANY_MONSTER_DIE_69", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_69", action = "action_EVENT_ANY_MONSTER_DIE_69" }, + { config_id = 1000070, name = "ANY_MONSTER_DIE_70", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_70", action = "action_EVENT_ANY_MONSTER_DIE_70" }, + { config_id = 1000071, name = "ANY_MONSTER_DIE_71", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_71", action = "action_EVENT_ANY_MONSTER_DIE_71" }, + { config_id = 1000072, name = "ANY_MONSTER_DIE_72", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_72", action = "action_EVENT_ANY_MONSTER_DIE_72" }, + { config_id = 1000073, name = "ANY_MONSTER_DIE_73", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_73", action = "action_EVENT_ANY_MONSTER_DIE_73" } +} + +variables = { + { configId = 1, name = "Key", value = 0, no_refresh = false } +} + +init_config = { + suite = 1, + end_suite = 0, + rand_suite = true +} + +suites = {{ + monsters = {3001, 3002, 3003, 3004}, + gadgets = {3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028}, + regions = {11, 26, 40, 41}, + triggers = {"ENTER_REGION_11", "VARIABLE_CHANGE_12", "ANY_MONSTER_DIE_22", "ENTER_REGION_26", "ENTER_REGION_40", "ENTER_REGION_41", "ANY_MONSTER_DIE_66", "ANY_MONSTER_DIE_67", "ANY_MONSTER_DIE_68", "ANY_MONSTER_DIE_69", "ANY_MONSTER_DIE_70", "ANY_MONSTER_DIE_71", "ANY_MONSTER_DIE_72", "ANY_MONSTER_DIE_73"}, + rand_weight = 100 +}} + + +function condition_EVENT_ENTER_REGION_11(context, args) + if args.param1 ~= 11 then + return false + end + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false + end + return true end -condition_EVENT_ENTER_REGION_11 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.AddExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 6 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.RemoveExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 5 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3009 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3011 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3012 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ENTER_REGION_11(context, args) + ScriptLib.AddExtraGroupSuite(context, 220011007, 6) + ScriptLib.RemoveExtraGroupSuite(context, 220011007, 5) + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3011, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3012, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 end -action_EVENT_ENTER_REGION_11 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2 - L2_2 = A1_2.param1 - L3_2 = A1_2.param2 - if L2_2 == L3_2 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - L2_2 = L2_2(L3_2, L4_2) - if L2_2 ~= 8 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_VARIABLE_CHANGE_12(context, args) + if args.param1 == args.param2 then + return false + end + + if ScriptLib.GetGroupVariableValue(context, "Key") ~= 8 then + return false + end + return true end -condition_EVENT_VARIABLE_CHANGE_12 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3010 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3013 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3014 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.CreateGadget - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 3019 - 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 : dungeon_settle" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_VARIABLE_CHANGE_12(context, args) + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3013, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3014, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3019 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + return 0 end -action_EVENT_VARIABLE_CHANGE_12 = L1_1 -function L1_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 ~= 1 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_22(context, args) + if ScriptLib.GetGroupMonsterCount(context) ~= 1 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_22 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2 - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1037001 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_22(context, args) + if 0 ~= ScriptLib.ShowReminder(context, 1037001) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_22 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 26 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 + +function condition_EVENT_ENTER_REGION_26(context, args) + if args.param1 ~= 26 then + return false + end + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false + end + return true end -condition_EVENT_ENTER_REGION_26 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = ScriptLib - L2_2 = L2_2.AddExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 7 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.RemoveExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 6 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041022 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.KillGroupEntity - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011003 - L5_2 = {} - L4_2.monsters = L5_2 - L5_2 = {} - L6_2 = 3019 - L5_2[1] = L6_2 - L4_2.gadgets = L5_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 : kill_monsters_and_gadgets_by_group" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.CreateGadget - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 3020 - 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 : dungeon_settle" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ENTER_REGION_26(context, args) + ScriptLib.AddExtraGroupSuite(context, 220011007, 7) + ScriptLib.RemoveExtraGroupSuite(context, 220011007, 6) + + if 0 ~= ScriptLib.ShowReminder(context, 1041022) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + + local var2 = ScriptLib.KillGroupEntity(context, { + group_id = 220011003, + monsters = {}, + gadgets = {3019} + }) + if 0 ~= var2 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group") + return -1 + end + + if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + return 0 end -action_EVENT_ENTER_REGION_26 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 40 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 + +function condition_EVENT_ENTER_REGION_40(context, args) + if args.param1 ~= 40 then + return false + end + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false + end + return true end -condition_EVENT_ENTER_REGION_40 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3017 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3018 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ENTER_REGION_40(context, args) + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3017, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3018, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + return 0 end -action_EVENT_ENTER_REGION_40 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 41 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 + +function condition_EVENT_ENTER_REGION_41(context, args) + if args.param1 ~= 41 then + return false + end + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false + end + return true end -condition_EVENT_ENTER_REGION_41 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3015 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 3016 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.KillGroupEntity - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011002 - L5_2 = {} - L4_2.monsters = L5_2 - L5_2 = {} - L6_2 = 2014 - L5_2[1] = L6_2 - L4_2.gadgets = L5_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 : kill_monsters_and_gadgets_by_group" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ENTER_REGION_41(context, args) + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3015, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3016, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 + end + + local var3 = ScriptLib.KillGroupEntity(context, { + group_id = 220011002, + monsters = {}, + gadgets = {2014} + }) + if 0 ~= var3 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group") + return -1 + end + return 0 end -action_EVENT_ENTER_REGION_41 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if L2_2 ~= 3005 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_66(context, args) + if args.param1 ~= 3005 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_66 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_66(context, args) + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_66 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 3006 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_67(context, args) + if 3006 ~= args.param1 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_67 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_67(context, args) + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_67 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 3007 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_68(context, args) + if 3007 ~= args.param1 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_68 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_68(context, args) + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_68 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 3008 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_69(context, args) + if 3008 ~= args.param1 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_69 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_69(context, args) + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_69 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if L2_2 ~= 3002 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_70(context, args) + if args.param1 ~= 3002 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_70 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.CreateMonster - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 3006 - L4_2.delay_time = 1 - 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 : create_monster" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_70(context, args) + if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3006, delay_time = 1 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") + return -1 + end + + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_70 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if L2_2 ~= 3001 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_71(context, args) + if args.param1 ~= 3001 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_71 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.CreateMonster - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 3005 - L4_2.delay_time = 1 - 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 : create_monster" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_71(context, args) + if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3005, delay_time = 1 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") + return -1 + end + + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_71 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if L2_2 ~= 3004 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_72(context, args) + if args.param1 ~= 3004 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_72 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.CreateMonster - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 3007 - L4_2.delay_time = 1 - 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 : create_monster" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.CreateMonster - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 3008 - L4_2.delay_time = 1 - 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 : create_monster" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_72(context, args) + if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3007, }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") + return -1 + end + + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + + if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3008, delay_time = 1 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster") + return -1 + end + return 0 end -action_EVENT_ANY_MONSTER_DIE_72 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if L2_2 ~= 3003 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function condition_EVENT_ANY_MONSTER_DIE_73(context, args) + if args.param1 ~= 3003 then + return false + end + return true end -condition_EVENT_ANY_MONSTER_DIE_73 = L1_1 -L1_1 = "action_EVENT_ANY_MONSTER_DIE_73" -function L2_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = ScriptLib - L2_2 = L2_2.ChangeGroupVariableValue - L3_2 = A0_2 - L4_2 = "Key" - 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 : change_GroupVariable" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function action_EVENT_ANY_MONSTER_DIE_73(context, args) + if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable") + return -1 + end + return 0 end -_ENV[L1_1] = L2_1 diff --git a/Resources/Scripts/Scene/20011/scene20011_group220011004.lua b/Resources/Scripts/Scene/20011/scene20011_group220011004.lua index 367ab191c..9f720e6b5 100644 --- a/Resources/Scripts/Scene/20011/scene20011_group220011004.lua +++ b/Resources/Scripts/Scene/20011/scene20011_group220011004.lua @@ -1,1132 +1,325 @@ -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, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1 -L0_1 = {} -L0_1.group_id = 220011004 -L1_1 = {} -L1_1.gadget_id_1 = 97 -L1_1.gadget_id_2 = 70 -L1_1.gadget_id_3 = 137 -L1_1.gadget_id_4 = 138 -L1_1.gadget_id_5 = 139 -L1_1.gadget_id_6 = 140 -L1_1.gadget_id_7 = 4 -L1_1.gadget_id_8 = 83 -L1_1.gadget_id_9 = 7 -L2_1 = {} -monsters = L2_1 -L2_1 = {} -npcs = L2_1 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 29 -L3_1.gadget_id = 70300016 -L4_1 = {} -L4_1.x = 533.847 -L4_1.y = -1.984 -L4_1.z = 254.026 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 181.174 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 1 -L3_1.persistent = true -L4_1 = {} -L4_1.config_id = 56 -L4_1.gadget_id = 70310001 -L5_1 = {} -L5_1.x = 522.986 -L5_1.y = -2.133 -L5_1.z = 251.939 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.x = 0.0 -L5_1.y = 90.0 -L5_1.z = 0.0 -L4_1.rot = L5_1 -L4_1.level = 1 -L5_1 = {} -L5_1.config_id = 57 -L5_1.gadget_id = 70310001 -L6_1 = {} -L6_1.x = 543.354 -L6_1.y = -2.069 -L6_1.z = 252.1 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.x = 0.0 -L6_1.y = 270.0 -L6_1.z = 0.0 -L5_1.rot = L6_1 -L5_1.level = 1 -L6_1 = {} -L6_1.config_id = 58 -L6_1.gadget_id = 70310001 -L7_1 = {} -L7_1.x = 528.495 -L7_1.y = -2.061 -L7_1.z = 261.877 -L6_1.pos = L7_1 -L7_1 = {} -L7_1.x = 0.0 -L7_1.y = 180.0 -L7_1.z = 0.0 -L6_1.rot = L7_1 -L6_1.level = 1 -L7_1 = {} -L7_1.config_id = 59 -L7_1.gadget_id = 70310001 -L8_1 = {} -L8_1.x = 525.688 -L8_1.y = -2.085 -L8_1.z = 256.865 -L7_1.pos = L8_1 -L8_1 = {} -L8_1.x = 0.0 -L8_1.y = 37.098 -L8_1.z = 0.0 -L7_1.rot = L8_1 -L7_1.level = 1 -L8_1 = {} -L8_1.config_id = 60 -L8_1.gadget_id = 70310001 -L9_1 = {} -L9_1.x = 540.554 -L9_1.y = -2.066 -L9_1.z = 256.967 -L8_1.pos = L9_1 -L9_1 = {} -L9_1.x = 0.0 -L9_1.y = 110.444 -L9_1.z = 0.0 -L8_1.rot = L9_1 -L8_1.level = 1 -L9_1 = {} -L9_1.config_id = 69 -L9_1.gadget_id = 70211021 -L10_1 = {} -L10_1.x = 533.532 -L10_1.y = -2.051 -L10_1.z = 257.035 -L9_1.pos = L10_1 -L10_1 = {} -L10_1.x = 0.0 -L10_1.y = 180.627 -L10_1.z = 0.0 -L9_1.rot = L10_1 -L9_1.level = 1 -L9_1.chest_drop_id = 11010600 -L9_1.drop_count = 1 -L9_1.isOneoff = true -L10_1 = {} -L10_1.config_id = 70 -L10_1.gadget_id = 70380001 -L11_1 = {} -L11_1.x = 531.604 -L11_1.y = -22.408 -L11_1.z = 141.296 -L10_1.pos = L11_1 -L11_1 = {} -L11_1.x = 0.0 -L11_1.y = 0.0 -L11_1.z = 0.0 -L10_1.rot = L11_1 -L10_1.level = 1 -L10_1.route_id = 6 -L10_1.start_route = false -L11_1 = {} -L11_1.config_id = 81 -L11_1.gadget_id = 70310001 -L12_1 = {} -L12_1.x = 537.904 -L12_1.y = -2.046 -L12_1.z = 261.743 -L11_1.pos = L12_1 -L12_1 = {} -L12_1.x = 0.0 -L12_1.y = 247.823 -L12_1.z = 0.0 -L11_1.rot = L12_1 -L11_1.level = 1 -L12_1 = {} -L12_1.config_id = 82 -L12_1.gadget_id = 70380001 -L13_1 = {} -L13_1.x = 520.953 -L13_1.y = -25.99 -L13_1.z = 121.329 -L12_1.pos = L13_1 -L13_1 = {} -L13_1.x = 0.0 -L13_1.y = 0.0 -L13_1.z = 0.0 -L12_1.rot = L13_1 -L12_1.level = 1 -L12_1.route_id = 7 -L13_1 = {} -L13_1.config_id = 83 -L13_1.gadget_id = 70360002 -L14_1 = {} -L14_1.x = 532.819 -L14_1.y = -24.889 -L14_1.z = 123.122 -L13_1.pos = L14_1 -L14_1 = {} -L14_1.x = 0.0 -L14_1.y = 270.679 -L14_1.z = 0.0 -L13_1.rot = L14_1 -L13_1.level = 1 -L14_1 = {} -L14_1.config_id = 84 -L14_1.gadget_id = 70900205 -L15_1 = {} -L15_1.x = 531.371 -L15_1.y = -24.819 -L15_1.z = 121.518 -L14_1.pos = L15_1 -L15_1 = {} -L15_1.x = 0.0 -L15_1.y = 0.0 -L15_1.z = 0.0 -L14_1.rot = L15_1 -L14_1.level = 1 -L15_1 = {} -L15_1.config_id = 85 -L15_1.gadget_id = 70900205 -L16_1 = {} -L16_1.x = 531.472 -L16_1.y = -9.345 -L16_1.z = 158.632 -L15_1.pos = L16_1 -L16_1 = {} -L16_1.x = 0.0 -L16_1.y = 0.0 -L16_1.z = 0.0 -L15_1.rot = L16_1 -L15_1.level = 1 -L16_1 = {} -L16_1.config_id = 86 -L16_1.gadget_id = 70380001 -L17_1 = {} -L17_1.x = 531.644 -L17_1.y = -10.726 -L17_1.z = 163.823 -L16_1.pos = L17_1 -L17_1 = {} -L17_1.x = 0.0 -L17_1.y = 0.0 -L17_1.z = 0.0 -L16_1.rot = L17_1 -L16_1.level = 1 -L16_1.route_id = 8 -L17_1 = {} -L17_1.config_id = 97 -L17_1.gadget_id = 70900202 -L18_1 = {} -L18_1.x = 531.416 -L18_1.y = -8.752 -L18_1.z = 158.659 -L17_1.pos = L18_1 -L18_1 = {} -L18_1.x = 0.0 -L18_1.y = 103.806 -L18_1.z = 0.0 -L17_1.rot = L18_1 -L17_1.level = 1 -L18_1 = {} -L18_1.config_id = 98 -L18_1.gadget_id = 70900202 -L19_1 = {} -L19_1.x = 532.576 -L19_1.y = -1.08 -L19_1.z = 221.851 -L18_1.pos = L19_1 -L19_1 = {} -L19_1.x = 0.0 -L19_1.y = 277.205 -L19_1.z = 0.0 -L18_1.rot = L19_1 -L18_1.level = 1 -L19_1 = {} -L19_1.config_id = 137 -L19_1.gadget_id = 70380001 -L20_1 = {} -L20_1.x = 545.317 -L20_1.y = -25.822 -L20_1.z = 131.972 -L19_1.pos = L20_1 -L20_1 = {} -L20_1.x = 0.0 -L20_1.y = 0.0 -L20_1.z = 0.0 -L19_1.rot = L20_1 -L19_1.level = 1 -L19_1.route_id = 20011012 -L19_1.start_route = false -L20_1 = {} -L20_1.config_id = 138 -L20_1.gadget_id = 70380001 -L21_1 = {} -L21_1.x = 540.062 -L21_1.y = -25.787 -L21_1.z = 131.692 -L20_1.pos = L21_1 -L21_1 = {} -L21_1.x = 0.0 -L21_1.y = 0.0 -L21_1.z = 0.0 -L20_1.rot = L21_1 -L20_1.level = 1 -L20_1.route_id = 20011011 -L20_1.start_route = false -L21_1 = {} -L21_1.config_id = 139 -L21_1.gadget_id = 70380001 -L22_1 = {} -L22_1.x = 531.673 -L22_1.y = -18.917 -L22_1.z = 136.523 -L21_1.pos = L22_1 -L22_1 = {} -L22_1.x = 0.0 -L22_1.y = 0.0 -L22_1.z = 0.0 -L21_1.rot = L22_1 -L21_1.level = 1 -L21_1.route_id = 20011010 -L21_1.start_route = false -L22_1 = {} -L22_1.config_id = 140 -L22_1.gadget_id = 70380001 -L23_1 = {} -L23_1.x = 520.582 -L23_1.y = -25.972 -L23_1.z = 151.526 -L22_1.pos = L23_1 -L23_1 = {} -L23_1.x = 0.0 -L23_1.y = 0.0 -L23_1.z = 0.0 -L22_1.rot = L23_1 -L22_1.level = 1 -L22_1.route_id = 20011009 -L22_1.start_route = false -L23_1 = {} -L23_1.config_id = 141 -L23_1.gadget_id = 70900205 -L24_1 = {} -L24_1.x = 531.747 -L24_1.y = -25.927 -L24_1.z = 151.336 -L23_1.pos = L24_1 -L24_1 = {} -L24_1.x = 0.0 -L24_1.y = 0.0 -L24_1.z = 0.0 -L23_1.rot = L24_1 -L23_1.level = 1 -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 -L2_1[7] = L9_1 -L2_1[8] = L10_1 -L2_1[9] = L11_1 -L2_1[10] = L12_1 -L2_1[11] = L13_1 -L2_1[12] = L14_1 -L2_1[13] = L15_1 -L2_1[14] = L16_1 -L2_1[15] = L17_1 -L2_1[16] = L18_1 -L2_1[17] = L19_1 -L2_1[18] = L20_1 -L2_1[19] = L21_1 -L2_1[20] = L22_1 -L2_1[21] = L23_1 -gadgets = L2_1 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 38 -L4_1 = RegionShape -L4_1 = L4_1.CUBIC -L3_1.shape = L4_1 -L4_1 = {} -L4_1.x = 40.0 -L4_1.y = 5.0 -L4_1.z = 10.0 -L3_1.size = L4_1 -L4_1 = {} -L4_1.x = 533.597 -L4_1.y = -2.137 -L4_1.z = 238.024 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.config_id = 53 -L5_1 = RegionShape -L5_1 = L5_1.SPHERE -L4_1.shape = L5_1 -L4_1.radius = 5 -L5_1 = {} -L5_1.x = 531.109 -L5_1.y = -9.328 -L5_1.z = 158.314 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.config_id = 54 -L6_1 = RegionShape -L6_1 = L6_1.SPHERE -L5_1.shape = L6_1 -L5_1.radius = 5 -L6_1 = {} -L6_1.x = 532.769 -L6_1.y = -2.051 -L6_1.z = 223.711 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.config_id = 63 -L7_1 = RegionShape -L7_1 = L7_1.CUBIC -L6_1.shape = L7_1 -L7_1 = {} -L7_1.x = 5.0 -L7_1.y = 5.0 -L7_1.z = 3.0 -L6_1.size = L7_1 -L7_1 = {} -L7_1.x = 531.533 -L7_1.y = -23.574 -L7_1.z = 151.641 -L6_1.pos = L7_1 -L2_1[1] = L3_1 -L2_1[2] = L4_1 -L2_1[3] = L5_1 -L2_1[4] = L6_1 -regions = L2_1 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 1000038 -L3_1.name = "ENTER_REGION_38" -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_38" -L3_1.action = "action_EVENT_ENTER_REGION_38" -L3_1.forbid_guest = false -L4_1 = {} -L4_1.config_id = 1000043 -L4_1.name = "DUNGEON_SETTLE_43" -L5_1 = EventType -L5_1 = L5_1.EVENT_DUNGEON_SETTLE -L4_1.event = L5_1 -L4_1.source = "" -L4_1.condition = "condition_EVENT_DUNGEON_SETTLE_43" -L4_1.action = "action_EVENT_DUNGEON_SETTLE_43" -L5_1 = {} -L5_1.config_id = 1000047 -L5_1.name = "GADGET_CREATE_47" -L6_1 = EventType -L6_1 = L6_1.EVENT_GADGET_CREATE -L5_1.event = L6_1 -L5_1.source = "" -L5_1.condition = "condition_EVENT_GADGET_CREATE_47" -L5_1.action = "action_EVENT_GADGET_CREATE_47" -L6_1 = {} -L6_1.config_id = 1000048 -L6_1.name = "SELECT_OPTION_48" -L7_1 = EventType -L7_1 = L7_1.EVENT_SELECT_OPTION -L6_1.event = L7_1 -L6_1.source = "" -L6_1.condition = "condition_EVENT_SELECT_OPTION_48" -L6_1.action = "action_EVENT_SELECT_OPTION_48" -L6_1.forbid_guest = false -L7_1 = {} -L7_1.config_id = 1000053 -L7_1.name = "ENTER_REGION_53" -L8_1 = EventType -L8_1 = L8_1.EVENT_ENTER_REGION -L7_1.event = L8_1 -L7_1.source = "" -L7_1.condition = "condition_EVENT_ENTER_REGION_53" -L7_1.action = "action_EVENT_ENTER_REGION_53" -L7_1.forbid_guest = false -L8_1 = {} -L8_1.config_id = 1000054 -L8_1.name = "ENTER_REGION_54" -L9_1 = EventType -L9_1 = L9_1.EVENT_ENTER_REGION -L8_1.event = L9_1 -L8_1.source = "" -L8_1.condition = "condition_EVENT_ENTER_REGION_54" -L8_1.action = "action_EVENT_ENTER_REGION_54" -L8_1.forbid_guest = false -L9_1 = {} -L9_1.config_id = 1000063 -L9_1.name = "ENTER_REGION_63" -L10_1 = EventType -L10_1 = L10_1.EVENT_ENTER_REGION -L9_1.event = L10_1 -L9_1.source = "" -L9_1.condition = "condition_EVENT_ENTER_REGION_63" -L9_1.action = "action_EVENT_ENTER_REGION_63" -L9_1.forbid_guest = false -L10_1 = {} -L10_1.config_id = 1004001 -L10_1.name = "ANY_GADGET_DIE_4001" -L11_1 = EventType -L11_1 = L11_1.EVENT_ANY_GADGET_DIE -L10_1.event = L11_1 -L10_1.source = "" -L10_1.condition = "condition_EVENT_ANY_GADGET_DIE_4001" -L10_1.action = "action_EVENT_ANY_GADGET_DIE_4001" -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 -L2_1[7] = L9_1 -L2_1[8] = L10_1 -triggers = L2_1 -L2_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 = {} -L5_1 = 29 -L6_1 = 56 -L7_1 = 57 -L8_1 = 58 -L9_1 = 59 -L10_1 = 60 -L11_1 = 70 -L12_1 = 81 -L13_1 = 82 -L14_1 = 83 -L15_1 = 84 -L16_1 = 85 -L17_1 = 86 -L18_1 = 137 -L19_1 = 138 -L20_1 = 139 -L21_1 = 140 -L22_1 = 141 -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L4_1[5] = L9_1 -L4_1[6] = L10_1 -L4_1[7] = L11_1 -L4_1[8] = L12_1 -L4_1[9] = L13_1 -L4_1[10] = L14_1 -L4_1[11] = L15_1 -L4_1[12] = L16_1 -L4_1[13] = L17_1 -L4_1[14] = L18_1 -L4_1[15] = L19_1 -L4_1[16] = L20_1 -L4_1[17] = L21_1 -L4_1[18] = L22_1 -L3_1.gadgets = L4_1 -L4_1 = {} -L5_1 = 38 -L6_1 = 53 -L7_1 = 54 -L8_1 = 63 -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L3_1.regions = L4_1 -L4_1 = {} -L5_1 = "ENTER_REGION_38" -L6_1 = "DUNGEON_SETTLE_43" -L7_1 = "GADGET_CREATE_47" -L8_1 = "SELECT_OPTION_48" -L9_1 = "ENTER_REGION_53" -L10_1 = "ENTER_REGION_54" -L11_1 = "ENTER_REGION_63" -L12_1 = "ANY_GADGET_DIE_4001" -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L4_1[5] = L9_1 -L4_1[6] = L10_1 -L4_1[7] = L11_1 -L4_1[8] = L12_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 = A1_2.param1 - if L2_2 ~= 38 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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_ENTER_REGION_38 = 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.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 56 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 57 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 58 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 59 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 60 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 81 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - 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_gadget_state_by_configId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041112 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -action_EVENT_ENTER_REGION_38 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 1 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 -end -condition_EVENT_DUNGEON_SETTLE_43 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2, L3_2, L4_2 - L2_2 = ScriptLib - L2_2 = L2_2.CreateGadget - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 69 - 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 : dungeon_settle" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -action_EVENT_DUNGEON_SETTLE_43 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 83 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 -end -condition_EVENT_GADGET_CREATE_47 = 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.SetWorktopOptions - L3_2 = A0_2 - L4_2 = {} - L5_2 = 7 - L4_2[1] = L5_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 : set_work_options" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 -end -action_EVENT_GADGET_CREATE_47 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 83 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 -end -condition_EVENT_SELECT_OPTION_48 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = L1_1.gadget_id_9 - L3_2 = A1_2.param2 - if L2_2 == L3_2 then - L2_2 = ScriptLib - L2_2 = L2_2.StartPlatform - L3_2 = A0_2 - L4_2 = L1_1.gadget_id_2 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 +local globalDefs = { + gadget_id_1 = 97, + gadget_id_2 = 70, + gadget_id_3 = 137, + gadget_id_4 = 138, + gadget_id_5 = 139, + gadget_id_6 = 140, + gadget_id_7 = 4, + gadget_id_8 = 83, + gadget_id_9 = 7 +} + +monsters = { } + +npcs = { } + +gadgets = { + { config_id = 29, gadget_id = 70300016, pos = { x = 533.847, y = -1.984, z = 254.026 }, rot = { x = 0, y = 181.174, z = 0 }, level = 1, persistent = true }, + { config_id = 56, gadget_id = 70310001, pos = { x = 522.986, y = -2.133, z = 251.939 }, rot = { x = 0, y = 90, z = 0 }, level = 1 }, + { config_id = 57, gadget_id = 70310001, pos = { x = 543.354, y = -2.069, z = 252.1 }, rot = { x = 0, y = 270, z = 0 }, level = 1 }, + { config_id = 58, gadget_id = 70310001, pos = { x = 528.495, y = -2.061, z = 261.877 }, rot = { x = 0, y = 180, z = 0 }, level = 1 }, + { config_id = 59, gadget_id = 70310001, pos = { x = 525.688, y = -2.085, z = 256.865 }, rot = { x = 0, y = 37.098, z = 0 }, level = 1 }, + { config_id = 60, gadget_id = 70310001, pos = { x = 540.554, y = -2.066, z = 256.967 }, rot = { x = 0, y = 110.444, z = 0 }, level = 1 }, + { config_id = 69, gadget_id = 70211021, pos = { x = 533.532, y = -2.051, z = 257.035 }, rot = { x = 0, y = 180.627, z = 0 }, level = 1, chest_drop_id = 11010600, drop_count = 1, isOneoff = true }, + { config_id = 70, gadget_id = 70380001, pos = { x = 531.604, y = -22.408, z = 141.296 }, rot = { x = 0, y = 0, z = 0 }, level = 1, route_id = 6, start_route = false }, + { config_id = 81, gadget_id = 70310001, pos = { x = 537.904, y = -2.046, z = 261.743 }, rot = { x = 0, y = 247.823, z = 0 }, level = 1 }, + { config_id = 82, gadget_id = 70380001, pos = { x = 520.953, y = -25.99, z = 121.329 }, rot = { x = 0, y = 0, z = 0 }, level = 1, route_id = 7 }, + { config_id = 83, gadget_id = 70360002, pos = { x = 532.819, y = -24.889, z = 123.122 }, rot = { x = 0, y = 270.679, z = 0 }, level = 1 }, + { config_id = 84, gadget_id = 70900205, pos = { x = 531.371, y = -24.819, z = 121.518 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 85, gadget_id = 70900205, pos = { x = 531.472, y = -9.345, z = 158.632 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 86, gadget_id = 70380001, pos = { x = 531.644, y = -10.726, z = 163.823 }, rot = { x = 0, y = 0, z = 0 }, level = 1, route_id = 8 }, + { config_id = 97, gadget_id = 70900202, pos = { x = 531.416, y = -8.752, z = 158.659 }, rot = { x = 0, y = 103.806, z = 0 }, level = 1 }, + { config_id = 98, gadget_id = 70900202, pos = { x = 532.576, y = -1.08, z = 221.851 }, rot = { x = 0, y = 277.205, z = 0 }, level = 1 }, + { config_id = 137, gadget_id = 70380001, pos = { x = 545.317, y = -25.822, z = 131.972 }, rot = { x = 0, y = 0, z = 0 }, level = 1, route_id = 20011012, start_route = false }, + { config_id = 138, gadget_id = 70380001, pos = { x = 540.062, y = -25.787, z = 131.692 }, rot = { x = 0, y = 0, z = 0 }, level = 1, route_id = 20011011, start_route = false }, + { config_id = 139, gadget_id = 70380001, pos = { x = 531.673, y = -18.917, z = 136.523 }, rot = { x = 0, y = 0, z = 0 }, level = 1, route_id = 20011010, start_route = false }, + { config_id = 140, gadget_id = 70380001, pos = { x = 520.582, y = -25.972, z = 151.526 }, rot = { x = 0, y = 0, z = 0 }, level = 1, route_id = 20011009, start_route = false }, + { config_id = 141, gadget_id = 70900205, pos = { x = 531.747, y = -25.927, z = 151.336 }, rot = { x = 0, y = 0, z = 0 }, level = 1 } +} + +regions = { + { config_id = 38, shape = RegionShape.CUBIC, size = { x = 40, y = 5, z = 10 }, pos = { x = 533.597, y = -2.137, z = 238.024 } }, + { config_id = 53, shape = RegionShape.SPHERE, radius = 5, pos = { x = 531.109, y = -9.328, z = 158.314 } }, + { config_id = 54, shape = RegionShape.SPHERE, radius = 5, pos = { x = 532.769, y = -2.051, z = 223.711 } }, + { config_id = 63, shape = RegionShape.CUBIC, size = { x = 5, y = 5, z = 3 }, pos = { x = 531.533, y = -23.574, z = 151.641 } } +} + +triggers = { + { config_id = 1000038, name = "ENTER_REGION_38", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_38", action = "action_EVENT_ENTER_REGION_38", forbid_guest = false }, + { config_id = 1000043, name = "DUNGEON_SETTLE_43", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_43", action = "action_EVENT_DUNGEON_SETTLE_43" }, + { config_id = 1000047, name = "GADGET_CREATE_47", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_47", action = "action_EVENT_GADGET_CREATE_47" }, + { config_id = 1000048, name = "SELECT_OPTION_48", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_48", action = "action_EVENT_SELECT_OPTION_48", forbid_guest = false }, + { config_id = 1000053, name = "ENTER_REGION_53", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_53", action = "action_EVENT_ENTER_REGION_53", forbid_guest = false }, + { config_id = 1000054, name = "ENTER_REGION_54", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_54", action = "action_EVENT_ENTER_REGION_54", forbid_guest = false }, + { config_id = 1000063, name = "ENTER_REGION_63", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_63", action = "action_EVENT_ENTER_REGION_63", forbid_guest = false }, + { config_id = 1004001, name = "ANY_GADGET_DIE_4001", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_4001", action = "action_EVENT_ANY_GADGET_DIE_4001" } +} + +variables = { } + +init_config = { + suite = 1, + end_suite = 0, + rand_suite = true +} + +suites = { + { + monsters = {}, + gadgets = {29, 56, 57, 58, 59, 60, 70, 81, 82, 83, 84, 85, 86, 137, 138, 139, 140, 141}, + regions = {38, 53, 54, 63}, + triggers = {"ENTER_REGION_38", "DUNGEON_SETTLE_43", "GADGET_CREATE_47", "SELECT_OPTION_48", "ENTER_REGION_53", "ENTER_REGION_54", "ENTER_REGION_63", "ANY_GADGET_DIE_4001"}, + rand_weight = 100 + } +} + +function condition_EVENT_ENTER_REGION_38(context, args) + if args.param1 ~= 38 then + return false end - L2_2 = ScriptLib - L2_2 = L2_2.StartPlatform - L3_2 = A0_2 - L4_2 = L1_1.gadget_id_3 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false end - L2_2 = ScriptLib - L2_2 = L2_2.StartPlatform - L3_2 = A0_2 - L4_2 = L1_1.gadget_id_4 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + return true +end + +function action_EVENT_ENTER_REGION_38(context, args) + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.StartPlatform - L3_2 = A0_2 - L4_2 = L1_1.gadget_id_5 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 57, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.StartPlatform - L3_2 = A0_2 - L4_2 = L1_1.gadget_id_6 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 58, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.DelWorktopOptionByGroupId - L3_2 = A0_2 - L4_2 = 220011004 - L5_2 = L1_1.gadget_id_8 - L6_2 = 7 - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.UnlockForce - L3_2 = A0_2 - L4_2 = L1_1.gadget_id_7 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 60, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.KillGroupEntity - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011003 - L5_2 = {} - L4_2.monsters = L5_2 - L5_2 = {} - L6_2 = 3020 - L5_2[1] = L6_2 - L4_2.gadgets = L5_2 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 81, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.CreateGadget - L3_2 = A0_2 - L4_2 = {} - L5_2 = L1_1.gadget_id_1 - L4_2.config_id = L5_2 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.ShowReminder(context, 1041112) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.SetGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = L1_1.gadget_id_8 - L5_2 = GadgetState - L5_2 = L5_2.GearStart - L2_2 = L2_2(L3_2, L4_2, L5_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 + return 0 +end + +function condition_EVENT_DUNGEON_SETTLE_43(context, args) + if 1 ~= args.param1 then + return false end - L2_2 = 0 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.KillEntityByConfigId - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 3020 - L2_2 = L2_2(L3_2, L4_2) - if 0 ~= L2_2 then - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + return true end -action_EVENT_SELECT_OPTION_48 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 53 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 + +function action_EVENT_DUNGEON_SETTLE_43(context, args) + if 0 ~= ScriptLib.CreateGadget(context, { config_id = 69 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + return 0 end -condition_EVENT_ENTER_REGION_53 = 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.KillGroupEntity - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011004 - L5_2 = {} - L4_2.monsters = L5_2 - L5_2 = {} - L6_2 = 97 - L5_2[1] = L6_2 - L4_2.gadgets = L5_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 : kill_monsters_and_gadgets_by_group" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.CreateGadget - L3_2 = A0_2 - L4_2 = {} - L4_2.config_id = 98 - 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 : dungeon_settle" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.ShowReminder - L3_2 = A0_2 - L4_2 = 1041026 - 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 : active_reminder_ui" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function condition_EVENT_GADGET_CREATE_47(context, args) + if 83 ~= args.param1 then + return false + end + return true end -action_EVENT_ENTER_REGION_53 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 54 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 + +function action_EVENT_GADGET_CREATE_47(context, args) + if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options") + return -1 + end + return 0 end -condition_EVENT_ENTER_REGION_54 = 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.KillGroupEntity - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011004 - L5_2 = {} - L4_2.monsters = L5_2 - L5_2 = {} - L6_2 = 98 - L5_2[1] = L6_2 - L4_2.gadgets = L5_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 : kill_monsters_and_gadgets_by_group" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function condition_EVENT_SELECT_OPTION_48(context, args) + if 83 ~= args.param1 then + return false + end + return true end -action_EVENT_ENTER_REGION_54 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2 - L2_2 = A1_2.param1 - if L2_2 ~= 63 then - L2_2 = false - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.GetRegionEntityCount - L3_2 = A0_2 - L4_2 = {} - L5_2 = A1_2.source_eid - L4_2.region_eid = L5_2 - L5_2 = EntityType - L5_2 = L5_2.AVATAR - L4_2.entity_type = L5_2 - 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 + +function action_EVENT_SELECT_OPTION_48(context, args) + if globalDefs.gadget_id_9 == args.param2 then + if 0 ~= ScriptLib.StartPlatform(context, globalDefs.gadget_id_2) then + return -1 + end + + if 0 ~= ScriptLib.StartPlatform(context, globalDefs.gadget_id_3) then + return -1 + end + + if 0 ~= ScriptLib.StartPlatform(context, globalDefs.gadget_id_4) then + return -1 + end + + if 0 ~= ScriptLib.StartPlatform(context, globalDefs.gadget_id_5) then + return -1 + end + + if 0 ~= ScriptLib.StartPlatform(context, globalDefs.gadget_id_6) then + return -1 + end + + if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220011004, globalDefs.gadget_id_8, 7) then + return -1 + end + + if 0 ~= ScriptLib.UnlockForce(context, globalDefs.gadget_id_7) then + return -1 + end + + local var8 = ScriptLib.KillGroupEntity(context, { + group_id = 220011003, + monsters = {}, + gadgets = {3020} + }) + if 0 ~= var8 then + return -1 + end + + if 0 ~= ScriptLib.CreateGadget(context, { config_id = globalDefs.gadget_id_1 }) then + return -1 + end + + if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, globalDefs.gadget_id_8, GadgetState.GearStart) then + return -1 + end + return 0 + end + + if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3020 }) then + return -1 + end + return 0 end -condition_EVENT_ENTER_REGION_63 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2, L3_2, L4_2 - L2_2 = ScriptLib - L2_2 = L2_2.StartPlatform - L3_2 = A0_2 - L4_2 = 141 - 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 : start_platform" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = 0 - return L2_2 + +function condition_EVENT_ENTER_REGION_53(context, args) + if args.param1 ~= 53 then + return false + end + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false + end + return true end -action_EVENT_ENTER_REGION_63 = L2_1 -function L2_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 29 ~= L2_2 then - L2_2 = false - return L2_2 - end - L2_2 = true - return L2_2 + +function action_EVENT_ENTER_REGION_53(context, args) + local var1 = ScriptLib.KillGroupEntity(context, { + group_id = 220011004, + monsters = {}, + gadgets = {97} + }) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group") + return -1 + end + + if 0 ~= ScriptLib.CreateGadget(context, { config_id = 98 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle") + return -1 + end + + if 0 ~= ScriptLib.ShowReminder(context, 1041026) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui") + return -1 + end + return 0 end -condition_EVENT_ANY_GADGET_DIE_4001 = 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.ShowClientGuide - L3_2 = A0_2 - L4_2 = "GuideGoddessMapUnlock" - 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 : show_client_guide" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 - end - L2_2 = ScriptLib - L2_2 = L2_2.RemoveExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 7 - L2_2(L3_2, L4_2, L5_2) - L2_2 = 0 - return L2_2 + +function condition_EVENT_ENTER_REGION_54(context, args) + if args.param1 ~= 54 then + return false + end + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_54(context, args) + local var1 = ScriptLib.KillGroupEntity(context, { + group_id = 220011004, + monsters = {}, + gadgets = {98} + }) + if 0 ~= var1 then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group") + return -1 + end + return 0 +end + +function condition_EVENT_ENTER_REGION_63(context, args) + if args.param1 ~= 63 then + return false + end + + local avatarEntityCount = ScriptLib.GetRegionEntityCount(context, { + region_eid = args.source_eid, + entity_type = EntityType.AVATAR + }) + if avatarEntityCount < 1 then + return false + end + return true +end + +function action_EVENT_ENTER_REGION_63(context, args) + if 0 ~= ScriptLib.StartPlatform(context, 141) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform") + return -1 + end + return 0 +end + +function condition_EVENT_ANY_GADGET_DIE_4001(context, args) + if 29 ~= args.param1 then + return false + end + return true +end + +function action_EVENT_ANY_GADGET_DIE_4001(context, args) + if 0 ~= ScriptLib.ShowClientGuide(context, "GuideGoddessMapUnlock") then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : show_client_guide") + return -1 + end + ScriptLib.RemoveExtraGroupSuite(context, 220011007, 7) + return 0 end -action_EVENT_ANY_GADGET_DIE_4001 = L2_1 diff --git a/Resources/Scripts/Scene/20011/scene20011_group220011006.lua b/Resources/Scripts/Scene/20011/scene20011_group220011006.lua index bafd37de5..2c00e8743 100644 --- a/Resources/Scripts/Scene/20011/scene20011_group220011006.lua +++ b/Resources/Scripts/Scene/20011/scene20011_group220011006.lua @@ -1,349 +1,120 @@ -local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1 -L0_1 = {} -L0_1.group_id = 220011006 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 9 -L2_1.monster_id = 20011201 -L3_1 = {} -L3_1.x = 409.722 -L3_1.y = -22.182 -L3_1.z = 67.23 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.x = 0.0 -L3_1.y = 136.765 -L3_1.z = 0.0 -L2_1.rot = L3_1 -L2_1.level = 1 -L2_1.disableWander = true -L3_1 = {} -L3_1.config_id = 25 -L3_1.monster_id = 20011201 -L4_1 = {} -L4_1.x = 409.713 -L4_1.y = -21.99 -L4_1.z = 60.594 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.x = 0.0 -L4_1.y = 36.531 -L4_1.z = 0.0 -L3_1.rot = L4_1 -L3_1.level = 1 -L3_1.disableWander = true -L4_1 = {} -L4_1.config_id = 26 -L4_1.monster_id = 20011201 -L5_1 = {} -L5_1.x = 408.62 -L5_1.y = -22.084 -L5_1.z = 61.386 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.x = 0.0 -L5_1.y = 76.905 -L5_1.z = 0.0 -L4_1.rot = L5_1 -L4_1.level = 1 -L4_1.disableWander = true -L5_1 = {} -L5_1.config_id = 28 -L5_1.monster_id = 20011201 -L6_1 = {} -L6_1.x = 408.79 -L6_1.y = -22.05 -L6_1.z = 65.882 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.x = 0.0 -L6_1.y = 109.366 -L6_1.z = 0.0 -L5_1.rot = L6_1 -L5_1.level = 1 -L5_1.disableWander = true -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -monsters = L1_1 -L1_1 = {} -npcs = L1_1 -L1_1 = {} -gadgets = L1_1 -L1_1 = {} -regions = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 1000008 -L2_1.name = "CHALLENGE_SUCCESS_8" -L3_1 = EventType -L3_1 = L3_1.EVENT_CHALLENGE_SUCCESS -L2_1.event = L3_1 -L2_1.source = "1" -L2_1.condition = "" -L2_1.action = "action_EVENT_CHALLENGE_SUCCESS_8" -L3_1 = {} -L3_1.config_id = 1000061 -L3_1.name = "CHALLENGE_FAIL_61" -L4_1 = EventType -L4_1 = L4_1.EVENT_CHALLENGE_FAIL -L3_1.event = L4_1 -L3_1.source = "1" -L3_1.condition = "" -L3_1.action = "action_EVENT_CHALLENGE_FAIL_61" -L4_1 = {} -L4_1.config_id = 1000065 -L4_1.name = "ANY_MONSTER_LIVE_65" -L5_1 = EventType -L5_1 = L5_1.EVENT_ANY_MONSTER_LIVE -L4_1.event = L5_1 -L4_1.source = "" -L4_1.condition = "condition_EVENT_ANY_MONSTER_LIVE_65" -L4_1.action = "action_EVENT_ANY_MONSTER_LIVE_65" -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -triggers = L1_1 -L1_1 = {} -variables = L1_1 -L1_1 = {} -L1_1.suite = 2 -L1_1.end_suite = 0 -L1_1.rand_suite = false -init_config = L1_1 -L1_1 = {} -L2_1 = {} -L3_1 = {} -L4_1 = 9 -L5_1 = 25 -L6_1 = 26 -L7_1 = 28 -L3_1[1] = L4_1 -L3_1[2] = L5_1 -L3_1[3] = L6_1 -L3_1[4] = L7_1 -L2_1.monsters = L3_1 -L3_1 = {} -L2_1.gadgets = L3_1 -L3_1 = {} -L2_1.regions = L3_1 -L3_1 = {} -L4_1 = "CHALLENGE_SUCCESS_8" -L5_1 = "CHALLENGE_FAIL_61" -L6_1 = "ANY_MONSTER_LIVE_65" -L3_1[1] = L4_1 -L3_1[2] = L5_1 -L3_1[3] = L6_1 -L2_1.triggers = L3_1 -L2_1.rand_weight = 100 -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 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -suites = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 - L2_2 = ScriptLib - L2_2 = L2_2.RemoveExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 3 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.AddExtraGroupSuite - L3_2 = A0_2 - L4_2 = 220011007 - L5_2 = 4 - L2_2(L3_2, L4_2, L5_2) - L2_2 = ScriptLib - L2_2 = L2_2.SetGroupGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 220011001 - L5_2 = 1006 - L6_2 = GadgetState - L6_2 = L6_2.GearStart - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 +group_id = 220011006 + +monsters = { + { config_id = 9, monster_id = 20011201, pos = { x = 409.722, y = -22.182, z = 67.23 }, rot = { x = 0, y = 136.765, z = 0 }, level = 1, disableWander = true }, + { config_id = 25, monster_id = 20011201, pos = { x = 409.713, y = -21.99, z = 60.594 }, rot = { x = 0, y = 36.531, z = 0 }, level = 1, disableWander = true }, + { config_id = 26, monster_id = 20011201, pos = { x = 408.62, y = -22.084, z = 61.386 }, rot = { x = 0, y = 76.905, z = 0 }, level = 1, disableWander = true }, + { config_id = 28, monster_id = 20011201, pos = { x = 408.79, y = -22.05, z = 65.882 }, rot = { x = 0, y = 109.366, z = 0 }, level = 1, disableWander = true } +} + +npcs = { } + +gadgets = { } + +regions = { } + +triggers = { + { config_id = 1000008, name = "CHALLENGE_SUCCESS_8", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8" }, + { config_id = 1000061, name = "CHALLENGE_FAIL_61", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_61" }, + { config_id = 1000065, name = "ANY_MONSTER_LIVE_65", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_65", action = "action_EVENT_ANY_MONSTER_LIVE_65" } +} + +variables = { } + +init_config = { + suite = 2, + end_suite = 0, + rand_suite = false +} + +suites = { + { + monsters = {9, 25, 26, 28}, + gadgets = {}, + regions = {}, + triggers = {"CHALLENGE_SUCCESS_8", "CHALLENGE_FAIL_61", "ANY_MONSTER_LIVE_65"}, + rand_weight = 100 + }, { + monsters = {}, + gadgets = {}, + regions = {}, + triggers = {}, + rand_weight = 100 + } +} + + +function action_EVENT_CHALLENGE_SUCCESS_8(context, args) + ScriptLib.RemoveExtraGroupSuite(context, 220011007, 3) + ScriptLib.AddExtraGroupSuite(context, 220011007, 4) + + if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1006, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.SetGroupGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 220011001 - L5_2 = 1022 - L6_2 = GadgetState - L6_2 = L6_2.GearStart - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1022, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.SetGroupGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 220011001 - L5_2 = 1023 - L6_2 = GadgetState - L6_2 = L6_2.GearStart - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 + + if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1023, GadgetState.GearStart) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId") + return -1 end - L2_2 = {} - L2_2.x = 406 - L2_2.y = -17 - L2_2.z = 81 - 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 = 2 - 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 + + local lookPos= { x = 406, y = -17, z = 81 } + local followPos= { x = 0, y = 0, z = 0 } + if 0 ~= ScriptLib.BeginCameraSceneLook(context, { + look_pos = lookPos, + is_allow_input = false, + duration = 2, is_force = true, + is_broadcast = false, + is_recover_keep_current = true, + delay = 0, + is_set_follow_pos = false, + follow_pos = followPos, + is_force_walk = false, + is_change_play_mode = false, + is_set_screen_XY = false, + screen_x = 0, + screen_y = 0 + }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin") + return -1 end - L4_2 = ScriptLib - L4_2 = L4_2.SetGroupGadgetStateByConfigId - L5_2 = A0_2 - L6_2 = 220011001 - L7_2 = 1048 - L8_2 = GadgetState - L8_2 = L8_2.Default - L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2) - if 0 ~= L4_2 then - L4_2 = ScriptLib - L4_2 = L4_2.PrintContextLog - L5_2 = A0_2 - L6_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId" - L4_2(L5_2, L6_2) - L4_2 = -1 - return L4_2 + + if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1048, GadgetState.Default) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId") + return -1 end - L4_2 = 0 - return L4_2 + return 0 end -action_EVENT_CHALLENGE_SUCCESS_8 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2 - L2_2 = ScriptLib - L2_2 = L2_2.SetGroupGadgetStateByConfigId - L3_2 = A0_2 - L4_2 = 220011001 - L5_2 = 1047 - L6_2 = GadgetState - L6_2 = L6_2.Default - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 + +function action_EVENT_CHALLENGE_FAIL_61(context, args) + if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1047, GadgetState.Default) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId") + return -1 end - L2_2 = ScriptLib - L2_2 = L2_2.RefreshGroup - L3_2 = A0_2 - L4_2 = {} - L4_2.group_id = 220011006 - 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 + + if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220011006, suite = 2 }) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite") + return -1 end - L2_2 = 0 - return L2_2 + return 0 end -action_EVENT_CHALLENGE_FAIL_61 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2 - L2_2 = A1_2.param1 - if 9 ~= L2_2 then - L2_2 = false - return L2_2 + +function condition_EVENT_ANY_MONSTER_LIVE_65(context, args) + if 9 ~= args.param1 then + return false end - L2_2 = true - return L2_2 + return true end -condition_EVENT_ANY_MONSTER_LIVE_65 = L1_1 -function L1_1(A0_2, A1_2) - local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 - L2_2 = ScriptLib - L2_2 = L2_2.ActiveChallenge - L3_2 = A0_2 - L4_2 = 1 - L5_2 = 137 - L6_2 = 20 - L7_2 = 220011006 - L8_2 = 4 - L9_2 = 0 - L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2) - if 0 ~= L2_2 then - L2_2 = ScriptLib - L2_2 = L2_2.PrintContextLog - L3_2 = A0_2 - L4_2 = "@@ LUA_WARNING : active_challenge" - L2_2(L3_2, L4_2) - L2_2 = -1 - return L2_2 + +function action_EVENT_ANY_MONSTER_LIVE_65(context, args) + if 0 ~= ScriptLib.ActiveChallenge(context, 1, 137, 20, 220011006, 4, 0) then + ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge") + return -1 end - L2_2 = 0 - return L2_2 -end -action_EVENT_ANY_MONSTER_LIVE_65 = L1_1 + return 0 +end \ No newline at end of file diff --git a/Resources/Scripts/Scene/20011/scene20011_group220011007.lua b/Resources/Scripts/Scene/20011/scene20011_group220011007.lua index ee32a4ba2..8c24fc07d 100644 --- a/Resources/Scripts/Scene/20011/scene20011_group220011007.lua +++ b/Resources/Scripts/Scene/20011/scene20011_group220011007.lua @@ -1,201 +1,78 @@ -local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1 -L0_1 = {} -L0_1.group_id = 220011007 -L1_1 = {} -monsters = L1_1 -L1_1 = {} -npcs = L1_1 -L1_1 = {} -L2_1 = {} -L2_1.config_id = 7001 -L2_1.gadget_id = 70900201 -L3_1 = {} -L3_1.x = 475.451 -L3_1.y = -19.397 -L3_1.z = 63.753 -L2_1.pos = L3_1 -L3_1 = {} -L3_1.x = 0.0 -L3_1.y = 0.0 -L3_1.z = 0.0 -L2_1.rot = L3_1 -L2_1.level = 1 -L3_1 = {} -L3_1.config_id = 7002 -L3_1.gadget_id = 70900201 -L4_1 = {} -L4_1.x = 410.603 -L4_1.y = -20.794 -L4_1.z = 63.956 -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 -L4_1 = {} -L4_1.config_id = 7003 -L4_1.gadget_id = 70900201 -L5_1 = {} -L5_1.x = 415.979 -L5_1.y = -20.636 -L5_1.z = 120.934 -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 = 1 -L5_1 = {} -L5_1.config_id = 7004 -L5_1.gadget_id = 70900201 -L6_1 = {} -L6_1.x = 435.086 -L6_1.y = -6.887 -L6_1.z = 121.048 -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 -L6_1 = {} -L6_1.config_id = 7005 -L6_1.gadget_id = 70900201 -L7_1 = {} -L7_1.x = 505.158 -L7_1.y = -21.535 -L7_1.z = 121.325 -L6_1.pos = L7_1 -L7_1 = {} -L7_1.x = 0.0 -L7_1.y = 0.0 -L7_1.z = 0.0 -L6_1.rot = L7_1 -L6_1.level = 1 -L7_1 = {} -L7_1.config_id = 7006 -L7_1.gadget_id = 70900201 -L8_1 = {} -L8_1.x = 533.85 -L8_1.y = -1.161 -L8_1.z = 254.105 -L7_1.pos = L8_1 -L8_1 = {} -L8_1.x = 0.0 -L8_1.y = 0.0 -L8_1.z = 0.0 -L7_1.rot = L8_1 -L7_1.level = 1 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -L1_1[5] = L6_1 -L1_1[6] = L7_1 -gadgets = L1_1 -L1_1 = {} -regions = L1_1 -L1_1 = {} -triggers = L1_1 -L1_1 = {} -variables = L1_1 -L1_1 = {} -L1_1.suite = 1 -L1_1.end_suite = 0 -L1_1.rand_suite = false -init_config = L1_1 -L1_1 = {} -L2_1 = {} -L3_1 = {} -L2_1.monsters = L3_1 -L3_1 = {} -L2_1.gadgets = L3_1 -L3_1 = {} -L2_1.regions = L3_1 -L3_1 = {} -L2_1.triggers = L3_1 -L2_1.rand_weight = 100 -L3_1 = {} -L4_1 = {} -L3_1.monsters = L4_1 -L4_1 = {} -L5_1 = 7001 -L4_1[1] = L5_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 = {} -L4_1.monsters = L5_1 -L5_1 = {} -L6_1 = 7002 -L5_1[1] = L6_1 -L4_1.gadgets = L5_1 -L5_1 = {} -L4_1.regions = L5_1 -L5_1 = {} -L4_1.triggers = L5_1 -L4_1.rand_weight = 100 -L5_1 = {} -L6_1 = {} -L5_1.monsters = L6_1 -L6_1 = {} -L7_1 = 7003 -L6_1[1] = L7_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 -L6_1 = {} -L7_1 = {} -L6_1.monsters = L7_1 -L7_1 = {} -L8_1 = 7004 -L7_1[1] = L8_1 -L6_1.gadgets = L7_1 -L7_1 = {} -L6_1.regions = L7_1 -L7_1 = {} -L6_1.triggers = L7_1 -L6_1.rand_weight = 100 -L7_1 = {} -L8_1 = {} -L7_1.monsters = L8_1 -L8_1 = {} -L9_1 = 7005 -L8_1[1] = L9_1 -L7_1.gadgets = L8_1 -L8_1 = {} -L7_1.regions = L8_1 -L8_1 = {} -L7_1.triggers = L8_1 -L7_1.rand_weight = 100 -L8_1 = {} -L9_1 = {} -L8_1.monsters = L9_1 -L9_1 = {} -L10_1 = 7006 -L9_1[1] = L10_1 -L8_1.gadgets = L9_1 -L9_1 = {} -L8_1.regions = L9_1 -L9_1 = {} -L8_1.triggers = L9_1 -L8_1.rand_weight = 100 -L1_1[1] = L2_1 -L1_1[2] = L3_1 -L1_1[3] = L4_1 -L1_1[4] = L5_1 -L1_1[5] = L6_1 -L1_1[6] = L7_1 -L1_1[7] = L8_1 -suites = L1_1 +group_id = 220011007 + +monsters = { } + +npcs = { } + +gadgets = { + { config_id = 7001, gadget_id = 70900201, pos = { x = 475.451, y = -19.397, z = 63.753 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 7002, gadget_id = 70900201, pos = { x = 410.603, y = -20.794, z = 63.956 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 7003, gadget_id = 70900201, pos = { x = 415.979, y = -20.636, z = 120.934 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 7004, gadget_id = 70900201, pos = { x = 435.086, y = -6.887, z = 121.048 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 7005, gadget_id = 70900201, pos = { x = 505.158, y = -21.535, z = 121.325 }, rot = { x = 0, y = 0, z = 0 }, level = 1 }, + { config_id = 7006, gadget_id = 70900201, pos = { x = 533.85, y = -1.161, z = 254.105 }, rot = { x = 0, y = 0, z = 0 }, level = 1 } +} + +regions = { } + +triggers = { } + +variables = { } + +init_config = { + suite = 1, + end_suite = 0, + rand_suite = false +} + +suites = { + { + monsters = { }, + gadgets = { }, + regions = { }, + triggers = { }, + rand_weight = 100 + }, + { + monsters = { }, + gadgets = { 7001 }, + regions = { }, + triggers = { }, + rand_weight = 100 + }, + { + monsters = { }, + gadgets = { 7002 }, + regions = { }, + triggers = { }, + rand_weight = 100 + }, + { + monsters = { }, + gadgets = { 7003 }, + regions = { }, + triggers = { }, + rand_weight = 100 + }, + { + monsters = { }, + gadgets = { 7004 }, + regions = { }, + triggers = { }, + rand_weight = 100 + }, + { + monsters = { }, + gadgets = { 7005 }, + regions = { }, + triggers = { }, + rand_weight = 100 + }, + { + monsters = { }, + gadgets = { 7006 }, + regions = { }, + triggers = { }, + rand_weight = 100 + } +} \ No newline at end of file diff --git a/Resources/Scripts/Scene/20011/scene20011_group220011901.lua b/Resources/Scripts/Scene/20011/scene20011_group220011901.lua index 9b41561f2..07e8bb7c3 100644 --- a/Resources/Scripts/Scene/20011/scene20011_group220011901.lua +++ b/Resources/Scripts/Scene/20011/scene20011_group220011901.lua @@ -1,274 +1,82 @@ -local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1 -L0_1 = {} -L0_1.group_id = 220011901 -L1_1 = {} -L1_1.gadget_id_1 = 49 -L1_1.gadget_id_2 = 50 -L1_1.gadget_id_3 = 51 -L1_1.gadget_id_4 = 55 -L2_1 = {} -monsters = L2_1 -L2_1 = {} -npcs = L2_1 -L2_1 = {} -gadgets = L2_1 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 49 -L4_1 = RegionShape -L4_1 = L4_1.SPHERE -L3_1.shape = L4_1 -L3_1.radius = 5 -L4_1 = {} -L4_1.x = 460.379 -L4_1.y = -24.35 -L4_1.z = 69.159 -L3_1.pos = L4_1 -L4_1 = {} -L4_1.config_id = 50 -L5_1 = RegionShape -L5_1 = L5_1.SPHERE -L4_1.shape = L5_1 -L4_1.radius = 5 -L5_1 = {} -L5_1.x = 406.504 -L5_1.y = -22.573 -L5_1.z = 107.872 -L4_1.pos = L5_1 -L5_1 = {} -L5_1.config_id = 51 -L6_1 = RegionShape -L6_1 = L6_1.CUBIC -L5_1.shape = L6_1 -L6_1 = {} -L6_1.x = 30.0 -L6_1.y = 2.0 -L6_1.z = 30.0 -L5_1.size = L6_1 -L6_1 = {} -L6_1.x = 487.505 -L6_1.y = -17.535 -L6_1.z = 121.603 -L5_1.pos = L6_1 -L6_1 = {} -L6_1.config_id = 55 -L7_1 = RegionShape -L7_1 = L7_1.SPHERE -L6_1.shape = L7_1 -L6_1.radius = 7.3 -L7_1 = {} -L7_1.x = 411.721 -L7_1.y = -22.083 -L7_1.z = 63.952 -L6_1.pos = L7_1 -L2_1[1] = L3_1 -L2_1[2] = L4_1 -L2_1[3] = L5_1 -L2_1[4] = L6_1 -regions = L2_1 -L2_1 = {} -L3_1 = {} -L3_1.config_id = 1000049 -L3_1.name = "ENTER_REGION_49" -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_49" -L3_1.action = "" -L3_1.trigger_count = 0 -L3_1.forbid_guest = false -L4_1 = {} -L4_1.config_id = 1000050 -L4_1.name = "ENTER_REGION_50" -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_50" -L4_1.action = "" -L4_1.trigger_count = 0 -L4_1.forbid_guest = false -L5_1 = {} -L5_1.config_id = 1000051 -L5_1.name = "ENTER_REGION_51" -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_51" -L5_1.action = "" -L5_1.trigger_count = 0 -L5_1.forbid_guest = false -L6_1 = {} -L6_1.config_id = 1000055 -L6_1.name = "ENTER_REGION_55" -L7_1 = EventType -L7_1 = L7_1.EVENT_ENTER_REGION -L6_1.event = L7_1 -L6_1.source = "" -L6_1.condition = "condition_EVENT_ENTER_REGION_55" -L6_1.action = "" -L6_1.trigger_count = 0 -L6_1.forbid_guest = false -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 = {} -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 = 49 -L6_1 = 50 -L7_1 = 51 -L8_1 = 55 -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_1 -L3_1.regions = L4_1 -L4_1 = {} -L5_1 = "ENTER_REGION_49" -L6_1 = "ENTER_REGION_50" -L7_1 = "ENTER_REGION_51" -L8_1 = "ENTER_REGION_55" -L4_1[1] = L5_1 -L4_1[2] = L6_1 -L4_1[3] = L7_1 -L4_1[4] = L8_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 = 30807 - 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 +local globalDefs = { + gadget_id_1 = 49, + gadget_id_2 = 50, + gadget_id_3 = 51, + gadget_id_4 = 55 +} + +group_id = 220011901 + +monsters = { } + +npcs = { } + +gadgets = { } + +regions = { + { config_id = 49, shape = RegionShape.SPHERE, radius = 5, pos = { x = 460.379, y = -24.35, z = 69.159 } }, + { config_id = 50, shape = RegionShape.SPHERE, radius = 5, pos = { x = 406.504, y = -22.573, z = 107.872 } }, + { config_id = 51, shape = RegionShape.CUBIC, size = { x = 30, y = 2, z = 30 }, pos = { x = 487.505, y = -17.535, z = 121.603 } }, + { config_id = 55, shape = RegionShape.SPHERE, radius = 7.3, pos = { x = 411.721, y = -22.083, z = 63.952 } } +} + +triggers = { + { config_id = 1000049, name = "ENTER_REGION_49", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49", action = "", trigger_count = 0, forbid_guest = false }, + { config_id = 1000050, name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "", trigger_count = 0, forbid_guest = false }, + { config_id = 1000051, name = "ENTER_REGION_51", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_51", action = "", trigger_count = 0, forbid_guest = false }, + { config_id = 1000055, name = "ENTER_REGION_55", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_55", action = "", trigger_count = 0, forbid_guest = false } +} + +variables = { } + +init_config = { + suite = 1, + end_suite = 0, + rand_suite = true +} + +suites = { + { + monsters = { }, + gadgets = { }, + regions = { 49, 50, 51, 55 }, + triggers = { "ENTER_REGION_49", "ENTER_REGION_50", "ENTER_REGION_51", "ENTER_REGION_55" }, + rand_weight = 100 + } +} + +function condition_EVENT_ENTER_REGION_49(context, args) + if ScriptLib.GetEntityType(context, args.target_eid) == EntityType.AVATAR and + ScriptLib.GetQuestState(context, args.target_eid, 30807) == QuestState.UNFINISHED and + args.param1 == globalDefs.gadget_id_1 then + return true end - end - L2_2 = false - return L2_2 + return false end -condition_EVENT_ENTER_REGION_49 = 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 = 30808 - 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 + +function condition_EVENT_ENTER_REGION_50(context, args) + if ScriptLib.GetEntityType(context, args.target_eid) == EntityType.AVATAR and + ScriptLib.GetQuestState(context, args.target_eid, 30808) == QuestState.UNFINISHED and + args.param1 == globalDefs.gadget_id_2 then + return true end - end - L2_2 = false - return L2_2 + return false end -condition_EVENT_ENTER_REGION_50 = 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 = 30809 - 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_3 - if L2_2 == L3_2 then - L2_2 = true - return L2_2 - end + +function condition_EVENT_ENTER_REGION_51(context, args) + if ScriptLib.GetEntityType(context, args.target_eid) == EntityType.AVATAR and + ScriptLib.GetQuestState(context, args.target_eid, 30809) == QuestState.UNFINISHED and + args.param1 == globalDefs.gadget_id_3 then + return true end - end - L2_2 = false - return L2_2 + return false end -condition_EVENT_ENTER_REGION_51 = 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 = 30812 - 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_4 - if L2_2 == L3_2 then - L2_2 = true - return L2_2 - end + +function condition_EVENT_ENTER_REGION_55(context, args) + if ScriptLib.GetEntityType(context, args.target_eid) == EntityType.AVATAR and + ScriptLib.GetQuestState(context, args.target_eid, 30812) == QuestState.UNFINISHED and + args.param1 == globalDefs.gadget_id_4 then + return true end - end - L2_2 = false - return L2_2 + return false end -condition_EVENT_ENTER_REGION_55 = L2_1 diff --git a/Resources/Scripts/Scene/20011/scene20011_routes.lua b/Resources/Scripts/Scene/20011/scene20011_routes.lua index 365ff4fb6..f96228477 100644 --- a/Resources/Scripts/Scene/20011/scene20011_routes.lua +++ b/Resources/Scripts/Scene/20011/scene20011_routes.lua @@ -1,182 +1,28 @@ -local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1 -L0_1 = {} -L1_1 = {} -L1_1.name = "Monster8" -L1_1.localId = 1 -L1_1.type = 1 -L2_1 = {} -L3_1 = {} -L4_1 = {} -L4_1.x = 450.0 -L4_1.y = -24.9 -L4_1.z = 68.9 -L3_1.pos = L4_1 -L3_1.waitTime = 0 -L3_1.speedLevel = 1 -L4_1 = {} -L5_1 = {} -L5_1.x = 445.3 -L5_1.y = -24.8 -L5_1.z = 66.1 -L4_1.pos = L5_1 -L4_1.waitTime = 0 -L4_1.speedLevel = 1 -L5_1 = {} -L6_1 = {} -L6_1.x = 443.7 -L6_1.y = -24.8 -L6_1.z = 71.9 -L5_1.pos = L6_1 -L5_1.waitTime = 0 -L5_1.speedLevel = 1 -L6_1 = {} -L7_1 = {} -L7_1.x = 440.5 -L7_1.y = -24.9 -L7_1.z = 66.3 -L6_1.pos = L7_1 -L6_1.waitTime = 0 -L6_1.speedLevel = 1 -L2_1[1] = L3_1 -L2_1[2] = L4_1 -L2_1[3] = L5_1 -L2_1[4] = L6_1 -L1_1.points = L2_1 -L0_1.Monster8 = L1_1 -L1_1 = {} -L1_1.name = "Monster11" -L1_1.localId = 2 -L1_1.type = 1 -L2_1 = {} -L3_1 = {} -L4_1 = {} -L4_1.x = 408.2 -L4_1.y = -24.1 -L4_1.z = 130.4 -L3_1.pos = L4_1 -L3_1.waitTime = 0 -L3_1.speedLevel = 1 -L4_1 = {} -L5_1 = {} -L5_1.x = 408.9 -L5_1.y = -24.1 -L5_1.z = 126.3 -L4_1.pos = L5_1 -L4_1.waitTime = 0 -L4_1.speedLevel = 1 -L5_1 = {} -L6_1 = {} -L6_1.x = 409.0 -L6_1.y = -24.1 -L6_1.z = 122.0 -L5_1.pos = L6_1 -L5_1.waitTime = 0 -L5_1.speedLevel = 1 -L2_1[1] = L3_1 -L2_1[2] = L4_1 -L2_1[3] = L5_1 -L1_1.points = L2_1 -L0_1.Monster11 = L1_1 -L1_1 = {} -L1_1.name = "Monster12" -L1_1.localId = 3 -L1_1.type = 1 -L2_1 = {} -L3_1 = {} -L4_1 = {} -L4_1.x = 396.9 -L4_1.y = -24.1 -L4_1.z = 130.9 -L3_1.pos = L4_1 -L3_1.waitTime = 0 -L3_1.speedLevel = 1 -L4_1 = {} -L5_1 = {} -L5_1.x = 396.3 -L5_1.y = -24.1 -L5_1.z = 126.8 -L4_1.pos = L5_1 -L4_1.waitTime = 0 -L4_1.speedLevel = 1 -L5_1 = {} -L6_1 = {} -L6_1.x = 397.1 -L6_1.y = -24.1 -L6_1.z = 122.5 -L5_1.pos = L6_1 -L5_1.waitTime = 0 -L5_1.speedLevel = 1 -L2_1[1] = L3_1 -L2_1[2] = L4_1 -L2_1[3] = L5_1 -L1_1.points = L2_1 -L0_1.Monster12 = L1_1 -L1_1 = {} -L1_1.name = "Monster18" -L1_1.localId = 4 -L1_1.type = 1 -L2_1 = {} -L3_1 = {} -L4_1 = {} -L4_1.x = 493.4 -L4_1.y = -23.6 -L4_1.z = 123.7 -L3_1.pos = L4_1 -L3_1.waitTime = 0 -L3_1.speedLevel = 1 -L4_1 = {} -L5_1 = {} -L5_1.x = 488.2 -L5_1.y = -23.6 -L5_1.z = 124.2 -L4_1.pos = L5_1 -L4_1.waitTime = 0 -L4_1.speedLevel = 1 -L5_1 = {} -L6_1 = {} -L6_1.x = 486.3 -L6_1.y = -23.6 -L6_1.z = 131.1 -L5_1.pos = L6_1 -L5_1.waitTime = 0 -L5_1.speedLevel = 1 -L2_1[1] = L3_1 -L2_1[2] = L4_1 -L2_1[3] = L5_1 -L1_1.points = L2_1 -L0_1.Monster18 = L1_1 -L1_1 = {} -L1_1.name = "Monster19" -L1_1.localId = 5 -L1_1.type = 1 -L2_1 = {} -L3_1 = {} -L4_1 = {} -L4_1.x = 493.7 -L4_1.y = -23.6 -L4_1.z = 117.2 -L3_1.pos = L4_1 -L3_1.waitTime = 0 -L3_1.speedLevel = 1 -L4_1 = {} -L5_1 = {} -L5_1.x = 488.7 -L5_1.y = -23.6 -L5_1.z = 117.5 -L4_1.pos = L5_1 -L4_1.waitTime = 0 -L4_1.speedLevel = 1 -L5_1 = {} -L6_1 = {} -L6_1.x = 486.4 -L6_1.y = -23.6 -L6_1.z = 111.8 -L5_1.pos = L6_1 -L5_1.waitTime = 0 -L5_1.speedLevel = 1 -L2_1[1] = L3_1 -L2_1[2] = L4_1 -L2_1[3] = L5_1 -L1_1.points = L2_1 -L0_1.Monster19 = L1_1 -routes = L0_1 +routes = { + Monster8 = { name = "Monster8", localId = 1, type = 1, points = { + { pos = { x = 450, y = -24.9, z = 68.9 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 445.3, y = -24.8, z = 66.1 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 443.7, y = -24.8, z = 71.9 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 440.5, y = -24.9, z = 66.3 }, waitTime = 0, speedLevel = 1 } + } }, + Monster11 = { name = "Monster11", localId = 2, type = 1, points = { + { pos = { x = 408.2, y = -24.1, z = 130.4 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 408.9, y = -24.1, z = 126.3 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 409, y = -24.1, z = 122 }, waitTime = 0, speedLevel = 1 } + } }, + Monster12 = { name = "Monster12", localId = 3, type = 1, points = { + { pos = { x = 396.9, y = -24.1, z = 130.9 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 396.3, y = -24.1, z = 126.8 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 397.1, y = -24.1, z = 122.5 }, waitTime = 0, speedLevel = 1 } + } }, + Monster18 = { name = "Monster18", localId = 4, type = 1, points = { + { pos = { x = 493.4, y = -23.6, z = 123.7 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 488.2, y = -23.6, z = 124.2 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 486.3, y = -23.6, z = 131.1 }, waitTime = 0, speedLevel = 1 } + } }, + Monster19 = { name = "Monster19", localId = 5, type = 1, points = { + { pos = { x = 493.7, y = -23.6, z = 117.2 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 488.7, y = -23.6, z = 117.5 }, waitTime = 0, speedLevel = 1 }, + { pos = { x = 486.4, y = -23.6, z = 111.8 }, waitTime = 0, speedLevel = 1 } + } } +} \ No newline at end of file