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) else S57_TryTeleportRole(MapID, InstanceID, RoleID) end end aux.RegisterMapEvent("s57_7",6,"s57_7_OnEnterTrigger") function s57_7_PlayerEnter(MapID, InstanceID, RoleID) if s57_ApplyCrystalBuff ~= nil then s57_ApplyCrystalBuff(MapID, InstanceID, RoleID) end S57_GrantPortalGrace(RoleID) S57_StartPortalTimer(MapID, InstanceID) end aux.RegisterMapEvent("s57_7", 2, "s57_7_PlayerEnter") function s57_7_OnInit(MapID, InstanceID, CreatureID, CreatureTypeID) S57_StartPortalTimer(MapID, InstanceID) end aux.RegisterMapEvent("s57_7", 0, "s57_7_OnInit")