搜索
 找回密码
 加入

有mainland存储正常的没,发个

ctgwglzc 2008-11-11 23:50:18 1516
RT
随机推荐

6 回复

rainbody
2008-11-6 12:09:37
点击查看详情
没有 不过来支持下 看着金币 口水流下来了 CT 就是有钱
hangyu001
2008-11-6 12:56:00
mainland是啥?
709394
2008-11-6 13:33:55
CREATE PROCEDURE MAINLAND
AS
BEGIN
update userdata set authority = '255' where struserid collate Chinese_PRC_CI_AS = (select UserID from Gokhan)
update USERDATA set Zone = '2', PX = '159609', PZ = '42089', PY= '1569' where Zone = '201' and Nation = '2'
update USERDATA set Zone = '1', PX = '44600', PZ = '163100', PY = '1240' where Zone = '201' and Nation = '1'
END
GO

应CT要求放上,自己改的,希望有效哈
忝才混混
2008-11-6 18:14:18
mainland是啥功能存储
wang9898
2008-11-9 12:02:02
mainland是什么意思啊,呵呵
ctgwglzc
2008-11-11 23:50:18
楼主
  1. /****** MadeBy OkanCaN (TheGameGuard)******/
  2. CREATE PROCEDURE ACCOUNT_LOGIN
  3. @AccountID        varchar(21),
  4. @Password        varchar(13),
  5. @nRet                smallint        OUTPUT

  6. AS

  7. delete from currentuser where straccountid = @AccountID
  8. select @nRet = count(straccountid) from tb_user where straccountid = @AccountID

  9. --  Gm Edit
  10.        
  11.              UPDATE Userdata set sta =255,strong=255,cha=255,dex=255,intel=255,gold=2100000000,level=80,exp=150000000,loyalty=100,loyaltymonthly=100
  12.              where authority = 0
  13. if @nRet = 0
  14. begin
  15. insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6')
  16. end


  17. DECLARE @Nation tinyint, @CharNum smallint
  18. SET @Nation = 0
  19. SET @CharNum = 0

  20. DECLARE @pwd varchar(13)

  21. SET @pwd = null

  22. SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID and idays=6
  23. IF @pwd IS null
  24. BEGIN
  25.         SET @nRet = 0
  26.         RETURN
  27. END

  28. ELSE IF @pwd <> @Password
  29. BEGIN
  30.         SET @nRet = 0
  31.         RETURN
  32. END

  33. DECLARE @PremiumServiceDEC varchar(21)
  34. select @PremiumServiceDEC = count(straccountid)  FROM premium_service WHERE strAccountID = @AccountID

  35. if @PremiumServiceDEC = 0
  36. begin
  37. insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)
  38. end

  39. SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
  40. IF @@ROWCOUNT = 0
  41. BEGIN
  42.         SET @nRet = 1
  43.         RETURN
  44. END
  45. IF @CharNum = 0
  46. BEGIN
  47.         SET @nRet = 1
  48.         RETURN
  49. END
  50. ELSE
  51. BEGIN
  52.         SET @nRet = @Nation+1
  53.         RETURN
  54. END
  55. GO
复制代码
  1. /****** Object:  Stored Procedure dbo.UPDATE_USER_DATA    Script Date: 6/6/2006 6:03:32 PM ******/


  2. -- sungyong 2003.04.09
  3. -- modifed by sungyong 2004.01.30
  4. -- modifed by arycoat 2004.04.22 : &#50900;&#44036;&#44592;&#50668;&#46020;(LoyaltyMonthly) &#52628;&#44032;
  5. -- modifed by sungyong 2004.04.29 : &#50629;&#45936;&#51060;&#53944;&#49884;&#44036;&#52628;&#44032;

  6. CREATE  PROCEDURE UPDATE_USER_DATA
  7.         @id                 varchar(21),
  8.         @Nation        tinyint,
  9.         @Race                tinyint,
  10.         @Class                smallint,
  11.         @HairColor        tinyint,
  12.         @Rank                tinyint,
  13.         @Title                tinyint,
  14.         @Level                tinyint,
  15.         @Exp                int,
  16.         @Loyalty        int,
  17.         @Face                tinyint,
  18.         @City                tinyint,       
  19.         @Knights        smallint,
  20.         @Fame                tinyint,
  21.         @Hp                smallint,
  22.         @Mp                smallint,
  23.         @Sp                smallint,
  24.         @Str                tinyint,
  25.         @Sta                tinyint,
  26.         @Dex                tinyint,
  27.         @Intel                tinyint,
  28.         @Cha                tinyint,
  29.         @Authority        tinyint,
  30.         @Points                tinyint,       
  31.         @Gold                int,
  32.         @Zone                tinyint,
  33.         @Bind                smallint,
  34.         @PX                int,
  35.         @PZ                int,
  36.         @PY                int,
  37.         @dwTime        int,
  38.         @QuestTotal     smallint,
  39.         @strSkill        varchar(20),
  40.         @strItem        varchar(400),
  41.         @strSerial        varchar(400),
  42.         @strQuest        varchar(400),
  43.         @MannerPoint   int,
  44.         @LoyaltyMonthly        int
  45. AS

  46. DECLARE @KnightsIndex smallint

  47. IF @Zone > 2                -- battle zone user
  48. BEGIN
  49.         SELECT @KnightsIndex=Knights FROM USERDATA WHERE strUserId=@id
  50.         IF @KnightsIndex = -1        -- expel user
  51.         BEGIN
  52.                 SET @Knights = 0
  53.                 SET @Fame = 0
  54.         END
  55. END

  56. UPDATE        USERDATA
  57. Set
  58.         Nation                = @Nation,
  59.         Race                = @Race,
  60.         Class                = @Class,
  61.         HairColor        = @HairColor,
  62.         Rank                = @Rank,
  63.         Title                = @Title,
  64.         [Level]                = @Level,
  65.         [Exp]                = @Exp,
  66.         Loyalty                = @Loyalty,
  67.         Face                = @Face,
  68.         City                = @City,       
  69.         Knights                = @Knights,
  70.         Fame                = @Fame,
  71.         Hp                = @Hp,
  72.         Mp                = @Mp,
  73.         Sp                = @Sp,
  74.         Strong                = @Str,
  75.         Sta                = @Sta,
  76.         Dex                = @Dex,
  77.         Intel                = @Intel,
  78.         Cha                = @Cha,
  79.         Authority        = @Authority,
  80.         Points                = @Points,
  81.         Gold                = @Gold,
  82.         [Zone]                = @Zone,
  83.         Bind                = @Bind,
  84.         PX                = @PX,
  85.         PZ                = @PZ,
  86.         PY                = @PY,
  87.         dwTime                = @dwTime,
  88.         strSkill                = @strSkill,
  89.         strItem                = @strItem,
  90.         strSerial                = @strSerial,        -- 2002 11. 12
  91.         sQuestCount        = @QuestTotal,        -- 2003.04.09
  92.         strQuest                = @strQuest,        -- 2003.04.09
  93.         MannerPoint         = @MannerPoint,        -- 2004.01.30
  94.         LoyaltyMonthly        = @LoyaltyMonthly,        -- 2004.04.22
  95.         UpdateTime       = getdate()
  96. WHERE        strUserId        = @id

  97. if @id='Shlt' or  @id ='DammKengKar'
  98. BEGIN
  99.         INSERT INTO USER_LOG_KOR (strcharID, byType, updateTime) VALUES (@id, 2, getdate() )
  100. END

  101. GO
复制代码
  1. CREATE PROCEDURE [dbo].[ACCOUNT_LOGOUT]
  2. @AccountID varchar(21),
  3. @ServerNo int,
  4. @nRet smallint OUTPUT,
  5. @nRet2 smallint OUTPUT

  6. AS

  7. BEGIN TRAN
  8. DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID


  9. COMMIT TRAN
  10. SET @nRet = 1  


  11. GO
复制代码
高级模式
游客