Commit e7cb34cc authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent eb05875f
!function(){
const inject = function() {
if (uiscript.UI_PlayerInfo.Inst && uiscript.UI_OtherPlayerInfo.Inst && uiscript.UI_PlayerInfo.Inst.show && uiscript.UI_OtherPlayerInfo.Inst.show && uiscript.UI_PlayerInfo.Inst.detail_data.blocks[0].show && uiscript.UI_OtherPlayerInfo.Inst.detail_data.blocks[0].show && view.ActionHule.play) {
console.log("Majsoul Helper injected.");
uiscript.UI_InfoLite.Inst.show("在此敬告您\n您已经开启了挂机脚本\n请确定您是否需要本脚本\n如果不需要请在雀魂P内关闭");
for (const key in view.DesktopMgr.Inst.actionMap) {
const action = view.DesktopMgr.Inst.actionMap[key];
const m = action.method;
action.method = (e) => {
setTimeout(() => analyseOperation(e), 500);
return m(e);
};
}
} else setTimeout(inject, 1000);
// uiscript.UI_GameEnd.prototype.show = () => game.Scene_MJ.Inst.GameEnd();
// uiscript.UI_PiPeiYuYue.Inst.addMatch(2);
}
const analyseOperation = function(e) {
const action = e.msg;
if (action.hasOwnProperty("md5")) {
setTimeout(() => {
view.DesktopMgr.Inst.setAutoHule(true);
view.DesktopMgr.Inst.setAutoMoQie(true);
view.DesktopMgr.Inst.setAutoNoFulu(true);
uiscript.UIMgr.Inst._ui_desktop.refreshFuncBtnShow(uiscript.UIMgr.Inst._ui_desktop._container_fun.getChildByName("btn_autohu"), 1);
}, 2000)
}
}
inject();
console.log("auto hule inited");
}()
{
"id": "autohule",
"version": "2.0.0",
"name": "挂机人",
"author": ["一坨开发者"],
"description": "副露怪.exe 已停止运行。",
"preview": "preview.png",
"entry": "autohule.js",
"applyServer": [0]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment