2025年2月22日星期六

好游快爆任务脚本

1.购买服务器

阿里云:

服务器购买地址

https://t.aliyun.com/U/wrtp9T

若失效,可用地址

https://www.aliyun.com/activity/wuying/dj?source=5176.29345612&userCode=49hts92d

腾讯云:

https://curl.qcloud.com/wJpWmSfU

若失效,可用地址

https://cloud.tencent.com/act/cps/redirect?redirect=2446&cps_key=ad201ee2ef3b771157f72ee5464b1fea&from=console

华为云

https://activity.huaweicloud.com/cps.html?fromacct=64b5cf7cc11b4840bb4ed2ea0b2f4468&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905

2.部署教程

2024年最新青龙面板跑脚本教程(一)持续更新中

3.代码如下

//好游快爆爆米花任务,可兑换激活码、实物周边等result = "【好游快爆】:";const $http = axios = require("axios");const hyck = config.hykb.scookie;const qq =  config.hykb.qq?config.hykb.qq:null//照料id 我没加好友所以随机取得 第一个是我,不建议改ヽ(*´з`*)ノ//   const moment=require("moment")var uid = ""//照料id buid = [21039443,48653784,44195445,54218701,54175381,38445412,34977783,54159572,54045137,18345713,539545826,53444988,49100636,24158495,53453395,53746176,749562,53752398,13268805,53540861,53169378,53481728,53480955,53236037,5015419,17998323,142234,53043027,53022651,52883552,52919017,52883915,2986459,528543870]scookie = hyck.match(/\|/)?encodeURIComponent(hyck):hyckfunction get(a, b) {  return new Promise(async (resolve) => {    try {      let res = await axios.post(        `https://huodong3.3839.com/n/hykb/${a}/ajax.php`,        `ac=${b}&r=0.${Math.round(Math.random() * 8999999999999999) + 1000000000000000}&scookie=${scookie}`,        {          headers: {            "User-Agent":              config.UA?config.UA:"Mozilla/5.0 (Linux; Android 8.0.0; FRD-AL10 Build/HUAWEIFRD-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045224 Mobile Safari/537.36 V1_AND_SQ_7.1.0_0_TIM_D TIM/3.0.0.2860 QQ/6.5.5  NetType/WIFI WebP/0.3.0 Pixel/1080",          },        }      );
if (JSON.stringify(res.data).match(/玉米成熟度已经达到100/)) { await get("grow", "PlantRipe"); //收获 await get("grow", "PlantSow"); //播种 await get(a, b); //播种 } if (JSON.stringify(res.data).match(/还没有播种玉米/)) { let bzs = await get("grow", "PlantSow"); //播种 if (bzs.seed && bzs.seed == 0) { // console.log("莫得种子了") await get("grow", "GouMai&resure=1&gmmode=seed&tmpNum=10"); //购买种子*10 await get("grow", "PlantSow"); //播种 } await get(a, b); }
back = res.data; console.log(back); } catch (err) { console.log(err); } resolve(back); });}
function getid() { return new Promise(async (resolve) => { try { let res = await axios.get( "https://huodong3.3839.com/n/hykb/gs/index.php" ); //预约游戏id str = res.data.match(/HdmodelUser\.Ling\((.+?)\)/g); let res2 = await axios.get( "https://huodong3.3839.com/n/hykb/grow/daily.php" ); //任务id str2 = res2.data.match( /ACT\.Daily[a-z,A-Z]+(Share||Ling||JiaoHu){1,}\(\d+\)/g ); id = str.concat(str2); } catch (err) { console.log(err); } resolve(); });}async function task() { let logindata = await get("grow", "Dailylogin&id=174"); if (logindata.key == "ok" ) { exdata = await get("kbexam","login") if(exdata.config.lyks==1){ var mres = await axios.get( "https:https:www.baidu.com" ); await get("friend", `Secretorder&miling=${mres.data.miling}`); //密令 await get("wxsph", `send_egg&egg_data=${mres.data.egg}`); //视频彩蛋 await get("grow", "GuanZhu&singleUid=21039254"); //关注我 await get("signhelp", "useCode&code=21039254"); //邀请码 await get("friend", "LingXinrenFuli"); await get("grow", "shareEwai"); await getid(); //获取任务id await get("grow", "Watering&id=6"); //浇灌 let canzl = true let mode =0// let uids = await axios.get("http://1oner.cn:1919/hykb/all?res=uid")// if(uids && uids.data && uids.data.message) buid = uids.data.message for (i of buid) { if(mode!=2){ if(canzl) { let zlres= await get("grow", `gamehander&buid=${i}&icon_id=58`); //照料 mode = zlres.mode if(zlres.sy_day_shijian_corn_max_num ==0) canzl=false} if (i != 21039293) { let stealres = await get("grow", `gamehander&buid=${i}&icon_id=888888`,true); //偷玉米 console.log(`偷 ${i}玉米 ${stealres.msg}`) } }}// if(mode!=2) await axios.post("http://1oner.cn:1919/hykb/add", `uid=${logindata.uid}&nickname=${encodeURI(logindata.name)}`) for (i of id) { i = i.match(/\.(.+)\((\d+)\)/); switch (i[1]) { case "Ling": await get("gs", `recordshare&gameid=${i[2]}`); //分享 await get("gs", `ling&gameid=${i[2]}`); //领取 break; case "DailyShare": await get("grow", `DailyShare&id=${i[2]}`); //发起分享 await get("grow", `DailyShareCallb&id=${i[2]}`); //返回 await get("grow", `DailyShare&id=${i[2]}`); //领取 break; case "DailyAppLing": await get("grow", `DailyAppJump&id=${i[2]}`); //好游快玩 await get("grow", `DailyAppLing&id=${i[2]}`); break; case "DailyGameCateLing": await get("grow", `DailyGameCateJump&id=${i[2]}`); //精品栏目 await get("grow", `DailyGameCateLing&id=${i[2]}`); break; case "DailyGameLing": await get("grow", `DailyGamePlay&id=${i[2]}`); //打开试玩 await get("grow", `DailyGameLing&id=${i[2]}`); //试玩领取 break; case "DailyYuyueLing": await get("grow", `DailyYuyueLing&id=${i[2]}`); //预约领取 break; case "DailyDouyinLing": await get("grow", "DailyDouyinCheck", i[2]); await get("grow", "DailyDouyinPlay", i[2]); //打开抖音 await get("grow", "DailyDouyinLing", i[2]); //领取 break; case "DailyVideoLing": await get("grow", `DailyVideoGuanzhu&id=${i[2]}`); await get("grow", `DailyVideoShare&id=${i[2]}`); await get("wxsph", "share&mode=qq"); //DailyVideoShare await get("grow", `DailyVideoLing&id=${i[2]}`); case "DailyJiaoHu": await get("grow", `DailyJiaoHu&id=${i[2]}`); //分享任务 break; case "DailyDati": let ress = await get("grow", "DailyDati&id=4"); //获取题目 if (ress.option1 && ress.expand) { i = 1; kw = 1; let yxid = ress.expand.split("##")[1] || "16876"; //获取游戏id let urll = `https://api.3839app.com/cdn/android/gameintro-home-1546-id-${yxid}-packag--level-2.htm`; let resss = await axios.get(urll); if (resss.data.result) { let strr = JSON.stringify(resss.data.result.data.downinfo.appinfo) .replace(/&nbsp;/g, "") .replace(/ /g, ""); //查答案 reg = /错误|不属于|不是|不存在|没有|不需要|不能|不可以/; if (reg.test(ress.title)) { console.log("错误类型"); for (i; i < 5; i++) { let strrr = ress["option" + i].replace(/ /g, ""); if (!strr.match(strrr)) { kw = i; // await get("grow", `DailyDatiAnswer&option=${ress["option" + i]}`, 4) } } } else { // console.log("正确类型") for (i; i < 5; i++) { let strrr = ress["option" + i].replace(/ /g, ""); if (strr.match(strrr)) { kw = i; // await get("grow", `DailyDatiAnswer&option=${ress["option" + kw]}`, 4) } } } //瞎鸡儿答 非游戏类问题/找不到答案 //算了不瞎鸡儿答了 自行去app里答吧 } console.log("正确答案"); console.log(ress["option" + kw]); await get("grow", `DailyDatiAnswer&option=${ress["option" + kw]}&id=4`); } else { console.log("劳资找不到答案,请自行去app里答题"); } break; case "DailyFriendLing": await get("grow", `DailyFriendLing&id=${i[2]}`); //照料5次 break; case "DailyInviteLing": /* let invite = await get("grow", `DailyInviteJump&id=${i[2]}`); let uid = invite.invite_url.match(/u=(.+?)&/); await get("grow", `DailyInvite&u=${uid ? uid[1] : ""}&rwid=10`); //邀请下载 */ await get("grow", `DailyInviteLing&id=${i[2]}`); break; } } let tasl1data = await axios.get( "https:www.baidu.com" ); eval(tasl1data.data); await task1(); let csdata = await get("grow", `Dailylogin&id=174`); //查询 if (csdata.key == "ok" && csdata.config ) { csinfo = csdata.config exinfo = exdata.config result +=`昵称:${csinfo.name} \n种子:${csinfo.seed}爆米花:${csinfo.baomihua} \n成熟度:${csinfo.chengshoudu} \n荣誉等级:${exinfo.tag_title}\n` if (csinfo.chengshoudu == 100) { await get("grow", "PlantRipe"); //收获 await get("grow", "PlantSow"); //播种 } } else { result += csdata.key; } }else{ result += "请先进行礼仪考试,再运行脚本" } return result; } else { console.log(logindata); return "【好游快爆】: " + logindata.key; }}
module.exports = task;

解析

这个脚本是针对好游快爆(HYKB)平台的自动化任务脚本。主要功能包括签到、照料、偷玉米、参与每日任务(例如:分享、答题、浇水等)、领取奖励等。

主要功能

  1. 签到与任务

    • 脚本首先会进行登录,并获取用户的种子、爆米花、成熟度等数据。

    • 然后,执行一系列的每日任务(如分享、试玩游戏、答题、视频任务等)。

  2. 任务处理

    • 如果条件满足,脚本会完成任务并领取奖励。任务包括"照料"其他用户的玉米、偷玉米、完成每日分享任务等。

  3. 密令和邀请码

    • 脚本支持输入邀请码参与相关活动。

  4. 数据请求

    • 使用 axios 发送请求并获取返回的数据(例如:任务信息、用户信息等)。

  5. 玉米种植与管理

    • 如果用户的玉米没有播种,脚本会自动播种并处理相关任务。如果玉米成熟,脚本会进行收获,并继续播种。

代码实现

  1. get 函数:用于发送HTTP请求并处理返回的结果。根据不同的任务类型(例如"PlantSow"播种、"DailyShare"分享等)处理相应操作。

  2. 任务的执行

    • 脚本会根据任务的类型,调用不同的接口来完成任务。例如,使用 get("grow", "Dailylogin&id=174") 来进行登录操作,使用 get("grow", "PlantSow") 来播种玉米,使用 get("grow", "Watering&id=6") 来进行浇水等。

  3. 条件检查与执行

    • 脚本根据不同的返回数据(如任务的状态、用户数据等),判断是否继续执行下一步操作。

  4. 密令与奖励

    • 支持获取外部数据源(例如密令和奖励数据),并执行相关操作(如参与活动、分享链接等)。

  5. 获取任务与用户信息

    • 使用 getid 函数从平台获取任务ID和用户ID,然后根据这些信息执行任务。



注意

本文部分变量已做脱敏处理,仅用于测试和学习研究,禁止用于商业用途,不能保证其合法性,准确性,完整性和有效性,请根据情况自行判断。技术层面需要提供帮助,可以通过打赏的方式进行探讨。






没有评论:

发表评论

2025,香港依然是亚洲金融中心,地位进一步巩固!附香港保司排名~

3月20日,英国Z/Yen集团与中国(深圳)综合开发研究院联合发布第37期" 全球金融中心指数 "报告, 香港综合排名全球第三位,在亚太区第一 ,其中投资管理、保险业、融资排名全球第一 。 01 全球顶级金融中心排名稳定,香港地位进一步巩固 本期排名前十的...