大家好,我是考100分的小小码 ,祝大家学习进步,加薪顺利呀。今天说一说2022年了,你还在手动挖矿吗?3分钟海底掘金直通攻略「终于解决」,希望您对编程的造诣更进一步.
每天只花3分钟,新的一年祝大家省下更多时间用来找对象
!
开始准备
-
为避免浪费前期非常重要的代码块,开局前要先进入浏览器
F12控制台
-
角色选择最好选
+跳跃
那个,前期优势会比较大,进去之后,先执行一个↑ 代码块
-
在
控制台
的Network
中找到以下接口:
- 记录 request headers 里的
authorization
和x-tt-gameid
,以及地址栏中的uid
根据掘友反馈的异常问题,统一补充说明:
每局的
authorization
和x-tt-gameid
参数是不一样的,需要重新获取和修改
自动化阶段
1. 复制以下代码到记事本
,并将自定义区域
的参数补充完整
2. 将补充完整的代码复制到控制台
,按回车执行!
每次执行时需要修改commandStep
的值,执行顺序依次为【前期、中期、后期】,运气好的话中期就完成任务上限了哦!
如果提示XXX代码块不足
,需要把执行步骤作降级处理(例如后期出现该提示,则执行中期或前期),如果降级到前期后依旧出现该提示,则考虑直接开下一局(推荐 )或者手动获取缺失的代码块!
await (async function letUsGo(){
// ····················自定义区域·START···················
// 你的uid
let uid = '';
// request header 中的 authorization
let authorization = '';
// request header 中的 x-tt-gameid
let gameid = '';
// 0:开局往左 1:开局往右 2:中期 3:后期飞翔 4:后期扫荡
let commandStep = 0;
// ····················自定义区域·END·····················
let commandArr = [
// 开局往左
[{"times":2,"command":["2","L","D","L","4","D","6","R","D","R"]}],
// 开局往右
[{"times":2,"command":["2","R","D","R","6","D","4","L","D","L"]}],
// 中期
[{"times":10,"command":[{"times":2,"command":["D","2","L","D","L","4","D","6","U","L","D","R"]},"L","D"]},{"times":2,"command":["U","U","8","R"]},{"times":10,"command":[{"times":2,"command":["D","2","R","D","R","6","D","4","U","R","D","L"]},"R","D"]},{"times":2,"command":["U","U","8","L"]}],
// 后期:万米飞翔
[{"times":10,"command":[{"times":2,"command":["D","2","L","D","L","4","D","6","U","L","D","R"]},"L","D"]},{"times":2,"command":["U","U","8","R"]},{"times":10,"command":[{"times":2,"command":["D","2","R","D","R","6","D","4","U","R","D","L"]},"R","D"]},{"times":2,"command":["U","U","8","L"]}],
// 后期:无情扫荡
[{"times":10,"command":["L","L","L","4","L","L","L","4","D","R","R","R","6","R","R","R","6"]},{"times":3,"command":["U","U","L","L","8","4"]},{"times":6,"command":["D","2","L","D","L","4","D","6","U","L","D","R"]},"L","D",{"times":10,"command":["R","R","R","6","R","R","R","6","D","L","L","L","4","L","L","L","4"]},{"times":3,"command":["U","U","R","R","8","6"]},{"times":6,"command":["D","2","R","D","R","6","D","4","U","R","D","L"]},"R","D"]
];
let coreCode = commandArr[commandStep];
let loop = commandStep <= 1 ? 2 : 4;
let params = {"command": []};
let linshiyinyong = params;
for (let i = 0;i<loop;i++){
linshiyinyong['command'].push({"times": 10, "command": []});
linshiyinyong = linshiyinyong.command[0];
if (i >= loop-1) {
linshiyinyong.command.push(...coreCode);
}
}
linshiyinyong = null;
let datarus = await fetch('https://juejin-game.bytedance.com/game/sea-gold/game/command?uid=' + uid + '&time=' + Date.parse(new Date()), {
method: 'POST',
credentials: "include",
headers: {
'Content-type': 'application/json; charset=UTF-8',
'authorization': authorization,
'accept': 'application/json, text/plain, */*',
'content-length': JSON.stringify(params).length,
'x-tt-gameid': gameid,
},
body: JSON.stringify(params)
}).then(async (res) => {
return res.json();
});
return datarus;
})();
从理论上来说,这个脚本只是省去了手动放置代码块
和等待动画
的过程,只要手动能玩,它就能用!
小技巧:
每执行完一次最好刷新看看有没有卡地形,如果有的话需要手动控制角色走出去,再下一阶段
最后结语
都看到这里了,您就给我 点个赞
吧!!!
有问题直接问我就好,祝大家都能换点限量徽章🙄🙄🙄,挂在包包上!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/13538.html