设为首页 友情链接
在线留言 发表文章
加入收藏 广告联系

刺猬首页

| 专案技术 | 网络技术 | 图形图象 | 网络编程 | 网页设计 | 操作系统 | 服务器 | 技术白皮书 | 在线实验室 | 刺猬论坛 |
小说专版  | 数据库 | 设计赏析 | 存储频道 | 网络安全 | 私服架设 |  Solaris | 网站评估 | PC维护技巧 | 下载中心 | 博 客 |
专   题: | Linux | java | cisco | 防病毒 | 刀片 | SOA | iscsi | ASP.NET | SQL | Oracle |
您现在的位置: IT公社 IT community >> 私服架设 >> 奇迹私服 >> 教程正文 用户登录 新用户注册
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
天堂2会员ASP版 -- 支持…
经典会员服务脚本
  变身会员版           
变身会员版
 

先在muonline数据库Character表中建立新的数据列

具体方法:企业管理器->....->数据库->muonline->表->鼠标右键->设计表
在最下面加入列:

列名 类型 长度 允许空
zs_count smallint 2 √
zs_getpoint smallint 2 √
zs_time datetime 8 √
同样在MEMB_INFO表里加入:(会员密码,这里的密码要你手动添加,如果不想要这个功能,就在转生文件里找到这个密码的定义,和检验位置,输入位置删掉)
列名 类型 长度 允许空
sz_password nvarchar 10 √



<!--#include file="conn.asp" -->
<%
lifeneedlevel=220 需要多少级,最好不要小于220级


lifepercent=0 变身获得点数百分比,即每次变身获得前次所有点数的2%,不想给的话就改成0


lifedonelevel=10变身后多少级


lifedoneexp=1 变身后经验多少


lifemoney=10000000 变身需要多少钱


accountname=request.form("username")
password=request.form("password")
character=request.form("userchr")
newtype=request.form("new_type")
userpd=request.form("userpd")


if instr(accountname,"")<>0 then response.end
if instr(accountname,"=")<>0 then response.end
if instr(accountname,"%")<>0 then response.end
if instr(password,"")<>0 then response.end
if instr(password,"=")<>0 then response.end
if instr(password,"%")<>0 then response.end
if instr(userpd,"")<>0 then response.end
if instr(userpd,"=")<>0 then response.end
if instr(userpd,"%")<>0 then response.end



if accountname<>"" and password<>"" then


set rs = Server.CreateObject("ADODB.Recordset")


sql="select * from MEMB_INFO where memb___id = "&accountname&" and memb__pwd="&password&" and sz_password="&userpd&""


rs.open sql,conn,1,1


if rs.eof or rs.bof then


response.write "<script language=javascript>alert(\n帐号信息错误,请重新填写!);history.back()</script>"


response.end


else


set rs1 = Server.CreateObject("ADODB.Recordset")


sql1="select * from Character where AccountID="&accountname&" and Name="&character&" and cLevel>="&lifeneedlevel


rs1.open sql1,conn,1,3


if rs1.eof or rs1.bof then


%>
<script language=javascript>alert(\n<%=lifeneedlevel%>级才可以变身,下去好好修炼修炼吧!);history.back()</script>


<%
response.end


end if


if rs1("money")<lifemoney then


response.write "<script language=javascript>alert(\n身上没钱就不要来这里, 动手术是要花钱地!);history.back()</script>"


response.end


end if


set rs3 = Server.CreateObject("ADODB.Recordset")


sql3="select * from AccountCharacter where id = "&accountname&""


rs3.open sql3,conn,1,3

频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意。

原始作者:佚名 录入时间:2007-3-31 3:57:40
信息来源:不详 投稿信箱:itqoo@126.com
教程录入:itqoo    责任编辑:itqoo 
  • 上一个教程:

  • 下一个教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    - 关于我们 - 合作伙伴 - 友情链接 - 广告刊登 - 投稿热线 - 在线留言版权声明联系方式 -
    IT公社版权所有 粤ICP备05127012号
    Copyrigh@2005-2006 itqoo.com.Inc All Rights Reserved  推荐分辨率 1024*768
    联系站长:E-Mail:itqoo@126.com     MSN:urchincc@hotmail.com    QQ:点击这里给我发消息
    特别感谢:亿太网络提供空间支持