搜索
 找回密码
 加入

哪位强人发个1310的人兽互转的SQL啊!!!

talkweb 2009-10-30 16:59:45 1000
哪位强人发个1310的人兽互转的SQL啊!!!

5 回复

talkweb
2009-10-14 14:47:16
楼主
点击查看详情
1299的我有.1310不通用的吧.
langziming
2009-10-16 19:48:37
下面不知道对不对!
==========
        Sql="Select * from Account_char where strAccountID='"& strid &"' and (strcharID1='"& username &"' or strcharID2='"& username &"' or strcharID3='"& username &"')"
        set ors=conn.execute(Sql)
        if ors.eof then
                Response.write("<script>alert('输入的信息不正确!');window.history.back();</script>")
                Response.End()
        end if
        Sql="Select * from TB_USER where strAccountid='"& strid &"' and strpasswd='"& psw &"'"
        set ors=conn.execute(Sql)
        if ors.eof then
                Response.write("<script>alert('输入的密码不正确!');window.history.back();</script>")
                Response.End()
        end if
       
        '===============
        Sql="Select * from USERDATA where struserID='" & username & "'"
        set ors=conn.Execute(Sql)
        if ors.eof then
                Response.write("<script>alert('输入的角色名有误!');window.history.back();</script>")
                Response.End()
        end if
        if ors("knights")<>0 then
                Response.write("<script>alert('该角色未退出骑士团!');window.history.back();</script>")
                Response.End()

        end if
        ors.close
        set ors=nothing

        Sql="Select * from CURRENTUSER where strCharID='"& username &"'"
        set ors=conn.Execute(Sql)
        if not ors.eof then
                Response.write("<script>alert('角色还在线上请下线修改!');window.history.back();</script>")
                Response.End()
        end if
        ors.close
        set ors=nothing
       
        Sql="exec KarusNT '"& strid &"'"
        conn.execute(Sql)
        Response.write("<script>alert('您的种族转换申请成功!');</script>")
end if
ctgwglzc
2009-10-17 16:20:35

  1. CREATE procedure [HumanNT]
  2. @Account char(30)

  3. AS DECLARE @clannumber smallint, @length int,@row int,@i int,@dwid int,@pos int,@dur int,@dur1 int,@ext int,@StackSize1 int,@strName varchar(30),@strExtName varchar(30),@Cdwid varbinary(4),@cdur varchar(2),@cstack varchar(2)
  4. begin tran
  5. declare @char1 varchar(21)
  6. set @char1 = (select strcharid1 from account_char where straccountid = @account)
  7. declare @char2 varchar(21)
  8. set @char2 = (select strcharid2 from account_char where straccountid = @account)
  9. declare @char3 varchar(21)
  10. set @char3 = (select strcharid3 from account_char where straccountid = @account)
  11. declare @clannumber1 smallint
  12. set @clannumber1 = (select idnum from knights where chief = @char1)
  13. declare @clannumber2 smallint
  14. set @clannumber2 = (select idnum from knights where chief = @char2)
  15. declare @clannumber3 smallint
  16. set @clannumber3 = (select idnum from knights where chief = @char3)
  17. update account_char set bnation = '2' where bnation = '1' and straccountid = @Account
  18. update userdata set nation = '2' where nation = '1' and struserid = @char1
  19. update userdata set race = '11' where race = '1' and class in ('101','105','106') and struserid = @char1
  20. Update userdata set race = '12' where race = '2' and class in ('107','111','102','104','112','108') and struserid = @char1
  21. update userdata set race = '13' where race = '3' and class in ('103','109','110') and struserid = @char1
  22. update userdata set race = '13' where race = '4' and class in ('104','111','112') and struserid = @char1
  23. update userdata set class = '205' where class = '105' and struserid = @char1
  24. update userdata set class = '207' where class = '107' and struserid = @char1
  25. update userdata set class = '209' where class = '109' and struserid = @char1
  26. update userdata set class = '211' where class = '111' and struserid = @char1
  27. update userdata set class = '201' where class = '101' and struserid = @char1
  28. update userdata set class = '202' where class = '102' and struserid = @char1
  29. update userdata set class = '203' where class = '103' and struserid = @char1
  30. update userdata set class = '204' where class = '104' and struserid = @char1
  31. update userdata set class = '212' where class = '112' and struserid = @char1
  32. update userdata set class = '206' where class = '106' and struserid = @char1
  33. update userdata set class = '208' where class = '108' and struserid = @char1
  34. update userdata set class = '210' where class = '110' and struserid = @char1
  35. update userdata set zone = '21',bind = '-1',px = '31900',pz = '40100',py = '0' where struserid = @char1
  36. delete from knights where chief = @char1
  37. delete from knights_user where sidnum = @clannumber1
  38. delete from knights_rating where shindex = @clannumber1
  39. update userdata set knights = 0, fame = 0 where knights = @clannumber1
  40. update userdata set nation = '2' where nation = '1' and struserid = @char2
  41. update userdata set race = '11' where race = '1' and class in ('101','105','106') and struserid = @char2
  42. Update userdata set race = '12' where race = '2' and class in ('107','111','102','104','112','108') and struserid = @char2
  43. update userdata set race = '13' where race = '3' and class in ('103','109','110') and struserid = @char2
  44. update userdata set race = '13' where race = '4' and class in ('104','111','112') and struserid = @char2
  45. update userdata set class = '205' where class = '105' and struserid = @char2
  46. update userdata set class = '207' where class = '107' and struserid = @char2
  47. update userdata set class = '209' where class = '109' and struserid = @char2
  48. update userdata set class = '211' where class = '111' and struserid = @char2
  49. update userdata set class = '201' where class = '101' and struserid = @char2
  50. update userdata set class = '202' where class = '102' and struserid = @char2
  51. update userdata set class = '203' where class = '103' and struserid = @char2
  52. update userdata set class = '204' where class = '104' and struserid = @char2
  53. update userdata set class = '212' where class = '112' and struserid = @char2
  54. update userdata set class = '206' where class = '106' and struserid = @char2
  55. update userdata set class = '208' where class = '108' and struserid = @char2
  56. update userdata set class = '210' where class = '110' and struserid = @char2
  57. update userdata set zone = '21',bind = '-1',px = '31900',pz = '40100',py = '0' where struserid = @char2
  58. delete from knights where chief = @char2
  59. delete from knights_user where sidnum = @clannumber2
  60. delete from knights_rating where shindex = @clannumber2
  61. update userdata set knights = 0, fame = 0 where knights = @clannumber2
  62. update userdata set nation = '2' where nation = '1' and struserid = @char3
  63. update userdata set race = '11' where race = '1' and class in ('101','105','106') and struserid = @char3
  64. Update userdata set race = '12' where race = '2' and class in ('107','111','102','104','112','108') and struserid = @char3
  65. update userdata set race = '13' where race = '3' and class in ('103','109','110') and struserid = @char3
  66. update userdata set race = '13' where race = '4' and class in ('104','111','112') and struserid = @char3
  67. update userdata set class = '205' where class = '105' and struserid = @char3
  68. update userdata set class = '207' where class = '107' and struserid = @char3
  69. update userdata set class = '209' where class = '109' and struserid = @char3
  70. update userdata set class = '211' where class = '111' and struserid = @char3
  71. update userdata set class = '201' where class = '101' and struserid = @char3
  72. update userdata set class = '202' where class = '102' and struserid = @char3
  73. update userdata set class = '203' where class = '103' and struserid = @char3
  74. update userdata set class = '204' where class = '104' and struserid = @char3
  75. update userdata set class = '212' where class = '112' and struserid = @char3
  76. update userdata set class = '206' where class = '106' and struserid = @char3
  77. update userdata set class = '208' where class = '108' and struserid = @char3
  78. update userdata set class = '210' where class = '110' and struserid = @char3
  79. update userdata set zone = '21',bind = '-1',px = '31900',pz = '40100',py = '0' where struserid = @char3
  80. delete from knights where chief = @char3
  81. delete from knights_user where sidnum = @clannumber3
  82. delete from knights_rating where shindex = @clannumber3
  83. update userdata set knights = 0, fame = 0 where knights = @clannumber3
  84. update userdata set knights = 0, fame = 0 where struserid = @char1
  85. update userdata set knights = 0, fame = 0 where struserid = @char2
  86. update userdata set knights = 0, fame = 0 where struserid = @char3
  87. Update knights set vicechief_1 = '' where vicechief_1 = @char1
  88. Update knights set vicechief_2 = '' where vicechief_2 = @char1
  89. Update knights set vicechief_3 = '' where vicechief_3 = @char1
  90. Update knights set vicechief_1 = '' where vicechief_1 = @char2
  91. Update knights set vicechief_2 = '' where vicechief_2 = @char2
  92. Update knights set vicechief_3 = '' where vicechief_3 = @char2
  93. Update knights set vicechief_1 = '' where vicechief_1 = @char3
  94. Update knights set vicechief_2 = '' where vicechief_2 = @char3
  95. Update knights set vicechief_3 = '' where vicechief_3 = @char3
  96. delete from knights_user where struserid = @char1
  97. delete from knights_user where struserid = @char2
  98. delete from knights_user where struserid = @char3
  99. commit tran

  100. GO
复制代码
  1. CREATE procedure [KarusNT]
  2. @Account char(30)

  3. AS DECLARE @clannumber smallint, @length int,@row int,@i int,@dwid int,@pos int,@dur int,@dur1 int,@ext int,@StackSize1 int,@strName varchar(30),@strExtName varchar(30),@Cdwid varbinary(4),@cdur varchar(2),@cstack varchar(2)

  4. begin tran

  5. declare @char1 varchar(21)
  6. set @char1 = (select strcharid1 from account_char where straccountid = @account)
  7. declare @char2 varchar(21)
  8. set @char2 = (select strcharid2 from account_char where straccountid = @account)
  9. declare @char3 varchar(21)
  10. set @char3 = (select strcharid3 from account_char where straccountid = @account)
  11. declare @clannumber1 smallint
  12. set @clannumber1 = (select idnum from knights where chief = @char1)
  13. declare @clannumber2 smallint
  14. set @clannumber2 = (select idnum from knights where chief = @char2)
  15. declare @clannumber3 smallint
  16. set @clannumber3 = (select idnum from knights where chief = @char3)

  17. update account_char set bnation = '1' where bnation = '2' and straccountid = @Account

  18. update userdata set nation = '1' where nation = '2' and struserid = @char1
  19. Update userdata set race = '1' where race = '11' and class in ('201','205','206') and struserid = @char1
  20. Update userdata set race = '1' where race = '12' and class in ('201','205','206') and struserid = @char1
  21. Update userdata set race = '1' where race = '13' and class in ('201','205','206') and struserid = @char1
  22. Update userdata set race = '2' where race = '12' and class in ('207','211','202','204','212','208') and struserid = @char1
  23. update userdata set race = '2' where race = '13' and class in ('202','207','208') and struserid = @char1
  24. update userdata set race = '3' where race = '12' and class in ('203','209','210') and struserid = @char1
  25. update userdata set race = '3' where race = '13' and class in ('203','209','210') and struserid = @char1
  26. update userdata set race = '4' where race = '13' and class in ('204','211','212') and struserid = @char1
  27. update userdata set class = '105' where class = '205' and struserid = @char1
  28. update userdata set class = '107' where class = '207' and struserid = @char1
  29. update userdata set class = '109' where class = '209' and struserid = @char1
  30. update userdata set class = '111' where class = '211' and struserid = @char1
  31. update userdata set class = '101' where class = '201' and struserid = @char1
  32. update userdata set class = '102' where class = '202' and struserid = @char1
  33. update userdata set class = '103' where class = '203' and struserid = @char1
  34. update userdata set class = '104' where class = '204' and struserid = @char1
  35. update userdata set class = '112' where class = '212' and struserid = @char1
  36. update userdata set class = '106' where class = '206' and struserid = @char1
  37. update userdata set class = '108' where class = '208' and struserid = @char1
  38. update userdata set class = '110' where class = '210' and struserid = @char1
  39. update userdata set zone = '21',bind = '-1',px = '31900',pz = '40100',py = '0' where struserid = @char1
  40. delete from knights where chief = @char1
  41. delete from knights_user where sidnum = @clannumber1
  42. delete from knights_rating where shindex = @clannumber1
  43. update userdata set knights = 0, fame = 0 where knights = @clannumber1

  44. update userdata set nation = '1' where nation = '2' and struserid = @char2
  45. Update userdata set race = '1' where race = '11' and class in ('201','205','206') and struserid = @char2
  46. Update userdata set race = '1' where race = '12' and class in ('201','205','206') and struserid = @char2
  47. Update userdata set race = '1' where race = '13' and class in ('201','205','206') and struserid = @char2
  48. Update userdata set race = '2' where race = '12' and class in ('207','211','202','204','212','208') and struserid = @char2
  49. update userdata set race = '2' where race = '13' and class in ('202','207','208') and struserid = @char2
  50. update userdata set race = '3' where race = '12' and class in ('203','209','210') and struserid = @char2
  51. update userdata set race = '3' where race = '13' and class in ('203','209','210') and struserid = @char2
  52. update userdata set race = '4' where race = '13' and class in ('204','211','212') and struserid = @char2
  53. update userdata set class = '105' where class = '205' and struserid = @char2
  54. update userdata set class = '107' where class = '207' and struserid = @char2
  55. update userdata set class = '109' where class = '209' and struserid = @char2
  56. update userdata set class = '111' where class = '211' and struserid = @char2
  57. update userdata set class = '101' where class = '201' and struserid = @char2
  58. update userdata set class = '102' where class = '202' and struserid = @char2
  59. update userdata set class = '103' where class = '203' and struserid = @char2
  60. update userdata set class = '104' where class = '204' and struserid = @char2
  61. update userdata set class = '112' where class = '212' and struserid = @char2
  62. update userdata set class = '106' where class = '206' and struserid = @char2
  63. update userdata set class = '108' where class = '208' and struserid = @char2
  64. update userdata set class = '110' where class = '210' and struserid = @char2
  65. update userdata set zone = '21',bind = '-1',px = '31900',pz = '40100',py = '0' where struserid = @char2
  66. delete from knights where chief = @char2
  67. delete from knights_user where sidnum = @clannumber2
  68. delete from knights_rating where shindex = @clannumber2
  69. update userdata set knights = 0, fame = 0 where knights = @clannumber2

  70. update userdata set nation = '1' where nation = '2' and struserid = @char3
  71. Update userdata set race = '1' where race = '11' and class in ('201','205','206') and struserid = @char3
  72. Update userdata set race = '1' where race = '12' and class in ('201','205','206') and struserid = @char3
  73. Update userdata set race = '1' where race = '13' and class in ('201','205','206') and struserid = @char3
  74. Update userdata set race = '2' where race = '12' and class in ('207','211','202','204','212','208') and struserid = @char3
  75. update userdata set race = '2' where race = '13' and class in ('202','207','208') and struserid = @char3
  76. update userdata set race = '3' where race = '12' and class in ('203','209','210') and struserid = @char3
  77. update userdata set race = '3' where race = '13' and class in ('203','209','210') and struserid = @char3
  78. update userdata set race = '4' where race = '13' and class in ('204','211','212') and struserid = @char3
  79. update userdata set class = '105' where class = '205' and struserid = @char3
  80. update userdata set class = '107' where class = '207' and struserid = @char3
  81. update userdata set class = '109' where class = '209' and struserid = @char3
  82. update userdata set class = '111' where class = '211' and struserid = @char3
  83. update userdata set class = '101' where class = '201' and struserid = @char3
  84. update userdata set class = '102' where class = '202' and struserid = @char3
  85. update userdata set class = '103' where class = '203' and struserid = @char3
  86. update userdata set class = '104' where class = '204' and struserid = @char3
  87. update userdata set class = '112' where class = '212' and struserid = @char3
  88. update userdata set class = '106' where class = '206' and struserid = @char3
  89. update userdata set class = '108' where class = '208' and struserid = @char3
  90. update userdata set class = '110' where class = '210' and struserid = @char3
  91. update userdata set zone = '21',bind = '-1',px = '31900',pz = '40100',py = '0' where struserid = @char3
  92. delete from knights where chief = @char3
  93. delete from knights_user where sidnum = @clannumber3
  94. delete from knights_rating where shindex = @clannumber3
  95. update userdata set knights = 0, fame = 0 where knights = @clannumber3
  96. update userdata set knights = 0, fame = 0 where struserid = @char1
  97. update userdata set knights = 0, fame = 0 where struserid = @char2
  98. update userdata set knights = 0, fame = 0 where struserid = @char3
  99. Update knights set vicechief_1 = '' where vicechief_1 = @char1
  100. Update knights set vicechief_2 = '' where vicechief_2 = @char1
  101. Update knights set vicechief_3 = '' where vicechief_3 = @char1
  102. Update knights set vicechief_1 = '' where vicechief_1 = @char2
  103. Update knights set vicechief_2 = '' where vicechief_2 = @char2
  104. Update knights set vicechief_3 = '' where vicechief_3 = @char2
  105. Update knights set vicechief_1 = '' where vicechief_1 = @char3
  106. Update knights set vicechief_2 = '' where vicechief_2 = @char3
  107. Update knights set vicechief_3 = '' where vicechief_3 = @char3
  108. delete from knights_user where struserid = @char1
  109. delete from knights_user where struserid = @char2
  110. delete from knights_user where struserid = @char3

  111. commit tran

  112. GO
复制代码
leonjaykai
2009-10-25 22:33:48
看不懂~~~先推再說
shinryoken
2009-10-30 16:59:45
ssssssssssssssssssssssssssssss

评分

1

查看全部评分

高级模式
游客