QQ宠物企鹅新版另类的获取方法【欢迎大家研究】
本帖最后由 6232677 于 2009-5-29 22:13 编辑先上图,先声明我不是很懂。有待高手一起研究研究。 已经过了21点了
我想把时间改掉 不限时的去抽奖,研究中。
http://bbs.weet.com.cn/home/attachment/200905/29/59489_1243603721LYMb.jpg
http://bbs.weet.com.cn/home/attachment/200905/29/59489_1243603733yBX8.jpg
其中有一句很明显
http://web.pet.qq.com/fcgi-bin/getpet?sex=" + sex + "&localtime=" + Math.random
sex 0 男1女
localtime检测当前时间是否是活动时间 (或许可以修改成 不限时)
(使用方法 : )先打开 http://web.pet.qq.com/getpet/index.htm
登陆
然后
再新开一个页面打开http://web.pet.qq.com/fcgi-bin/getpet?sex....(自行测试)下面是主要部分的XML代码// Action script...
//
stop ();
Mouse.show();
//
function checkEgg()
{
Mouse.show();
Mouse.removeListener(mm);
disAll.gotoAndStop(2);
mainXML = new XML();
mainXML.load("http://web.pet.qq.com/fcgi-bin/getpet?sex=" + sex + "&localtime=" + Math.random());
mainXML.ignoreWhite = true;
mainXML.onLoad = function (success)
{
if (success)
{
ret = this.firstChild.childNodes.firstChild.nodeValue;
msg = this.firstChild.childNodes.firstChild.nodeValue;
trace (msg);
if (ret == 0)
{
disAll.gotoAndStop(1);
gotoAndStop("eggShow");
}
else if (ret == 9)
{
disAll.gotoAndStop(3);
}
else
{
disAll.gotoAndStop(5);
} // end else if
} // end else if
};
} // End of the function
Mouse.hide();
mm = {};
arr._x = _xmouse;
arr._y = _ymouse;
mm.onMouseMove = function ()
{
arr._x = _xmouse;
arr._y = _ymouse;
};
Mouse.addListener(mm);
//
arr.gotoAndPlay(2);
Mouse.show();
stop ();
//
stop ();
mainXML.onLoad = function (success) 这句应该是决定 是否抽中宠物
Math.random这个是随即数值 要100%中奖 应该从这入手
直接跳到 中奖的代码 我汗。。发错区了
麻烦帮转到 宠物区 这是JAVA吧? Math.random=random
表示返回一个伪随机数 n,就是说,0表示失败,1表示成功.
如:random(10)
产生一个0-9之间的随机数。
那么random(1)
我也不是很明白! /:A027?好麻烦啊.. 呵呵新版企鹅没啥好玩滴 呵呵新版企鹅没啥好玩滴 本帖最后由 6232677 于 2009-5-30 06:21 编辑
4# saturday
到时间段 我用众多小号去测试下
应该至少2个数才行把那也有2份1的几率 很足够了。
总好过当 开罐之王 我汗。。发错区了
麻烦帮转到 宠物区 昨天好多人都得到了
页:
[1]
2