--??? function c5610071_On_Talk(MapID, InstanceID, TargetID, TargetTypeID, RoleID, TalkIndex) if TalkIndex == -1 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 20, 444301) --??????????? 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, 52648438, 269, 208, 257) end end aux.RegisterCreatureEvent(5610071, 7, "c5610071_On_Talk") --????????????????? function s57_4_CanTakeOverWhenOnline(MapID, RoleID) return 52648438, 250+math.random(5), 10400, 257+math.random(5) end aux.RegisterMapEvent("s57_4", 12, "s57_4_CanTakeOverWhenOnline") --??????????????? function s57_4GetOnePerfectMap(MapID, InstanceID, RoleID) return 1 end aux.RegisterMapEvent("s57_4", 14, "s57_4GetOnePerfectMap") --????????????????????? function s57_4_CanEnter(MapID, InstanceID, RoleID) if role.GetRoleLevel(MapID, InstanceID, RoleID) >= 80 then return 1 else return 0 end end aux.RegisterMapEvent("s57_4", 15, "s57_4_CanEnter") --???????????????? function s57_4_GetExporMapAndCoord(MapID, InstanceID, RoleID) return 1, 3424073512, 610+math.random(5), 23094, 669+math.random(5) end aux.RegisterMapEvent("s57_4", 13, "s57_4_GetExporMapAndCoord") function s57_4_PlayerEnter(MapID, InstanceID, RoleID) if s57_ApplyCrystalBuff ~= nil then s57_ApplyCrystalBuff(MapID, InstanceID, RoleID) end end aux.RegisterMapEvent("s57_4", 2, "s57_4_PlayerEnter")