--????????????????? function s57_6_CanTakeOverWhenOnline(MapID, RoleID) return 52649206, 211, 20, 476 end aux.RegisterMapEvent("s57_6", 12, "s57_6_CanTakeOverWhenOnline") --???????????????? function s57_6_GetExporMapAndCoord(MapID, InstanceID, RoleID) return 1, 3424073512, 610+math.random(5), 23094, 669+math.random(5) end aux.RegisterMapEvent("s57_6", 13, "s57_6_GetExporMapAndCoord") --??????????????? function s57_6GetOnePerfectMap(MapID, InstanceID, RoleID) return 1 end aux.RegisterMapEvent("s57_6", 14, "s57_6GetOnePerfectMap") --????????????????????? function s57_6_CanEnter(MapID, InstanceID, RoleID) if role.GetRoleLevel(MapID, InstanceID, RoleID) >= 80 then return 1 else return 0 end end aux.RegisterMapEvent("s57_6", 15, "s57_6_CanEnter") --?????? function s57_6_OnEnterTrigger(MapID, InstanceID, RoleID, ObjID) if ObjID == 743 then --to s57_5 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52649974, 390, 1, 274) elseif ObjID == 746 then --to s57_7 role.RoleGotoNewMap(MapID, InstanceID, RoleID, 52649462, 621, 0, 135) else S57_TryTeleportRole(MapID, InstanceID, RoleID) end end aux.RegisterMapEvent("s57_6",6,"s57_6_OnEnterTrigger") function s57_6_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_6", 2, "s57_6_PlayerEnter") function s57_6_OnInit(MapID, InstanceID, CreatureID, CreatureTypeID) S57_StartPortalTimer(MapID, InstanceID) end aux.RegisterMapEvent("s57_6", 0, "s57_6_OnInit")