A helper client for Majsoul. Using Mortal AI model.
「死ねば助かるのに………」- 赤木しげる
Ask me anything about this at Discord
中文
Report Bug
.
Request Feature
https://github.com/shinkuan/RandomStuff/assets/35415788/ce1b598d-b1d7-49fe-a175-2fe1bd2bb653
YouTube Video for you to follow.
mortal.pth
. (Get one from Discord server if you don't have one.)
Get mortal.pth at Discord
Download install_akagi.ps1
at Release
install_akagi.ps1
at the location you want to install Akagi.Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
install_akagi.ps1
~/.mitmproxy
mortal.pth
into ./Akagi/mjai/bot
Download install_akagi.command
from Release
install_akagi.command
in the location where you want to install Akagi.install_akagi.command
is located.run_agaki.command
to start Akagi.~/.mitmproxy
.mortal.pth
into ./Akagi/mjai/bot
.Unlocker
: Decide to use MajsoulUnlocker or not.v10
: If your Majsoul client in still in v0.10.x and you want to use MajsoulUnlocker, set it to true.Autoplay
: Autoplay.Helper
: To use mahjong-helper or notAutohu
: Auto Ron.Port
:
MITM
: The MITM Port, you should redirect Majsoul connection to this port.XMLRPC
: The XMLRPC Port.MJAI
: The port bind to MJAI bot container.Playwright
:
enable
: Enable the playwrightwidth
: width of the viewport of playwrightheight
: height of the viewport of playwrightYou can see that there are two flows here, usually the top one is the "Lobby" websocket flow, and the bottom one is the "Game" websocket flow which appears after you join a match.
Click on the bottom flow to start. (It can take a while, click once and wait, don't click it for multiple times)
After you are in the Flow Screen, this is what you should see. On top left is the LiqiProto Message we captured using MITM. The LiqiProto Message is then transcribe to mjai format and send to the bot(AI).
On top right is the MJAI Messages, this is the message our bot sent back to us, indicating the action we should do.
Then below is our tehai, it is composed using unicode characters.
Bottom left is the settings.
Bottom right is the bot's action.
Following guide can minimum the probility of account suspension.
safe_code.js
from Majsoul Mod Plus
ETH Mainnet: 0x83095C4355E43bDFe9cEf2e439F371900664D41F
Paypal or Others: Contact me on Discord.
You can find me at Discord.
Firstly, thank you very much for your willingness to support the author.
I will prioritize the opinions of donors, such as feature requests and bug fixes.
Next, you can find me on Discord, where I will assign you a donor role.
MahjongRepository/mahjong_soul_api
“Commons Clause” License Condition v1.0
The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.
For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.
Software: Akagi
License: GNU Affero General Public License version 3 with Commons Clause
Licensor: shinkuan