mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
895 lines
19 KiB
Lua
895 lines
19 KiB
Lua
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 = 220129018
|
|
L1_1 = {}
|
|
L1_1.pointarray = 3
|
|
L1_1.portal = 18003
|
|
L1_1.pointer = 18001
|
|
L1_1.operation = 18002
|
|
L1_1.time_group_id = 220129014
|
|
L1_1.portal_group_id = 220129020
|
|
L1_1.group_id = 220129018
|
|
L1_1.pointarray_reverse = 3
|
|
L1_1.pointarray_pointer = 7
|
|
L1_1.pointarray_pointer_reverse = 7
|
|
L1_1.otherRoom1_group_id = 220129016
|
|
L1_1.otherRoom2_group_id = 220129017
|
|
L1_1.otherRoom3_group_id = 220129019
|
|
L1_1.door = 18009
|
|
L1_1.l_compass = 0
|
|
L1_1.s_compass = 18010
|
|
L1_1.sky_compass = 18008
|
|
function L2_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.PrintContextLog
|
|
L2_2 = A0_2
|
|
L3_2 = "SLC_Active_Portal:run func"
|
|
L1_2(L2_2, L3_2)
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGadgetConfigId
|
|
L2_2 = A0_2
|
|
L3_2 = {}
|
|
L4_2 = A0_2.source_entity_id
|
|
L3_2.gadget_eid = L4_2
|
|
L1_2 = L1_2(L2_2, L3_2)
|
|
L2_2 = L1_1.door
|
|
if L1_2 == L2_2 then
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.PrintContextLog
|
|
L2_2 = A0_2
|
|
L3_2 = "SLC_Active_Portal:\232\167\166\229\143\145\228\188\160\233\128\129"
|
|
L1_2(L2_2, L3_2)
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.CreateGadget
|
|
L2_2 = A0_2
|
|
L3_2 = {}
|
|
L4_2 = L1_1.portal
|
|
L3_2.config_id = L4_2
|
|
L1_2(L2_2, L3_2)
|
|
end
|
|
L1_2 = 0
|
|
return L1_2
|
|
end
|
|
SLC_Active_Portal = L2_1
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 18001
|
|
L3_1.gadget_id = 70800164
|
|
L4_1 = {}
|
|
L4_1.x = 549.167
|
|
L4_1.y = 279.0
|
|
L4_1.z = 309.1
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 269.1
|
|
L4_1.z = 10.881
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 1
|
|
L3_1.is_use_point_array = true
|
|
L4_1 = {}
|
|
L4_1.config_id = 18002
|
|
L4_1.gadget_id = 70800166
|
|
L5_1 = {}
|
|
L5_1.x = 330.726
|
|
L5_1.y = 200.525
|
|
L5_1.z = 259.198
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 342.425
|
|
L5_1.y = 269.677
|
|
L5_1.z = 10.844
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 1
|
|
L4_1.is_use_point_array = true
|
|
L5_1 = {}
|
|
L5_1.is_persistent = true
|
|
L6_1 = {}
|
|
L7_1 = 752
|
|
L8_1 = 753
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_1
|
|
L5_1.init_options = L6_1
|
|
L4_1.worktop_config = L5_1
|
|
L5_1 = {}
|
|
L5_1.config_id = 18003
|
|
L5_1.gadget_id = 70800172
|
|
L6_1 = {}
|
|
L6_1.x = 360.351
|
|
L6_1.y = 200.329
|
|
L6_1.z = 273.615
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 268.088
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 1
|
|
L6_1 = {}
|
|
L6_1.config_id = 18008
|
|
L6_1.gadget_id = 70800163
|
|
L7_1 = {}
|
|
L7_1.x = 566.0
|
|
L7_1.y = 279.0
|
|
L7_1.z = 309.1
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 269.1
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 1
|
|
L7_1 = {}
|
|
L7_1.config_id = 18009
|
|
L7_1.gadget_id = 70800140
|
|
L8_1 = {}
|
|
L8_1.x = 359.556
|
|
L8_1.y = 200.404
|
|
L8_1.z = 273.625
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 269.402
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 1
|
|
L8_1 = {}
|
|
L8_1.config_id = 18010
|
|
L8_1.gadget_id = 70800165
|
|
L9_1 = {}
|
|
L9_1.x = 331.121
|
|
L9_1.y = 200.4
|
|
L9_1.z = 259.2
|
|
L8_1.pos = L9_1
|
|
L9_1 = {}
|
|
L9_1.x = 342.425
|
|
L9_1.y = 269.677
|
|
L9_1.z = 1.351
|
|
L8_1.rot = L9_1
|
|
L8_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
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 18011
|
|
L4_1 = RegionShape
|
|
L4_1 = L4_1.SPHERE
|
|
L3_1.shape = L4_1
|
|
L3_1.radius = 15
|
|
L4_1 = {}
|
|
L4_1.x = 359.608
|
|
L4_1.y = 200.204
|
|
L4_1.z = 274.328
|
|
L3_1.pos = L4_1
|
|
L2_1[1] = L3_1
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1018004
|
|
L3_1.name = "SELECT_OPTION_18004"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_SELECT_OPTION
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_SELECT_OPTION_18004"
|
|
L3_1.action = "action_EVENT_SELECT_OPTION_18004"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1018005
|
|
L4_1.name = "SELECT_OPTION_18005"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_SELECT_OPTION
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_SELECT_OPTION_18005"
|
|
L4_1.action = "action_EVENT_SELECT_OPTION_18005"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1018006
|
|
L5_1.name = "PLATFORM_REACH_POINT_18006"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_PLATFORM_REACH_POINT
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_PLATFORM_REACH_POINT_18006"
|
|
L5_1.action = "action_EVENT_PLATFORM_REACH_POINT_18006"
|
|
L5_1.trigger_count = 0
|
|
L6_1 = {}
|
|
L6_1.config_id = 1018007
|
|
L6_1.name = "VARIABLE_CHANGE_18007"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_VARIABLE_CHANGE
|
|
L6_1.event = L7_1
|
|
L6_1.source = "time"
|
|
L6_1.condition = ""
|
|
L6_1.action = "action_EVENT_VARIABLE_CHANGE_18007"
|
|
L6_1.trigger_count = 0
|
|
L7_1 = {}
|
|
L7_1.config_id = 1018011
|
|
L7_1.name = "ENTER_REGION_18011"
|
|
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_18011"
|
|
L7_1.action = "action_EVENT_ENTER_REGION_18011"
|
|
L7_1.trigger_count = 0
|
|
L8_1 = {}
|
|
L8_1.config_id = 1018012
|
|
L8_1.name = "GADGET_CREATE_18012"
|
|
L9_1 = EventType
|
|
L9_1 = L9_1.EVENT_GADGET_CREATE
|
|
L8_1.event = L9_1
|
|
L8_1.source = ""
|
|
L8_1.condition = "condition_EVENT_GADGET_CREATE_18012"
|
|
L8_1.action = "action_EVENT_GADGET_CREATE_18012"
|
|
L8_1.trigger_count = 0
|
|
L9_1 = {}
|
|
L9_1.config_id = 1018013
|
|
L9_1.name = "GADGET_CREATE_18013"
|
|
L10_1 = EventType
|
|
L10_1 = L10_1.EVENT_GADGET_CREATE
|
|
L9_1.event = L10_1
|
|
L9_1.source = ""
|
|
L9_1.condition = "condition_EVENT_GADGET_CREATE_18013"
|
|
L9_1.action = "action_EVENT_GADGET_CREATE_18013"
|
|
L9_1.trigger_count = 0
|
|
L10_1 = {}
|
|
L10_1.config_id = 1018014
|
|
L10_1.name = "GADGET_CREATE_18014"
|
|
L11_1 = EventType
|
|
L11_1 = L11_1.EVENT_GADGET_CREATE
|
|
L10_1.event = L11_1
|
|
L10_1.source = ""
|
|
L10_1.condition = "condition_EVENT_GADGET_CREATE_18014"
|
|
L10_1.action = "action_EVENT_GADGET_CREATE_18014"
|
|
L10_1.trigger_count = 0
|
|
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 = {}
|
|
L3_1 = {}
|
|
L3_1.configId = 1
|
|
L3_1.name = "time"
|
|
L3_1.value = 3
|
|
L3_1.no_refresh = true
|
|
L4_1 = {}
|
|
L4_1.configId = 2
|
|
L4_1.name = "min_time"
|
|
L4_1.value = 2
|
|
L4_1.no_refresh = true
|
|
L5_1 = {}
|
|
L5_1.configId = 3
|
|
L5_1.name = "max_time"
|
|
L5_1.value = 3
|
|
L5_1.no_refresh = true
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.suite = 1
|
|
L2_1.end_suite = 0
|
|
L2_1.rand_suite = false
|
|
init_config = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 18002
|
|
L6_1 = 18009
|
|
L7_1 = 18010
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 18011
|
|
L4_1[1] = L5_1
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "SELECT_OPTION_18004"
|
|
L6_1 = "SELECT_OPTION_18005"
|
|
L7_1 = "PLATFORM_REACH_POINT_18006"
|
|
L8_1 = "VARIABLE_CHANGE_18007"
|
|
L9_1 = "ENTER_REGION_18011"
|
|
L10_1 = "GADGET_CREATE_18012"
|
|
L11_1 = "GADGET_CREATE_18013"
|
|
L12_1 = "GADGET_CREATE_18014"
|
|
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
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L4_1.monsters = L5_1
|
|
L5_1 = {}
|
|
L6_1 = 18003
|
|
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 = 18001
|
|
L8_1 = 18008
|
|
L6_1[1] = L7_1
|
|
L6_1[2] = L8_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
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
suites = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 18002 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param2
|
|
if 752 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_SELECT_OPTION_18004 = L2_1
|
|
function L2_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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGroupVariableValueByGroup
|
|
L4_2 = A0_2
|
|
L5_2 = "min_time"
|
|
L6_2 = L1_1.group_id
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2)
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.GetGroupVariableValueByGroup
|
|
L5_2 = A0_2
|
|
L6_2 = "max_time"
|
|
L7_2 = L1_1.group_id
|
|
L4_2 = L4_2(L5_2, L6_2, L7_2)
|
|
if L2_2 == 5 then
|
|
L2_2 = 1
|
|
else
|
|
L2_2 = L2_2 + 1
|
|
end
|
|
if L3_2 > L2_2 or L4_2 < L2_2 then
|
|
if L2_2 == 4 then
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.PrintContextLog
|
|
L6_2 = A0_2
|
|
L7_2 = "\230\140\135\233\146\136\232\162\171\230\160\145\229\141\161\228\189\143"
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.ShowReminder
|
|
L6_2 = A0_2
|
|
L7_2 = 400152
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = 0
|
|
return L5_2
|
|
else
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.PrintContextLog
|
|
L6_2 = A0_2
|
|
L7_2 = "\230\140\135\233\146\136\232\182\133\232\191\135\233\153\144\229\136\182"
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.ShowReminder
|
|
L6_2 = A0_2
|
|
L7_2 = 400138
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = 0
|
|
return L5_2
|
|
end
|
|
end
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.SetGroupVariableValueByGroup
|
|
L6_2 = A0_2
|
|
L7_2 = "time"
|
|
L8_2 = L2_2
|
|
L9_2 = L1_1.time_group_id
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.SetGroupVariableValueByGroup
|
|
L6_2 = A0_2
|
|
L7_2 = "time"
|
|
L8_2 = L2_2
|
|
L9_2 = L1_1.group_id
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.PrintContextLog
|
|
L6_2 = A0_2
|
|
L7_2 = "\229\143\152\233\135\143\232\174\190\231\189\174\230\136\144\229\138\159"
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.DelWorktopOptionByGroupId
|
|
L6_2 = A0_2
|
|
L7_2 = L1_1.group_id
|
|
L8_2 = L1_1.operation
|
|
L9_2 = 752
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.DelWorktopOptionByGroupId
|
|
L6_2 = A0_2
|
|
L7_2 = L1_1.group_id
|
|
L8_2 = L1_1.operation
|
|
L9_2 = 753
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = 0
|
|
return L5_2
|
|
end
|
|
action_EVENT_SELECT_OPTION_18004 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 18002 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param2
|
|
if 753 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_SELECT_OPTION_18005 = L2_1
|
|
function L2_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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.GetGroupVariableValueByGroup
|
|
L4_2 = A0_2
|
|
L5_2 = "min_time"
|
|
L6_2 = L1_1.group_id
|
|
L3_2 = L3_2(L4_2, L5_2, L6_2)
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.GetGroupVariableValueByGroup
|
|
L5_2 = A0_2
|
|
L6_2 = "max_time"
|
|
L7_2 = L1_1.group_id
|
|
L4_2 = L4_2(L5_2, L6_2, L7_2)
|
|
if L2_2 == 1 then
|
|
L2_2 = 5
|
|
else
|
|
L2_2 = L2_2 - 1
|
|
end
|
|
if L3_2 > L2_2 or L4_2 < L2_2 then
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.ShowReminder
|
|
L6_2 = A0_2
|
|
L7_2 = 400138
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.PrintContextLog
|
|
L6_2 = A0_2
|
|
L7_2 = "\230\140\135\233\146\136\232\182\133\232\191\135\233\153\144\229\136\182"
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = 0
|
|
return L5_2
|
|
end
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.SetGroupVariableValueByGroup
|
|
L6_2 = A0_2
|
|
L7_2 = "time"
|
|
L8_2 = L2_2
|
|
L9_2 = L1_1.time_group_id
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.SetGroupVariableValueByGroup
|
|
L6_2 = A0_2
|
|
L7_2 = "time"
|
|
L8_2 = L2_2
|
|
L9_2 = L1_1.group_id
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.PrintContextLog
|
|
L6_2 = A0_2
|
|
L7_2 = "\229\143\152\233\135\143\232\174\190\231\189\174\230\136\144\229\138\159"
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.DelWorktopOptionByGroupId
|
|
L6_2 = A0_2
|
|
L7_2 = L1_1.group_id
|
|
L8_2 = L1_1.operation
|
|
L9_2 = 752
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.DelWorktopOptionByGroupId
|
|
L6_2 = A0_2
|
|
L7_2 = L1_1.group_id
|
|
L8_2 = L1_1.operation
|
|
L9_2 = 753
|
|
L5_2(L6_2, L7_2, L8_2, L9_2)
|
|
L5_2 = 0
|
|
return L5_2
|
|
end
|
|
action_EVENT_SELECT_OPTION_18005 = 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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = L1_1.pointer
|
|
L4_2 = A1_2.param1
|
|
if L3_2 ~= L4_2 then
|
|
L3_2 = false
|
|
return L3_2
|
|
end
|
|
L3_2 = L1_1.pointarray
|
|
L4_2 = A1_2.param2
|
|
if L3_2 ~= L4_2 then
|
|
L3_2 = false
|
|
return L3_2
|
|
end
|
|
L3_2 = A1_2.param3
|
|
if L2_2 ~= L3_2 then
|
|
L3_2 = false
|
|
return L3_2
|
|
end
|
|
L3_2 = true
|
|
return L3_2
|
|
end
|
|
condition_EVENT_PLATFORM_REACH_POINT_18006 = L2_1
|
|
function L2_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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if L2_2 == 1 then
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.door
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.ChestLocked
|
|
L3_2(L4_2, L5_2, L6_2)
|
|
end
|
|
if L2_2 == 2 then
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.door
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.ChestOpened
|
|
L3_2(L4_2, L5_2, L6_2)
|
|
end
|
|
if L2_2 == 3 then
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.door
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.ChestTrap
|
|
L3_2(L4_2, L5_2, L6_2)
|
|
end
|
|
if L2_2 == 4 then
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.door
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.ChestBramble
|
|
L3_2(L4_2, L5_2, L6_2)
|
|
end
|
|
if L2_2 == 5 then
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGadgetStateByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.door
|
|
L6_2 = GadgetState
|
|
L6_2 = L6_2.ChestFrozen
|
|
L3_2(L4_2, L5_2, L6_2)
|
|
end
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetWorktopOptionsByGroupId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.group_id
|
|
L6_2 = L1_1.operation
|
|
L7_2 = {}
|
|
L8_2 = 752
|
|
L9_2 = 753
|
|
L7_2[1] = L8_2
|
|
L7_2[2] = L9_2
|
|
L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetEntityServerGlobalValueByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.sky_compass
|
|
L6_2 = "SGV_Time"
|
|
L7_2 = L2_2
|
|
L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetEntityServerGlobalValueByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.s_compass
|
|
L6_2 = "SGV_Time"
|
|
L7_2 = L2_2
|
|
L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_PLATFORM_REACH_POINT_18006 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = {}
|
|
L3_2.route_type = 0
|
|
L3_2.turn_mode = false
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.SetPlatformPointArray
|
|
L5_2 = A0_2
|
|
L6_2 = L1_1.pointer
|
|
L7_2 = L1_1.pointarray
|
|
L8_2 = {}
|
|
L9_2 = L2_2
|
|
L8_2[1] = L9_2
|
|
L9_2 = L3_2
|
|
L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2)
|
|
if 0 ~= L4_2 then
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.PrintContextLog
|
|
L5_2 = A0_2
|
|
L6_2 = "@@ LUA_WARNING : set_platform_pointArray"
|
|
L4_2(L5_2, L6_2)
|
|
L4_2 = -1
|
|
return L4_2
|
|
end
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.PrintContextLog
|
|
L5_2 = A0_2
|
|
L6_2 = "\231\130\185\233\152\181\231\167\187\229\138\168\230\136\144\229\138\159"
|
|
L4_2(L5_2, L6_2)
|
|
L4_2 = {}
|
|
L4_2.route_type = 0
|
|
L4_2.turn_mode = false
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.SetPlatformPointArray
|
|
L6_2 = A0_2
|
|
L7_2 = L1_1.operation
|
|
L8_2 = L1_1.pointarray_pointer
|
|
L9_2 = {}
|
|
L10_2 = L2_2
|
|
L9_2[1] = L10_2
|
|
L10_2 = L4_2
|
|
L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2)
|
|
if 0 ~= L5_2 then
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.PrintContextLog
|
|
L6_2 = A0_2
|
|
L7_2 = "@@ LUA_WARNING : set_platform_pointArray"
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = -1
|
|
return L5_2
|
|
end
|
|
L5_2 = ScriptLib
|
|
L5_2 = L5_2.PrintContextLog
|
|
L6_2 = A0_2
|
|
L7_2 = "\231\130\185\233\152\181\231\167\187\229\138\168\230\136\144\229\138\159"
|
|
L5_2(L6_2, L7_2)
|
|
L5_2 = 0
|
|
return L5_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_18007 = 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 ~= 18011 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_18011 = L2_1
|
|
function L2_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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetGroupVariableValueByGroup
|
|
L4_2 = A0_2
|
|
L5_2 = "time"
|
|
L6_2 = L2_2
|
|
L7_2 = L1_1.time_group_id
|
|
L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_ENTER_REGION_18011 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = L1_1.sky_compass
|
|
L3_2 = A1_2.param1
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_18012 = L2_1
|
|
function L2_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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetEntityServerGlobalValueByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.sky_compass
|
|
L6_2 = "SGV_Time"
|
|
L7_2 = L2_2
|
|
L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_GADGET_CREATE_18012 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = L1_1.pointer
|
|
L3_2 = A1_2.param1
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_18013 = L2_1
|
|
function L2_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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = {}
|
|
L3_2.route_type = 0
|
|
L3_2.turn_mode = false
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.SetPlatformPointArray
|
|
L5_2 = A0_2
|
|
L6_2 = L1_1.pointer
|
|
L7_2 = L1_1.pointarray
|
|
L8_2 = {}
|
|
L9_2 = L2_2
|
|
L8_2[1] = L9_2
|
|
L9_2 = L3_2
|
|
L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2)
|
|
if 0 ~= L4_2 then
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.PrintContextLog
|
|
L5_2 = A0_2
|
|
L6_2 = "@@ LUA_WARNING : set_platform_pointArray"
|
|
L4_2(L5_2, L6_2)
|
|
L4_2 = -1
|
|
return L4_2
|
|
end
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.PrintContextLog
|
|
L5_2 = A0_2
|
|
L6_2 = "\231\130\185\233\152\181\231\167\187\229\138\168\230\136\144\229\138\159"
|
|
L4_2(L5_2, L6_2)
|
|
L4_2 = 0
|
|
return L4_2
|
|
end
|
|
action_EVENT_GADGET_CREATE_18013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = L1_1.s_compass
|
|
L3_2 = A1_2.param1
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_18014 = L2_1
|
|
function L2_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.GetGroupVariableValueByGroup
|
|
L3_2 = A0_2
|
|
L4_2 = "time"
|
|
L5_2 = L1_1.group_id
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
L3_2 = ScriptLib
|
|
L3_2 = L3_2.SetEntityServerGlobalValueByConfigId
|
|
L4_2 = A0_2
|
|
L5_2 = L1_1.s_compass
|
|
L6_2 = "SGV_Time"
|
|
L7_2 = L2_2
|
|
L3_2(L4_2, L5_2, L6_2, L7_2)
|
|
L3_2 = 0
|
|
return L3_2
|
|
end
|
|
action_EVENT_GADGET_CREATE_18014 = L2_1
|