Grasscutter_Resources/Resources/Scripts/Scene/6/scene6_group166001017.lua
2022-04-29 16:40:51 +02:00

330 lines
6.2 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1
L0_1 = {}
L0_1.group_id = 166001017
L1_1 = {}
L2_1 = {}
L2_1.config_id = 17003
L2_1.monster_id = 26040102
L3_1 = {}
L3_1.x = 927.463
L3_1.y = 1093.708
L3_1.z = 955.462
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 123.758
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 36
L2_1.drop_id = 1000100
L2_1.disableWander = true
L2_1.area_id = 300
L1_1[1] = L2_1
monsters = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 17007
L2_1.npc_id = 20539
L3_1 = {}
L3_1.x = 924.739
L3_1.y = 1093.974
L3_1.z = 943.709
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.area_id = 300
L1_1[1] = L2_1
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 17001
L2_1.gadget_id = 70360089
L3_1 = {}
L3_1.x = 924.659
L3_1.y = 1093.891
L3_1.z = 943.522
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
L2_1.area_id = 300
L3_1 = {}
L3_1.config_id = 17002
L3_1.gadget_id = 70290017
L4_1 = {}
L4_1.x = 924.696
L4_1.y = 1093.856
L4_1.z = 943.381
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 279.549
L4_1.y = 210.092
L4_1.z = 171.685
L3_1.rot = L4_1
L3_1.level = 1
L3_1.area_id = 300
L1_1[1] = L2_1
L1_1[2] = L3_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 17004
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 20
L3_1 = {}
L3_1.x = 931.559
L3_1.y = 1093.234
L3_1.z = 946.57
L2_1.pos = L3_1
L2_1.area_id = 300
L3_1 = {}
L3_1.config_id = 17008
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 10
L4_1 = {}
L4_1.x = 923.524
L4_1.y = 1095.392
L4_1.z = 962.04
L3_1.pos = L4_1
L3_1.area_id = 300
L1_1[1] = L2_1
L1_1[2] = L3_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1017004
L2_1.name = "ENTER_REGION_17004"
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_17004"
L2_1.action = "action_EVENT_ENTER_REGION_17004"
L3_1 = {}
L3_1.config_id = 1017005
L3_1.name = "QUEST_FINISH_17005"
L4_1 = EventType
L4_1 = L4_1.EVENT_QUEST_FINISH
L3_1.event = L4_1
L3_1.source = "7103706"
L3_1.condition = ""
L3_1.action = "action_EVENT_QUEST_FINISH_17005"
L4_1 = {}
L4_1.config_id = 1017006
L4_1.name = "MONSTER_BATTLE_17006"
L5_1 = EventType
L5_1 = L5_1.EVENT_MONSTER_BATTLE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_MONSTER_BATTLE_17006"
L4_1.action = "action_EVENT_MONSTER_BATTLE_17006"
L5_1 = {}
L5_1.config_id = 1017008
L5_1.name = "ENTER_REGION_17008"
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_17008"
L5_1.action = "action_EVENT_ENTER_REGION_17008"
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 = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L4_1 = 17003
L3_1[1] = L4_1
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 17001
L5_1 = 17002
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 17004
L5_1 = 17008
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ENTER_REGION_17004"
L5_1 = "QUEST_FINISH_17005"
L6_1 = "MONSTER_BATTLE_17006"
L7_1 = "ENTER_REGION_17008"
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
L3_1 = {}
L4_1 = 17007
L3_1[1] = L4_1
L2_1.npcs = 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, L4_2, L5_2
L2_2 = A1_2.param1
if L2_2 ~= 17004 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_17004 = 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 = 60010102
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_17004 = 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.ChangeGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "done"
L5_2 = 1
L6_2 = 166001184
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 : change_GroupVariable_by_group"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_QUEST_FINISH_17005 = L1_1
function L1_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 17003 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_MONSTER_BATTLE_17006 = 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 = 60010103
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_MONSTER_BATTLE_17006 = 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 ~= 17008 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_17008 = 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 = 60010106
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_17008 = L1_1