A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning Essence.

Overview

Destiny2 Dawning Essence Throne

基于OpenCV-Python的命运2全自动挂机破碎王座刷曙光精华脚本。

万万没想到,我刚写好脚本,棒鸡就更新并修复了这个bug,现在已经刷不了,但还是放上来,做个纪念吧。

准备工作

安装python

首先去Python官网下载python并安装。

注意要点击这个添加python到环境变量的选项

然后随便打开个

安装依赖

首先把整个项目文件夹下载下来,然后打开文件夹,按住shift + 鼠标右键,选择打开powershell

输入:

py

有输出,便是Python安装成功了,然后输入exit()退出。

修改pip的源为阿里云源输入:

py -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

接着安装依赖:

py -m pip install -r requirements.txt

截图

因为是基于OpenCV-Python,那么图肯定是必不可少的。

因为根据每台电脑设置及分辨率不同,截图也不尽相同,为了提高识别效率,建议做好设置后重新截图并按照要求命名。

其中火力战队如果是三人的话,应该截两站图,因为考虑到两个队员加入队伍顺序可能不一样。

如果只有一个队员可以只截一张图,另一张不用管

  • 轨道的导航按钮----navigationBtn.png
  • 目的地幽梦之城----cityBtn.png
  • 破碎王座图标----throneBtn.png
  • 副本开始按钮----startgameBtn.png
  • 轨道火力战队----team.png team2.png
  • ESC后更改角色----switchBtn.png
  • 点击更改角色后确认按钮----confirmBtn.png
  • 切换角色界面角色按钮----roleBtn.png
  • 进入副本后左下角技能----abilities.png
  • 组队错误提示----error.png
  • 组队成功提示----success.png
  • 聊天输入框右边输入法提示----input.png

关于组队失败怎么截图,直接在聊天框输入:

/j 大佬#6666

然后即可看到组队失败了。

进度

车头当然要有破碎王座尾王的死亡进度啦,具体怎么卡这个进度可以去B站搜一下,很简单。

使用

车头

作为车头,也就是工具人视角,拿不到曙光精华的那种。

首先打开游戏,飞回轨道。

按照上面的步骤在文件夹打开powershell,然后输入:

py ./leader.py

再点开游戏窗口(建议将各种画面设置调到最低,并开启窗口模式),就可以了等待队友加入了。

队员

作为队员,首先注意车头的名字。

因为命运2的这个聊天输入框,无法使用pyautogui或者PyKeyboard复制粘贴,绞尽脑汁也不行,所以只能取消救国。

车头为英文名

用记事本打开member.py,将这里的inputCodeEn前的#删除,并在inputCodeCn前加上#,于是变成这样。

if compareImg('./img/input.png') != 0: 
    #inputCodeCn();
    inputCodeEn();

然后修改队伍码,就是这一句:

pg.typewrite('/j bigBro#6666', interval = 0.2);

保存即可。

车头为中文名

首先打开中文输入法,然后一次输入中文名每个字的首字母,再搜寻到完整的中文名,做到只输入首字母就可以打出中文名。

然后用记事本打开member.py,修改这一句的首字母:

pg.typewrite('dl1', interval = 0.2);

这个数字1不要漏了,因为这就是要用到中文输入法。

还要修改为车头的序号:

pg.typewrite('#6666', interval = 0.2);

最后保存。

做完配置后首先打开游戏窗口(建议将各种画面设置调到最低,并开启窗口模式),飞回轨道,并将输入法调到中文,然后按shift使输入法在英文状态(就是按shift输入英文,再按shift又可以输入中文)。

按照上面的方法打开powershell,输入:

py ./member.py

然后再点开游戏窗口即可。

combs is a package used to generate all possible combinations of a given length k on a given set.

The package combs is a package used to generate all possible combinations of a given length k on a given set. The set is given as a list, and k must b

1 Dec 24, 2021
Rofi script to minimize / unminimize multiple windows in qtile

Qminimize Rofi script to minimize / unminimize multiple windows in qtile Additional requirements : EWMH module fuzzywuzzy module How to use it : - Clo

9 Sep 18, 2022
A dashboard for your code. A build system.

NOTICE: THIS REPO IS NO LONGER UPDATED Changes Changes is a build coordinator and reporting solution written in Python. The project is primarily built

Dropbox 763 Sep 09, 2022
A python tool that creates issues in your repos based on TODO comments in your code

Krypto A neat little sidekick python script to create issues on your repo based on comments left in the code on your behalf Convert todo comments in y

Alex Antoniou 4 Oct 26, 2021
Anonfiles files leaker via keyword.

Anonfiles files leaker via keyword

Trac3D1y 6 Nov 23, 2022
A visidata plugin for parsing f5 ltm/gtm/audit logs

F5 Log Visidata Plugin This plugin supports the default log format for: /var/log/ltm* /var/log/gtm* /var/log/apm* /var/log/audit* It extracts common l

James Deucker 1 Jan 06, 2022
LinkScope allows you to perform online investigations by representing information as discrete pieces of data, called Entities.

LinkScope Client Description This is the repository for the LinkScope Client Online Investigation software. LinkScope allows you to perform online inv

108 Jan 04, 2023
MODSKIN-LOLPRO-updater: The mod is fkn 10y old and has'nt a self-updater

The mod is fkn 10y old and has'nt a self-updater. To use it just run the exec, wait some seconds, and it will run the new modsk

Shiro Amurha 3 Apr 23, 2022
Kubernetes-native workflow automation platform for complex, mission-critical data and ML processes at scale. It has been battle-tested at Lyft, Spotify, Freenome, and others and is truly open-source.

Flyte Flyte is a workflow automation platform for complex, mission-critical data, and ML processes at scale Home Page · Quick Start · Documentation ·

Flyte 3k Jan 01, 2023
OpenTracing API for Python

OpenTracing API for Python This library is a Python platform API for OpenTracing. Required Reading In order to understand the Python platform API, one

OpenTracing API 767 Dec 16, 2022
A working roblox account generator it doesnt bypass the capcha stuff cuz these didnt showed up in my test runs

A working roblox account generator (state 11.5.2021) it doesnt bypass the capcha stuff cuz these didnt showed up in my test runs

TerrificTable 22 Jan 03, 2023
YBlade - Import QBlade blades into Fusion 360

YBlade - Import QBlade blades into Fusion 360 Simple script for Fusion 360 that takes QBlade blade description and constructs the blade: Usage First,

Jan Mrázek 37 Sep 25, 2022
Vaccine for STOP/DJVU ransomware, prevents encryption

STOP/DJVU Ransomware Vaccine Prevents STOP/DJVU Ransomware from encrypting your files. This tool does not prevent the infection itself. STOP ransomwar

Karsten Hahn 16 May 31, 2022
Example of my qtile config using the gruvbox colorscheme.

QTILE config Example of my qtile config using the gruvbox colorscheme. unicodes.py unicodes.py returns a widget.TextBox with a unicode. Currently it c

Imanuel Febie 31 Jan 02, 2023
Python script to commit to your github for a perfect commit streak. This is purely for education purposes, please don't use this script to do bad stuff.

Daily-Git-Commit Commit to repo every day for the perfect commit streak Requirments pip install -r requirements.txt Setup Download this repository. Cr

JareBear 34 Dec 14, 2022
NExT-Ford-aula4 - NExT Ford aula4

Questão 1: vocês deveram fazer o passo a passo de como ficará as pilhas(Stack) e

Gerson 1 Jan 06, 2022
BestBuy Script Designed to purchase any item when it becomes available.

prerequisites: Selnium; undetected-chromedriver. This Script is designed to order an Item provided a link from BestBuy.com only.

Bransen Smith 0 Jan 12, 2022
Lightweight and Modern kernel for VK Bots

This is the kernel for creating VK Bots written in Python 3.9

Yrvijo 4 Nov 21, 2021
An optional component handler for hikari, inspired by discord.py's views.

hikari-miru An optional component handler for hikari, inspired by discord.py's views.

43 Dec 26, 2022
Small Arrow Vortex clipboard processing library

Description Small Arrow Vortex clipboard processing library. Install You can install this library from PyPI with pip install av-clipboard-lib or compi

Delta Epsilon 1 Dec 18, 2021