通过修改JS选取LOL新手活动中指定英雄

作为一个技术宅,我竟然不知道,有点说不过去,这个活动新出的,刚好我在四区练小号,一直想要瑞文,没找到。就是下面这个活动:
000.png

不废话,先随便选,知道出现三个英雄,并没有瑞文。按f12可以发现并没有请求记录,也就是说是在浏览器计算好的。
001.png
看一下,下面那个图片,会js的就差不多知道了,第一个数字6不知道什么意思,第二个是英雄代码,第三个英雄名称,不知道有没有一起发送过去,为了保险,也一起修改一下,修改成下面的样子

002.png
修改后:
004.png
点击豹女,但是提示本命英雄是瑞文:
005.png
选取之后:
006.png
007.png

哈哈,成功了,这个并不是我发现的,网上已经有代码,但并没有说明方法,作者很低调,下面贴一下修改代码:

var heroall=[
["1" ,"黑暗之女" ,"安妮" ,"fs" ,"fz" ,0],
["2" ,"狂战士" ,"奥拉夫" ,"zs" ,"tk" ,0],
["3" ,"哨兵之殇" ,"加里奥" ,"tk" ,"fs" ,0],
["4" ,"卡牌大师" ,"崔斯特" ,"fs" ,"" ,0],
["5" ,"德邦总管" ,"赵信" ,"zs" ,"ck" ,0],
["6" ,"首领之傲" ,"厄加特" ,"ss" ,"zs" ,0],
["7" ,"诡术妖姬" ,"乐芙兰" ,"ck" ,"fs" ,0],
["8" ,"猩红收割者" ,"弗拉基米尔" ,"fs" ,"tk" ,0],
["9" ,"末日使者" ,"费德提克" ,"fs" ,"fz" ,0],
["10" ,"审判天使" ,"凯尔" ,"zs" ,"fz" ,0],
["11" ,"无极剑圣" ,"易" ,"ck" ,"zs" ,0],
["12" ,"牛头酋长" ,"阿利斯塔" ,"tk" ,"fz" ,0],
["13" ,"符文法师" ,"瑞兹" ,"fs" ,"zs" ,0],
["14" ,"亡灵勇士" ,"赛恩" ,"zs" ,"tk" ,0],
["15" ,"战争女神" ,"希维尔" ,"ss" ,"" ,0],
["16" ,"众星之子" ,"索拉卡" ,"fz" ,"fs" ,0],
["17" ,"迅捷斥候" ,"提莫" ,"ss" ,"ck" ,0],
["18" ,"麦林炮手" ,"崔丝塔娜" ,"ss" ,"" ,0],
["19" ,"嗜血猎手" ,"沃里克" ,"zs" ,"tk" ,0],
["20" ,"雪人骑士" ,"努努" ,"fz" ,"zs" ,0],
["21" ,"赏金猎人" ,"厄运小姐" ,"ss" ,"" ,0],
["22" ,"寒冰射手" ,"艾希" ,"ss" ,"fz" ,0],
["23" ,"蛮族之王" ,"泰达米尔" ,"zs" ,"ck" ,0],
["24" ,"武器大师" ,"贾克斯" ,"zs" ,"ck" ,0],
["25" ,"堕落天使" ,"莫甘娜" ,"fs" ,"fz" ,0],
["26" ,"时光守护者" ,"基兰" ,"fz" ,"fs" ,0],
["27" ,"炼金术士" ,"辛吉德" ,"tk" ,"zs" ,0],
["28" ,"寡妇制造者" ,"伊芙琳" ,"ck" ,"fs" ,0],
["29" ,"瘟疫之源" ,"图奇" ,"ss" ,"ck" ,0],
["30" ,"死亡颂唱者" ,"卡尔萨斯" ,"fs" ,"" ,0],
["31" ,"虚空恐惧" ,"科加斯" ,"tk" ,"fs" ,0],
["32" ,"殇之木乃伊" ,"阿木木" ,"tk" ,"fs" ,0],
["33" ,"披甲龙龟" ,"拉莫斯" ,"tk" ,"zs" ,0],
["34" ,"冰晶凤凰" ,"艾尼维亚" ,"fs" ,"fz" ,0],
["35" ,"恶魔小丑" ,"萨科" ,"ck" ,"打野" ,0],
["36" ,"祖安狂人" ,"蒙多医生" ,"zs" ,"tk" ,0],
["37" ,"琴瑟仙女" ,"娑娜" ,"fz" ,"fs" ,0],
["38" ,"虚空行者" ,"卡萨丁" ,"ck" ,"fs" ,0],
["39" ,"刀锋意志" ,"艾瑞莉娅" ,"zs" ,"ck" ,0],
["40" ,"风暴之怒" ,"迦娜" ,"fz" ,"fs" ,0],
["41" ,"海洋之灾" ,"普朗克" ,"zs" ,"fz" ,0],
["42" ,"英勇投弹手" ,"库奇" ,"ss" ,"" ,0],
["43" ,"天启者" ,"卡尔玛" ,"fs" ,"fz" ,0],
["44" ,"瓦洛兰之盾" ,"塔里克" ,"fz" ,"zs" ,0],
["45" ,"邪恶小法师" ,"维迦" ,"fs" ,"" ,0],
["48" ,"巨魔之王" ,"特朗德尔" ,"zs" ,"tk" ,0],
["50" ,"策士统领" ,"斯维因" ,"fs" ,"zs" ,0],
["51" ,"皮城女警" ,"凯特琳" ,"ss" ,"" ,0],
["53" ,"蒸汽机器人" ,"布里茨" ,"tk" ,"zs" ,0],
["54" ,"熔岩巨兽" ,"墨菲特" ,"tk" ,"zs" ,0],
["55" ,"不祥之刃" ,"卡特琳娜" ,"ck" ,"fs" ,0],
["56" ,"永恒梦魇" ,"魔腾" ,"ck" ,"zs" ,0],
["57" ,"扭曲树精" ,"茂凯" ,"tk" ,"fs" ,0],
["58" ,"荒漠屠夫" ,"雷克顿" ,"zs" ,"tk" ,0],
["59" ,"德玛西亚皇子" ,"嘉文四世" ,"tk" ,"zs" ,0],
["60" ,"蜘蛛女皇" ,"伊莉丝" ,"fs" ,"zs" ,0],
["61" ,"发条魔灵" ,"奥莉安娜" ,"fs" ,"fz" ,0],
["62" ,"齐天大圣" ,"孙悟空" ,"zs" ,"tk" ,0],
["63" ,"复仇焰魂" ,"布兰德" ,"fs" ,"" ,0],
["64" ,"盲僧" ,"李青" ,"zs" ,"ck" ,0],
["67" ,"暗夜猎手" ,"薇恩" ,"ss" ,"ck" ,0],
["68" ,"机械公敌" ,"兰博" ,"zs" ,"fs" ,0],
["69" ,"魔蛇之拥" ,"卡西奥佩娅" ,"fs" ,"" ,0],
["72" ,"水晶先锋" ,"斯卡纳" ,"zs" ,"tk" ,0],
["74" ,"大发明家" ,"黑默丁格" ,"fs" ,"fz" ,0],
["75" ,"沙漠死神" ,"内瑟斯" ,"zs" ,"tk" ,0],
["76" ,"狂野女猎手" ,"奈德丽" ,"ck" ,"zs" ,0],
["77" ,"兽灵行者" ,"乌迪尔" ,"zs" ,"tk" ,0],
["78" ,"钢铁大使" ,"波比" ,"tk" ,"zs" ,0],
["79" ,"酒桶" ,"古拉加斯" ,"zs" ,"fs" ,0],
["80" ,"战争之王" ,"潘森" ,"zs" ,"ck" ,0],
["81" ,"探险家" ,"伊泽瑞尔" ,"ss" ,"fs" ,0],
["82" ,"铁铠冥魂" ,"莫德凯撒" ,"zs" ,"fs" ,0],
["83" ,"掘墓者" ,"约里克" ,"zs" ,"tk" ,0],
["84" ,"暗影之拳" ,"阿卡丽" ,"ck" ,"" ,0],
["85" ,"狂暴之心" ,"凯南" ,"fs" ,"ss" ,0],
["86" ,"德玛西亚之力" ,"盖伦" ,"zs" ,"tk" ,0],
["89" ,"曙光女神" ,"蕾欧娜" ,"tk" ,"fz" ,0],
["90" ,"虚空先知" ,"玛尔扎哈" ,"fs" ,"ck" ,0],
["91" ,"刀锋之影" ,"泰隆" ,"ck" ,"zs" ,0],
["92" ,"放逐之刃" ,"锐雯" ,"zs" ,"ck" ,0],
["96" ,"深渊巨口" ,"克格莫" ,"ss" ,"fs" ,0],
["98" ,"暮光之眼" ,"慎" ,"tk" ,"zs" ,0],
["99" ,"光辉女郎" ,"拉克丝" ,"fs" ,"fz" ,0],
["101" ,"远古巫灵" ,"泽拉斯" ,"fs" ,"ck" ,0],
["102" ,"龙血武姬" ,"希瓦娜" ,"zs" ,"tk" ,0],
["103" ,"九尾妖狐" ,"阿狸" ,"fs" ,"ck" ,0],
["104" ,"法外狂徒" ,"格雷福斯" ,"ss" ,"" ,0],
["105" ,"潮汐海灵" ,"菲兹" ,"ck" ,"zs" ,0],
["106" ,"雷霆咆哮" ,"沃利贝尔" ,"zs" ,"tk" ,0],
["107" ,"傲之追猎者" ,"雷恩加尔" ,"ck" ,"zs" ,0],
["110" ,"惩戒之箭" ,"韦鲁斯" ,"ss" ,"" ,0],
["111" ,"深海泰坦" ,"诺提勒斯" ,"tk" ,"zs" ,0],
["112" ,"机械先驱" ,"维克托" ,"fs" ,"" ,0],
["113" ,"凛冬之怒" ,"瑟庄妮" ,"tk" ,"zs" ,0],
["114" ,"无双剑姬" ,"菲奥娜" ,"zs" ,"ck" ,0],
["115" ,"爆破鬼才" ,"吉格斯" ,"fs" ,"" ,0],
["117" ,"仙灵女巫" ,"璐璐" ,"fz" ,"fs" ,0],
["119" ,"荣耀行刑官" ,"德莱文" ,"ss" ,"" ,0],
["120" ,"战争之影" ,"赫卡里姆" ,"zs" ,"tk" ,0],
["121" ,"虚空掠夺者" ,"卡’兹克" ,"ck" ,"zs" ,0],
["122" ,"诺克萨斯之手" ,"德莱厄斯" ,"zs" ,"tk" ,0],
["126" ,"未来守护者" ,"杰斯" ,"zs" ,"ss" ,0],
["127" ,"冰霜女巫" ,"丽桑卓" ,"fs" ,"" ,0],
["131" ,"皎月女神" ,"黛安娜" ,"zs" ,"fs" ,0],
["133" ,"德玛西亚之翼" ,"奎因" ,"ss" ,"zs" ,0],
["134" ,"暗黑元首" ,"辛德拉" ,"fs" ,"fz" ,0],
["143" ,"荆棘之兴" ,"婕拉" ,"fs" ,"fz" ,0],
["150" ,"迷失之牙" ,"纳尔" ,"zs" ,"ss" ,0],
["154" ,"生化魔人" ,"扎克" ,"tk" ,"zs" ,0],
["157" ,"疾风剑豪" ,"亚索" ,"zs" ,"ck" ,0],
["161" ,"虚空之眼" ,"维克兹" ,"fs" ,"" ,0],
["201" ,"弗雷尔卓德之心" ,"布隆" ,"fz" ,"tk" ,0],
["222" ,"暴走萝莉" ,"金克丝" ,"ss" ,"" ,0],
["223" ,"河流之王" ,"塔姆" ,"fz" ,"tk" ,0],
["236" ,"圣枪游侠" ,"卢锡安" ,"ss" ,"" ,0],
["238" ,"影流之主" ,"劫" ,"ck" ,"zs" ,0],
["245" ,"时间刺客" ,"艾克" ,"ck" ,"zs" ,0],
["254" ,"皮城执法官" ,"蔚" ,"zs" ,"ck" ,0],
["266" ,"暗裔剑魔" ,"亚托克斯" ,"zs" ,"tk" ,0],
["267" ,"唤潮鲛姬" ,"娜美" ,"fz" ,"fs" ,0],
["268" ,"沙漠皇帝" ,"阿兹尔" ,"fs" ,"ss" ,0],
["412" ,"魂锁典狱长" ,"锤石" ,"fz" ,"zs" ,0],
["421" ,"虚空遁地兽" ,"雷克赛" ,"zs" ,"" ,0],
["429" ,"复仇之矛" ,"卡莉丝塔" ,"ss" ,"" ,0],
["432" ,"星界游神" ,"巴德" ,"fz" ,"fs",0]
];

20170101活动

腾讯又出这个活动,刚刚研究了一下发现,还是有些地方要注意的。
首先,你要看你回答问题的数量,6个问题是全部英雄都可以领,回答4个问题,只能领下面hero1,hero2,hero3这三个数组里面的英雄。回答两个问题就是hero1和hero2,回答一个问题就是hero1数组里面的英雄。

var hero1=['1','115','99','25','74','37','110','17','21','22','15','51','5','11','54','62','86','122'];

var hero2=['117','63','16','26','30','131','18','104','236','126','96','81','20','75','19','106','59','36'];

var hero3=['53','45','23','222','58','268','12','24','55','412','111','89','105','134','38','4','29','201','83','13','60','114','32','80','84','27','98','33'];

f12可以打开调试器,然后在调试器,输入一下代码,a为回答问题的数量,1,2,4,6,b为英雄代码,下面找取你要的英雄。

SelHero(a,b,"确定即可")

SelHero.png
ez二十八天.png

最新活动地址:http://lol.qq.com/act/a20161008call/?e_code=291795&atm_cl=ad&atm_pos=6409