17-02-2014, 01:14 AM
|
#1
|
|
• الانـتـسـاب » Mar 2009
|
• رقـم العـضـويـة » 57693
|
• المشـــاركـات » 1,250
|
• الـدولـة » مصر
|
• الـهـوايـة » البرامج
|
• اسـم الـسـيـرفـر » No Server
|
• الـجـنـس » Male
|
• نقـاط التقييم » 10
|
|
|
بص انا هديك كورى واحد لل shard + account
بس قبل ما تستخدمهم اعمل باك اب للداتا عشان انا مش متاكد اوى
كود PHP:
USE [SRO_VT_SHARD] GO /****** Object: StoredProcedure [dbo].[_DeleteCharPermanently_NoTX] Script Date: 02/14/2012 12:54:27 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER OFF GO
ALTER PROCEDURE [dbo].[_DeleteCharPermanently_NoTX] @UserJID INT , @CharID INT AS ------------------------------------ -- Inventory¶û ±×¾E?? °???°? A?´? ¾?A??Uµé ³¯·?¹?¸®A?... ------------------------------------ -------------- ?ê ¼?E¯ ¾?A??U?I?? AI´U »è?¦ ---------------- declare @result int declare @Slot tinyint declare @RefItemID int declare pc_inv_cursor cursor fast_forward for select inv.slot from _Inventory as inv join _Items as it on inv.ItemID = it.ID64 where (inv.CharID = @CharID and inv.Slot >= 13 and inv.ItemID > 0) and -- A????¢ ?¦?UCI°? ¾?A??U A?´A ¼?¼? AI?¥??¸® ¾E?? µé¾îA?A¸¸ç (it.Data <> 0) and -- ¼?E¯¼?¸¦ °???°? A?´A (exists (select top 1 ID from _RefObjCommon where ID = it.RefItemID and TypeID1 = 3 and TypeID2 = 2)) -- ?ê¼?E¯ ¾?A??Uµé ?£¾??à~ open pc_inv_cursor fetch next from pc_inv_cursor into @slot while @@fetch_status = 0 begin exec @result = _STRG_DEL_ITEM_NoTX 1, @CharID, @Slot if (@result < 0) begin close pc_inv_cursor deallocate pc_inv_cursor return @result end fetch next from pc_inv_cursor into @Slot end close pc_inv_cursor deallocate pc_inv_cursor ------------------- ³²A? ¾?A??Uµé ¸ù?¢ »è?¦ ------------------- -- ¾?A??UA? CI³?¶?µµ A?´U¸é... if (exists (select top 1 itemID from _Inventory where CharID = @CharID AND ItemID <> 0)) begin update _ItemPool Set InUse = 0 from _ItemPool as pool join _Inventory as inv on pool.ItemID = Inv.ItemID where Inv.CharID = @CharID and Inv.ItemID <> 0 end ----------- ¾?A??Uµé ³¯·EA¸´I ???¾AûA¸·ç AI?¥??¸® »è?¦ ------------ delete from _Inventory where CharID = @CharID if (@@error <> 0) begin return -10001 end
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- APPLY_AVATAR_SYSTEM (C?½A??) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
------------------- ³²A? ¾?¹U?¸ AI?¥??¸® ¾?A??Uµé ¸ù?¢ »è?¦ ------------------- -- ¾?A??UA? CI³?¶?µµ A?´U¸é... if (exists (select top 1 itemID from _InventoryForAvatar where CharID = @CharID AND ItemID <> 0)) begin update _ItemPool Set InUse = 0 from _ItemPool as pool join _InventoryForAvatar as InvAva on pool.ItemID = InvAva.ItemID where InvAva.CharID = @CharID and InvAva.ItemID <> 0 end ----------- ¾?A??Uµé ³¯·EA¸´I ???¾AûA¸·ç ¾?¹U?¸ AI?¥??¸® »è?¦ ------------ delete from _InventoryForAvatar where CharID = @CharID if (@@error <> 0) begin return -10008 end
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- APPLY_AVATAR_SYSTEM (C?½A??) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
------------------------------------ -- COS »è?¦ ------------------------------------ /* declare @engaged_cos int set @engaged_cos = 0 select @engaged_cos = EngagedCOS from _char with (nolock) where CharID = @CharID if (@engaged_cos = 0) begin -- ?? ¹?»?CI´A ?? A? ¸?¸£°???¸¸... ¾??? µ?¹°°O COS ¸¸ ³²¾?A?´A °???°? A?´?¶?°?... -_-; select @engaged_cos = ID from _CharCOS with (nolock) where OwnerCharID = @CharID if (@engaged_cos is null) set @engaged_cos = 0 end if (@engaged_cos is not null and @engaged_cos <> 0) begin declare @Return_Del_COS int exec @Return_Del_COS = _DeleteCharCOS_NoTX @CharID, @engaged_cos if (@Return_Del_COS < 0) begin return -10002 end end */ ------------------------------------ -- Trijob µ¥A??? »è?¦ ------------------------------------ delete from _CharTrijob where CharID = @CharID ------------------------------------ -- ½??³ »è?¦ ------------------------------------ delete _CharSkill where CharId = @CharID delete _CharSkillMastery where charId = @CharID ------------------------------------ -- ?ù½??® »è?¦ ------------------------------------ delete _CharQuest where CharID = @CharID ------------------------------------ -- ±?µ? ¸â¹? »è?¦ ------------------------------------ -- !!! ¸¸¾à ?©±â¼* Guild ¸â¹? »è?¦°? AI¾î³??? ¾EA¸¸é ShardManager ??¼* -- _Guild_DelMember E£?âC? ??µµ·I ¼??¤C?¾? C?´U! ??±?A? ±× °??¤A? SkipCI°? -- ¸?¸?¸®??¼* »è?¦¸¸ AI¾î³?°O µC¾î A?°?µ¢... declare @GuildID int set @GuildID = 0 select @GuildID = GuildID from _char where charid = @CharID if (@GuildID is not null and @GuildID <> 0) begin if (not exists (select ID from _Guild where ID = @GuildID)) begin update _Char set GuildID = 0 where CharID = @CharID end else begin declare @Return_Del_GuildMember int exec @Return_Del_GuildMember = _Guild_DelMember_NoTX @GuildID, @CharID if (@Return_Del_GuildMember < 0) return -10003 end end
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- APPLY_MENTOR_SYSTEM (??AIE£) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ DECLARE @CampID INT SET @CampID = 0 SELECT @CampID = CampID FROM _TrainingCampMember WHERE CharID = @CharID IF (@CampID IS NOT NULL AND @CampID <> 0) BEGIN DECLARE @Ret_DelCampMember INT EXEC @Ret_DelCampMember = _TRAINING_CAMP_DELMEMBER @CampID, @CharID, 0 IF (@Ret_DelCampMember < 0) RETURN -10007 END
-- A?A¸¸é ????¹?¸®A?~ ¹¹. DELETE FROM _TrainingCampSubMentorHonorPoint WHERE CharID = @CharID
-- °?Cè?? ¹?C? ·¹??µ?µµ~~ ¤»¤» DELETE FROM _TrainingCampBuffStatus WHERE CampID = @CampID
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- APPLY_MENTOR_SYSTEM (??AIE£) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
----------------------------------- -- ?£±¸ ¸®½??® »è?¦ ( ³?AC ?£±¸ ¸®½??® + ?£±¸AC ?£±¸ ¸®½??®?? ³? ) ----------------------------------- -- ³» ?£±¸µé.. declare @FriendCharID int declare @cursor_var cursor set @cursor_var = cursor fast_forward for select FriendCharID from _Friend where CharID = @CharID open @cursor_var fetch next from @cursor_var into @FriendCharID while( @@FETCH_STATUS = 0 ) begin delete _Friend where CharID = @FriendCharID and FriendCharID = @CharID fetch next from @cursor_var into @FriendCharID end close @cursor_var deallocate @cursor_var -- ³?.. delete _Friend where CharID = @CharID ----------------------------------- ----------------------------------- -- AE?? »è?¦ ----------------------------------- delete _Memo where CharID = @CharID ------------------------------------ -- TimedJob »è?¦CI±â ------------------------------------ delete _TimedJob where CharID = @CharID ------------------------------------ -- Static Avatar ?¤?¸ »è?¦ ------------------------------------ delete from _staticavatar where charid = @charid ------------------------------------ -- ±?¸» ??·° ?¤?¸ »è?¦ ------------------------------------ delete from _BlockedWhisperers where OwnerID = @charid ------------------------------------ -- ???¼?E´ë ??·° ?¤?¸ »è?¦ 10.06.07 ------------------------------------ DELETE FROM _BlockedPartyInviter WHERE CharID = @charid ------------------------------------ -- _DeletedChar Entry »è?¦ ------------------------------------ delete from _DeletedChar where CharID = @CharID if (@@error <> 0) begin return -10004 end -- start by novice. DELETE FROM _User WHERE UserJID = @UserJID and CharID = @CharID -- finish by novice.
------------------------------------ -- commit !!! ------------------------------------ -- ?¬¶?A?¾??®?ë ?ü½½·O ?¤?¸ A?A? ?×A??? ³¯¸®±â!!! exec _RemoveClientConfig @CharID -- by novice...... for saving client configurations... return @GuildID
sro_vt_account
كود PHP:
USE [SRO_VT_ACCOUNT] GO /****** Object: StoredProcedure [dbo].[_ManageShardCharName] Script Date: 02/14/2012 12:56:27 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO ALTER procedure [dbo].[_ManageShardCharName] @job tinyint, @UserJID int, @ShardID smallint, @CharName varchar(64), @OldName varchar(64) as -- add new char name if (@job = 0) begin if (not exists(select * from SR_ShardCharNames where UserJID = @UserJID and ShardID = @ShardID and CharName = @CharName)) begin insert SR_ShardCharNames values(@UserJID, @ShardID, @CharName) end end -- remove char name else if (@job = 1) begin delete SR_ShardCharNames where UserJID = @UserJID and ShardID = @ShardID and CharName = @CharName -- delete SR_CharAppoint where UserJID = @UserJID and ShardID = @ShardID and CharID = @CharName end -- rename previous one else if (@job = 2) begin update SR_ShardCharNames set CharName = @CharName where UserJID = @UserJID and ShardID = @ShardID and CharName = @OldName -- update SR_CharAppoint set CharID = @CharName where UserJID = @UserJID and ShardID = @ShardID and CharID = @OldName end
ان شاء الله هزبطولك مشاكل الداتا
بس اعمل باك اب قبل استخدمهم لعدم حصول اخطاء
|
|
|