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

530 lines
10 KiB
Lua

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 = 201059005
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 5003
L2_1.gadget_id = 70211121
L3_1 = {}
L3_1.x = -253.956
L3_1.y = 38.436
L3_1.z = 307.654
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 270.089
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 11
L2_1.drop_tag = "\232\167\163\232\176\156\233\171\152\231\186\167\231\146\131\230\156\136"
L2_1.isOneoff = true
L2_1.persistent = true
L3_1 = {}
L3_1.config_id = 5005
L3_1.gadget_id = 70900201
L4_1 = {}
L4_1.x = -176.622
L4_1.y = 26.498
L4_1.z = 234.643
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 = 5006
L4_1.gadget_id = 70211011
L5_1 = {}
L5_1.x = -157.008
L5_1.y = 16.541
L5_1.z = 218.448
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 268.216
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 11
L4_1.drop_tag = "\230\136\152\230\150\151\228\184\173\231\186\167\231\146\131\230\156\136"
L4_1.isOneoff = true
L4_1.persistent = true
L5_1 = {}
L5_1.config_id = 5009
L5_1.gadget_id = 70211001
L6_1 = {}
L6_1.x = -164.74
L6_1.y = 26.524
L6_1.z = 301.682
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 200.301
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 11
L5_1.drop_tag = "\230\136\152\230\150\151\228\189\142\231\186\167\231\146\131\230\156\136"
L5_1.isOneoff = true
L5_1.persistent = true
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 5001
L3_1 = RegionShape
L3_1 = L3_1.CUBIC
L2_1.shape = L3_1
L3_1 = {}
L3_1.x = 15.0
L3_1.y = 5.0
L3_1.z = 5.0
L2_1.size = L3_1
L3_1 = {}
L3_1.x = -177.445
L3_1.y = 28.458
L3_1.z = 237.15
L2_1.pos = L3_1
L3_1 = {}
L3_1.config_id = 5004
L4_1 = RegionShape
L4_1 = L4_1.CUBIC
L3_1.shape = L4_1
L4_1 = {}
L4_1.x = 80.0
L4_1.y = 1.0
L4_1.z = 80.0
L3_1.size = L4_1
L4_1 = {}
L4_1.x = -165.984
L4_1.y = 31.203
L4_1.z = 133.946
L3_1.pos = L4_1
L4_1 = {}
L4_1.config_id = 5007
L5_1 = RegionShape
L5_1 = L5_1.CUBIC
L4_1.shape = L5_1
L5_1 = {}
L5_1.x = 5.0
L5_1.y = 20.0
L5_1.z = 15.0
L4_1.size = L5_1
L5_1 = {}
L5_1.x = -172.016
L5_1.y = 18.863
L5_1.z = 219.429
L4_1.pos = L5_1
L5_1 = {}
L5_1.config_id = 5008
L6_1 = RegionShape
L6_1 = L6_1.CUBIC
L5_1.shape = L6_1
L6_1 = {}
L6_1.x = 20.0
L6_1.y = 20.0
L6_1.z = 5.0
L5_1.size = L6_1
L6_1 = {}
L6_1.x = -159.211
L6_1.y = 18.679
L6_1.z = 200.194
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 = 1005001
L2_1.name = "ENTER_REGION_5001"
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_5001"
L2_1.action = "action_EVENT_ENTER_REGION_5001"
L3_1 = {}
L3_1.config_id = 1005002
L3_1.name = "DUNGEON_SETTLE_5002"
L4_1 = EventType
L4_1 = L4_1.EVENT_DUNGEON_SETTLE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_DUNGEON_SETTLE_5002"
L3_1.action = "action_EVENT_DUNGEON_SETTLE_5002"
L4_1 = {}
L4_1.config_id = 1005004
L4_1.name = "ENTER_REGION_5004"
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_5004"
L4_1.action = "action_EVENT_ENTER_REGION_5004"
L5_1 = {}
L5_1.config_id = 1005007
L5_1.name = "ENTER_REGION_5007"
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_5007"
L5_1.action = "action_EVENT_ENTER_REGION_5007"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1005008
L6_1.name = "ENTER_REGION_5008"
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_5008"
L6_1.action = "action_EVENT_ENTER_REGION_5008"
L6_1.trigger_count = 0
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
triggers = L1_1
L1_1 = {}
L2_1 = {}
L2_1.configId = 1
L2_1.name = "Weather"
L2_1.value = 0
L2_1.no_refresh = false
L1_1[1] = L2_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 = {}
L4_1 = 5006
L5_1 = 5009
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 5001
L5_1 = 5004
L6_1 = 5007
L7_1 = 5008
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ENTER_REGION_5001"
L5_1 = "DUNGEON_SETTLE_5002"
L6_1 = "ENTER_REGION_5004"
L7_1 = "ENTER_REGION_5007"
L8_1 = "ENTER_REGION_5008"
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
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 5003
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
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
L2_2 = A1_2.param1
if L2_2 ~= 5001 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_5001 = 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 = 10590127
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.AddQuestProgress
L3_2 = A0_2
L4_2 = "10595001"
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.KillEntityByConfigId
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 5005
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_entity_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_5001 = L1_1
function L1_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_5002 = 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 = 201059005
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_DUNGEON_SETTLE_5002 = 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 ~= 5004 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_5004 = 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.CreateGadget
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 5005
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_gadget"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Enterloop"
L5_2 = 100
L6_2 = 201059004
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_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_ENTER_REGION_5004 = 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 ~= 5007 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 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "Weather"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ENTER_REGION_5007 = 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.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Weather"
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 : set_groupVariable"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_5007 = 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 ~= 5008 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 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "Weather"
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_5008 = 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.SetWeatherAreaState
L3_2 = A0_2
L4_2 = 10003
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "Weather"
L5_2 = 0
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 0 ~= L2_2 then
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ENTER_REGION_5008 = L1_1