新萤火虫论坛

 找回密码
 注册
查看: 2595|回复: 14

[交流] 写个挂有多难。。。。

[复制链接]
发表于 2009-2-9 12:38:09 | 显示全部楼层 |阅读模式
吃饭的时候 嘴忙 脑子闲 进了野战 看了看源码。。。。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type"  content="text/html; charset=gbk">
<meta http-equiv="cache-control" content="no-cache,must-revalidate">
<title>合理适度游戏,享受健康生活</title>
<script type="text/javascript">var boardurl= 'http://xyhc.com/';</script>
<script src="wxpet/js/ajax.js" type="text/javascript" type="text/javascript"></script>
<script src="wxpet/js/fight.js" type="text/javascript" type="text/javascript"></script>
<script type="text/javascript">
var boardurl= 'http://xyhc.com/';
var petimgpath='file:///d:/game';
var magiclist="<img src=file:///d:/game/skill/commonf.jpg border=0 alt='普通攻击(L)' onclick=\"javascript:pknpc('noskill');\" style='cursor:pointer;'/> <img  src=file:///d:/game/skill/light.jpg border=0 alt='光斩' onclick=\"javascript:pknpc('mlight');\" style='cursor:pointer;'/> <img src=file:///d:/game/skill/lightbomb.jpg border=0 alt='光爆术(Y)' onclick=\"javascript:pknpc('mlightbomb');\" style='cursor:pointer;'/> ";
var autopk=autofind=autosell=false;
var pkcode="9875";
var autoskill='';
function keydown(e){
var keycode=window.event ? e.keyCode:e.which;
if(keycode==27) return false;
if((keycode==76 || keycode==108) && $('fightshow').style.display==''){return pknpc('noskill');}if((keycode==65 || keycode==97) && $('fightshow').style.display==''){return callmagicajax('callmsleep');}if((keycode==89 || keycode==121) && $('fightshow').style.display==''){return pknpc('mlightbomb');}if(keycode==49 && $('fightshow').style.display==''){return itemuseajax(3717);}if(keycode==50 && $('fightshow').style.display==''){return itemuseajax(3825);}if(keycode==51 && $('fightshow').style.display==''){return itemuseajax(2764);}return true;
}
</script>
<link rel="stylesheet" type="text/css" id="css" href="wxpet/css/pet.css">
</head>
<body onkeydown="keydown(event)">
<div align="center" id="checkshow" style="display:none;">
<table cellspacing=0 cellpadding=5 width="98%" border=0 align="center" class="tableborder">
<tr><td class="header" align="center">请在90秒内完成本次验证,本次验证开始时间:<span id="othershow1"></span></td></tr>
<tr><td align="center" style="height:50px;"><div align="center"><br>
<span onClick="updatecode()" style="cursor:pointer;" id='authimg'></span><br><br>
<b>请输入上面的验证码:</b><input type="text" name="keycode" id="keycode" maxlength="4" size="10"  onkeydown="if(event.keyCode == 13){doajax('check');}" class="input"/>&nbsp;&nbsp;
<button type="button1" name="button1" value="" class="button" onClick="doajax('check')">提交验证</button>
<br><br></div></td></tr>
</table>
</div>

<div align="center" id="othershow" style="display:none;">
<table cellspacing=0 cellpadding=5 width="98%" border=0 align="div" class="tableborder">
<tr><td class="header" align="center"><div id="othershow2"></div></td></tr>
<tr><td><input type="hidden" value="" name="keyid" id="keyid"><div align="left" id="othershow3"></div></td></tr>
<tr><td><div align="left"><button type="button2" name="button2" value="" class="button" onClick="doajax('subject')">提交答案</button></div></td></tr>
</table>
</div>

<div align="center" id="fightshow" style="display:none;">
<table cellspacing=0 cellpadding=1 width="98%" border=0 align="center" class="tableborder">
<tr><td class="header" align="center">冒险大陆-黄金十二宫<span id="maplink">【 <a href=pet.php?index=map><font color='#FFFFFF'>返回冒险地图</font></a> 】</span></td></tr>
<tr><td align="center" style="height:26px;"><div id="msg1"></div></td></tr>
</table>
<br>
<table cellspacing="0px" cellpadding="4px" width="98%" border=0 align="center" class="tableborder"  style="border-collapse:separate;">
<tr>
<td class="header2" align="center" width="45%">NPC信息</td>
<td class="header2" align="center" width="66px"><div align="center" id="msg2"></div></td>
<td class="header2" align="center">我的宠物</td>
</tr>
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60%"><div align="center" id="npcpic"></div><div id="showtxt1" align="center"></div></td>
<td width=10>&nbsp;</td>
<td><div align="left"><br>名字:<span id='npcname'></span><br>
善恶:<font color=red><span id='npcgd'></span></font><br>
HP:<font color=green><span id='npchp'></span></font><br>
攻击:<span id="npcatk"></span><br>
经验:<span id="npcexp"></span><br><br>
</div></td>
</tr>
</table></td>
<td><div align=center id="twoshow"></div><div align="center"><img src=file:///d:/game/rpg/v.gif width=20 height=20><img src=file:///d:/game/rpg/s.gif width=20 height=20></div><br><div align="center" id="showtxt4"></div></td>
<td align="center" width="45%"><table border="0" cellspacing="0" cellpadding="0" width="96%">
<tr>
<td><div align="center" id="petpic"><img src=file:///d:/game/pet/b/b11.gif border=0></div><div id="showtxt2" align="center"></div></td>
<td width=10>&nbsp;</td>
<td><div id="showimg" align="left"><table cellspacing='0' cellpadding='0' border='0'></table></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#F5FBFF">
<td colspan="3" style="height:50px;" valign="middle">
<div id="skillshow" align="center"></div>
<div id="showtxt3" align="center" style="display:none;"></div>
<div id="showtxt5" align="center" style="display:none;"></div>
</td>
</tr>
</table>

<br>
<table cellspacing="0px" cellpadding="4px" width="98%" border=0 align="center" class="tableborder"  style="border-collapse:separate;">
<tr>
<td class="header2" align="center">背包物品</td>
<td class="header2" align="center">自动选项</td>
<td class="header2" align="center">辅助技能</td>
<td class="header2" align="center">效果说明</td>
</tr>
<tr>
<td><div align="center" id="bagitemshow"><input type="hidden" id="itemid" value=""><table cellspacing="0" cellpadding="0" border="0"><tr><td align=left valign=top>双倍经验卡&nbsp;&nbsp;&nbsp;&nbsp;<br>数量:<font color=darkgreen><span id='item3717'>1</span></font><br>【<span onclick='itemuseajax(3717)' style='cursor:pointer;'><font color='#0000FF'>使用<1></font></span>】<td align=left valign=top>双倍攻击卡(回合)&nbsp;&nbsp;&nbsp;&nbsp;<br>数量:<font color=darkgreen><span id='item3825'>1</span></font><br>【<span onclick='itemuseajax(3825)' style='cursor:pointer;'><font color='#0000FF'>使用<2></font></span>】<td align=left valign=top>双倍金钱卡(回合)&nbsp;&nbsp;&nbsp;&nbsp;<br>数量:<font color=darkgreen><span id='item2764'>2</span></font><br>【<span onclick='itemuseajax(2764)' style='cursor:pointer;'><font color='#0000FF'>使用<3></font></span>】<td align=left valign=top>魔法宝石&nbsp;&nbsp;&nbsp;&nbsp;<br>数量:<font color=darkgreen><span id='item933'>917</span></font></tr></table></div></td>
<td><div align="center">
<input type="checkbox" name="autofind" id="autofind" value="1" onclick="javascript:autofind=$('autofind').checked;">自动找怪<br>
<input type="checkbox" name="autopk" id="autopk" value="1"  onclick="javascript:autopk=$('autopk').checked;">自动攻击<br>
<input type="checkbox" name="autosell" id="autosell" value="1"  onclick="javascript:autosell=$('autosell').checked;">自动出售<br>
</div></td>
<td><div align="center"><table cellspacing="1" cellpadding="2" border="0"><tr><td valign='top'><div align=center><font color=red>A</font><br><img src=file:///d:/game/skill/sleep.jpg border=0 alt='催眠术' onclick="javascript:callmagicajax('callmsleep');" style='cursor:pointer;'><br><font color=red><span id='sleepeft'>0</span></font></div></td>   </tr></table></div></td>
<td width="200px"><b><div align="center" id="msg">宠物币: 9360 </div></b></td>
</tr>
</table>

<br>
<table cellspacing="0px" cellpadding="4px" width="98%" border=0 align="center" class="tableborder"  style="border-collapse:separate;">           
<tr>
<td align="left">名字:精灵族<br> 级别:12转<span id="petlevel">623</span>级<br> 属性:光<br> 回避:0 %</td>
<td align="left"> 攻击:<span id="petatk">5453</span><br> 防御:<span id="petdef">75075</span><br> 魔攻:<span id="petmatk">1541404</span><br> 善恶:<span id="petgd">323927<font color=blue>(正义)</font></span></td>
<td align="left"><div id="teaminfo"></div></td>
<td align="left">HP:<font color="#000000"><span id="pethp">23650</span>  / <span id="petmaxhp">23650</span> </font><br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr><TD width=3 height=13><img src='file:///d:/game/rpg/img_left.gif' width=3 height=13></TD>
<TD width=114 background="file:///d:/game/rpg/img_backing.gif" height=13><span id="showhp"><img src='file:///d:/game/rpg/orange.gif' width='97%' height='9'><img src='file:///d:/game/rpg/hp.gif' height='9'></span></td>
<TD width=3 height=13><img src='file:///d:/game/rpg/img_right.gif' width=3 height=13></TD>
</tr>
</table>
MP:<font color="#000000"><span id="petmp">24409 </span> / <span id="petmaxmp">24589</span> </font><br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr><TD width=3 height=13><img src='file:///d:/game/rpg/img_left.gif' width=3 height=13></TD>
<TD width=114 background="file:///d:/game/rpg/img_backing.gif" height=13><span id="showmp"><img src='file:///d:/game/rpg/blue.gif' width='97%' height='9'><img src='file:///d:/game/rpg/exp.gif' height='9'></span></td>
<TD width=3 height=13><img src='file:///d:/game/rpg/img_right.gif' width=3 height=13></TD>
</tr>
</table>
</td>
<td align="left">SP : <span id="petsp">5000</span>  / 5000<br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr><TD width=3 height=13><IMG height=13 src='file:///d:/game/rpg/img_left.gif' width=3></TD>
<TD width=114 background="file:///d:/game/rpg/img_backing.gif" height=13><span id="showsp"><img src='file:///d:/game/rpg/green.gif' width='97%' height='9'><img src='file:///d:/game/rpg/mp.gif' height='9'></span></td>
<TD width=3 height=13><IMG height=13 src='file:///d:/game/rpg/img_right.gif' width=3></TD>
</tr>
</table>
EXP : <font color="#000000"><span id="petep">16</span> %</font><br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr><td width=3 height=13><img src='file:///d:/game/rpg/img_left.gif' width=3 height=13></td>
<td width=114 background="file:///d:/game/rpg/img_backing.gif" height=13><span id="showexp"><img src='file:///d:/game/rpg/blue.gif' width='16%' alt='1170549875' height='9'><img src='file:///d:/game/rpg/exp.gif' height='9'></span></td>
<td width=3 height=13><img src='file:///d:/game/rpg/img_right.gif' width=3 height=13></td>
</tr>
</table>
</td>

</tr>
</table><br>

<table cellspacing="0px" cellpadding="4px" width="98%" border=0 align="center" class="tableborder"  style="border-collapse:separate;">
<tr>
<td><div align="left"><font color=#FF6600>在线名单:<span id="petonlinelist"></span></font></div></td>
</tr>
</table><br>
</div>

<script type="text/javascript">
$('skillshow').innerHTML=magiclist;
window.setTimeout("findnpc();",500);
</script>

</body>
</html>


蓝色代码就是法师的光爆,红色部分就是法师的催眠
OK了 一句脚本可以搞定
催眠次数为0时召唤 否则就光爆

不难吧
 楼主| 发表于 2009-2-9 12:39:06 | 显示全部楼层
吃完饭廖 睡觉去
回复 支持 反对

使用道具 举报

发表于 2009-2-9 12:54:06 | 显示全部楼层
真不简单。。
回复 支持 反对

使用道具 举报

发表于 2009-2-9 13:08:00 | 显示全部楼层
写挂不难。。杀人更简单。。。
回复 支持 反对

使用道具 举报

发表于 2009-2-9 13:13:54 | 显示全部楼层
刀光剑影啊~~
回复 支持 反对

使用道具 举报

发表于 2009-2-9 13:25:29 | 显示全部楼层
这个就是挂????厉害滴小A
回复 支持 反对

使用道具 举报

发表于 2009-2-9 13:36:29 | 显示全部楼层
外掛
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-9 21:07:50 | 显示全部楼层
脚本写的东西 不在外 而在内
回复 支持 反对

使用道具 举报

发表于 2009-2-9 21:12:01 | 显示全部楼层
还在宣传。。。汗
回复 支持 反对

使用道具 举报

发表于 2009-2-9 21:16:14 | 显示全部楼层
- -
完全看不懂
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|萤火虫

GMT++8, 2024-5-7 19:08 , Processed in 0.321758 second(s), 5 queries , File On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表