发了一个 关于卡装备 卡会员的技术贴, 但是里面的内容却包含了以后卡装备 卡 所有能卡的东西的未来走向,好吧,下面以是一段源码,希望看不懂的猴子不要喷我.另
申精阿!! 点亮阿!! 置顶阿!!!给分阿!!!不给分不拿鲜花砸我,以后出了工具不发了.... 泪奔.....
关于卡装备、CF会员的理论以及建议 手写原创永久有效 申精! 不置顶么= =-QQ穿越火线 CF http://bbs.houdao.com/r4631349/ 要求置顶!!!
document.domain="qq.com";
//检验cdkey
function checkCDKEY()
{
businessId = getbusinessId($("cdkeyInput").value);
if(MP_CDKEYID_INFO[businessId])
{//输入不同批次的CDKEY都可以刷新mpid
initMPID(MP_CDKEYID_INFO[businessId].mpid);
}
if(MP_CDKEYID_INFO[businessId] && $("cdkeyInput").value.length >= 16)//这里是为了没有大区类型的游戏查询角色
{
if($("innerOutLook_body").innerHTML.indexOf("信息正在加载中") != -1){
$("innerOutLook_body").style.display="none";
}
if(parent.LL_isRealLogined() == false)
parent.LL_submitWrapper(null,{style:2,fromWindow: window,submitFun:function(){changeImg();findCharactor()},openLoginDivOptions:{needMaskDiv: false}});
else
findCharactor();
}
}
function findCharactor()
{
$("charact").innerHTML = "获取角色资料中,请稍候";
if($("gameRegion_select_sub").value != "" && $("cdkeyInput").value.length >= 6)
{
new Ajax.Request("/cgi-bin/content_admin/activity_center/query_role.cgi?game=cf&area="+$("gameRegion_select_sub").value,
{method:"get",
onSuccess:GetCharactordataSucc,onFailure:GetCharactordataFail
})
}
else
{
charactorSelectDispear();
}
}
function GetCharactordataSucc(xhr)
{
//alert(xhr.responseText)
var pos = xhr.responseText.indexOf("var");
eval(xhr.responseText.substr(pos,xhr.responseText.length));
//eval(xhr.responseText);
var CharactorMap = ParseParam(query_role_result.data);
if(query_role_result.retCode != 0)
{
alert(query_role_result.msg);
$("gameRegion_select").value = "";
//subButtonDispear();
charactorSelectDispear();
return;
}
if(CharactorMap["result"] == 0)
{
$("charact").innerHTML=CharactorMap["szNick_name"];
}
else
{
if(CharactorMap["errerno"] == "9003")
{
alert("您在这个大区没有角色,请重新选择");
charactorSelectDispear();
$("gameRegion_select_sub").value = "";
return;
}
failTips();
alert("非常抱歉,角色查询失败,请稍候再试");
}
}
function hidden_infoSubmit()
{
// if(typeflag == 1)
// {
var gameName = "cf";
if(!MP_MPID_INFO[MPID])
{
//alert(MPID);
alert("请输入正确的CDKEY");
return;
}
if($("charact") && $("charact").innerHTML == "获取角色资料中,请稍候")
{
alert("获取角色资料中,请稍候...");
return;
}
if(inputCheck() != -1)
{
if(gameRagionCheck() == -1)
{
return;
}
var goodssetCache = "";
//GoodsCheck();
/*
alert(isSexDiv)
alert(sexArray.length)
alert(sexArray[0]["v"]+":"+sexArray[0]["t"]+"|"+sexArray[1]["v"]+":"+sexArray[1]["t"]+"|"+sexArray[2]["v"]+":"+sexArray[2]["t"]+"|"+sexArray[3]["v"]+":"+sexArray[3]["t"]+"|")
*/
goodssetCache = MP_MPID_INFO[MPID].goodssets[0];
//var AjaxStr = "/comm-cgi-bin/mp/cdkey/mp_exchange.cgi?mpid="+MPID+"&cdkey="+$("cdkeyInput").value+"&goodset="+goodssetCache+"&servercode="+MP_MPID_INFO[MPID].servicecode+"&verifyCode="+$("verifyCode").value+"&aid=21018118";
var AjaxStr = "/comm-cgi-bin/mp/cdkey/mp_exchange.cgi?mpid="+MPID+"&cdkey="+$("cdkeyInput").value+"&goodset="+goodssetCache+"&servercode="+MP_CDKEYID_INFO[businessId].servicecode+"&verifyCode="+$("verifyCode").value+"&aid=21000127";
AjaxStr += "&userdata=zone*"+$("gameRegion_select_sub").value;
//alert(XXRoleName_glo);
//alert(AjaxStr)
new Ajax.Request(AjaxStr,{method:"get",onSuccess:sendGoodsSucc,onFailure:sendGoodsFail});
}
/* }
else if(typeflag == 2)
{
}*/
}
function sendGoodsSucc(xhr)
{
eval(xhr.responseText);
if(result.ret == 0)
{
var itemsinfo;
itemsinfo = MP_GIFT_INFO[MP_MPID_INFO[MPID].goodssets[0]].itemsinfo;
var itemsStr = "";
for(var i=0;i<itemsinfo.length;++i)
{
itemsStr += MP_ITEM_INFO[itemsinfo
.id].desc+itemsinfo.num+"个,";
}
//itemsStr += MP_ITEM_INFO[itemsinfo.id].desc+",";
itemsStr = itemsStr.substr(0,itemsStr.length-1);
alert("恭喜您,物品成功赠送,您已获得"+itemsStr+",请进入游戏确认");
}
else
alert(result.msg);
changeImg();
}[ 此贴被jian514680在2011-05-23 14:02重新编辑 ]