function c9010248_On_Talk(MapID, InstanceID, TargetID, TargetTypeID, RoleID, TalkIndex) if TalkIndex == -1 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20,930440) --На 4 этаж msg.AddMsgEvent(MsgID, 24, TargetID) msg.AddMsgEvent(MsgID, 21,4) msg.AddMsgEvent(MsgID, 1, 100001) --Ок msg.AddMsgEvent(MsgID, 21,5) msg.AddMsgEvent(MsgID, 1, 100002) --Отмена msg.DispatchRoleMsgEvent(RoleID, MsgID) elseif TalkIndex == 4 then role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52646646, 601, 0, 144) -- Бастион 4 этаж телепорт end end aux.RegisterCreatureEvent(9010248, 7, "c9010248_On_Talk") --玩家在活动中掉线后上线 function s57_7_CanTakeOverWhenOnline(MapID, RoleID) return 52649462, 621, 40, 135 end aux.RegisterMapEvent("s57_7", 12, "s57_7_CanTakeOverWhenOnline") --找到地图的出口和坐标 function s57_7_GetExporMapAndCoord(MapID, InstanceID, RoleID) return 1, 3424073512, 610+math.random(5), 23094, 669+math.random(5) end aux.RegisterMapEvent("s57_7", 13, "s57_7_GetExporMapAndCoord") --找到最合适的副本实例 function s57_7GetOnePerfectMap(MapID, InstanceID, RoleID) return 1 end aux.RegisterMapEvent("s57_7", 14, "s57_7GetOnePerfectMap") --检测玩家是否能够进入活动场景 function s57_7_CanEnter(MapID, InstanceID, RoleID) if role.GetRoleLevel(MapID, InstanceID, RoleID) >= 80 then return 1 else return 0 end end aux.RegisterMapEvent("s57_7", 15, "s57_7_CanEnter") --触发器 function s57_7_OnEnterTrigger(MapID, InstanceID, RoleID, ObjID) if ObjID == 865 then --to s57_6 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52649206, 889, 1, 394) end end aux.RegisterMapEvent("s57_7",6,"s57_7_OnEnterTrigger")