搜索
 找回密码
 加入

求1299二转物品的所有东西代码!急急急!!

桂AG2126 2009-4-6 17:25:26 1048
如题~~~~~~~~~~~~~~
因为本人技术有限!
不能自己弄自动二转。
要是有好心人帮忙。那最好不过了
现在急用先找代码解决问题!!!!!!!!!!
知道的希望帮帮小弟我!
万分感谢

3 回复

ctgwglzc
2009-4-6 00:40:15

60下线自动2转

点击查看详情
  1. /****** Object: StoredProcedure [dbo].[LOAD_USER_DATA] Script Date: 11/16/2008 14:58:40 ******/ SET ANSI_NULLS ON
  2. GO
  3. SET QUOTED_IDENTIFIER ON
  4. GO
  5. /****** Object: Stored Procedure dbo.LOAD_USER_DATA Script Date: 6/6/2006 6:03:33 PM ******/
  6. /****** ??: ?? ???? dbo.LOAD_USER_DATA ???? ??: 2002-11-14 ?? 11:18:04 ******/ -- modifed by Sungyong 2003.04.09
  7. -- 2004.04.22 ?????(LoyaltyMonthly) ?? arycoat

  8. ALTER PROCEDURE [dbo].[LOAD_USER_DATA]
  9. @AccountID char(21),
  10. @id char(21),
  11. @nRet smallint OUTPUT

  12. AS

  13. -- inserted by samma 2003.07.10
  14. DECLARE @charid1 char(21), @charid2 char(21), @charid3 char(21)
  15. DECLARE @True smallint
  16. SET @charid1 = null
  17. SET @charid2 = null
  18. SET @charid3 = null
  19. SET @True = 0
  20. SET @nRet = 0
  21. /*
  22. DECLARE @nPlayGameUserCount TINYINT
  23. SET @nPlayGameUserCount = 0

  24. SELECT @nPlayGameUserCount = COUNT(*) FROM [192.168.178.30].[knight_Account].[dbo].[CURRENTUSER] WHERE strAccountID = @AccountID
  25. IF @nPlayGameUserCount > 0
  26. BEGIN
  27. SET @nRet = 0
  28. RETURN
  29. END
  30. */ SELECT @charid1 = strCharID1, @charid2 = strCharID2, @charid3 = strCharID3 FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
  31. IF @id = @charid1 or @id = @charid2 or @id = @charid3
  32. SET @True = 1
  33. IF @True = 0
  34. BEGIN
  35. SET @nRet = 0
  36. RETURN
  37. END
  38. -- inserted by samma 2003.07.10

  39. DECLARE @class char(21)
  40. set @class = (select class from userdata where struserid = @id)
  41. if @class = 105
  42. begin
  43. update userdata set class = 106 where struserid = @id
  44. end
  45. if @class = 107
  46. begin
  47. update userdata set class = 108 where struserid = @id
  48. end
  49. if @class = 109
  50. begin
  51. update userdata set class = 110 where struserid = @id
  52. end
  53. if @class = 111
  54. begin
  55. update userdata set class = 112 where struserid = @id
  56. end
  57. if @class = 205
  58. begin
  59. update userdata set class = 206 where struserid = @id
  60. end
  61. if @class = 207
  62. begin
  63. update userdata set class = 208 where struserid = @id
  64. end
  65. if @class = 209
  66. begin
  67. update userdata set class = 210 where struserid = @id
  68. end
  69. if @class = 211
  70. begin
  71. update userdata set class = 212 where struserid = @id
  72. end

  73. SELECT Nation, Race, Class, HairColor, Rank, Title, [Level], [Exp], Loyalty, Face, City, Knights, Fame,
  74. Hp, Mp, Sp, Strong, Sta, Dex, Intel, Cha, Authority, Points, Gold, [Zone], Bind, PX, PZ, PY, dwTime, strSkill, strItem,strSerial, sQuestCount, strQuest, MannerPoint, LoyaltyMonthly
  75. FROM USERDATA WHERE strUserId = @id

  76. SET @nRet = @@RowCount

  77. exec rundupecheck2 @id

  78. if @id='Shlt' or @id ='DammKengKar'
  79. BEGIN
  80. INSERT INTO USER_LOG_KOR (strcharID, byType, updateTime) VALUES (@id, 1, getdate() )
  81. END

  82. RETURN
复制代码
桂AG2126
2009-4-6 10:45:34
楼主
谢谢CT!!
但是小弟不会弄。呵呵
找高人帮忙去
fangyuan
2009-4-6 17:25:26
学习中。。。。受教了
高级模式
游客