declare @charid varchar(max) = (select CHARID from _Char where CharName16 = @oldcharname)
Update _CharNameList
Set CharName16 = @newcharname where CharID = @charid
Update _Char
Set Charname16 = @newcharname where charname16 = @oldcharname
Update _GuildMember
Set CharName = @newcharname where CharName = @oldcharname
Update _Friend
Set FriendCharName = @newcharname where FriendCharName = @oldcharname
Print @oldcharname+' changed to '+@newcharname
[/sq]
query to reset account skill ...
For China
كود PHP:
USE SRO_VT_SHARD
DECLARE @CharName varchar (64)
DECLARE @CharID int
DECLARE @GiveSP int
SET @CharName = 'CharName' --Your Char Name
SET @GiveSP = '10000000' --Write the amount of Skill Point
SET @CharID = (SELECT CharID FROM _Char WHERE CharName16 = @CharName) --Do not change
-- edit by InPanic Kev --
update _ClientConfig
set Data = '0'
where CharID = @CharID
-- edit by InPanic Kev --
--- Do Not Change Here ---
--- made by ModGift for RZ ---
DELETE [dbo].[_CharSkill]
WHERE [CharID] = @CharID and [SkillID] > '2' and SkillID<'40'
DELETE [dbo].[_CharSkill]
WHERE [CharID] = @CharID and [SkillID] > '40' and SkillID<'70'
DELETE [dbo].[_CharSkill]
WHERE [CharID] = @CharID and [SkillID] > '70'
UPDATE [dbo].[_CharSkillMastery]
SET
[Level] = '0'
WHERE CharID= @CharID
UPDATE [dbo].[_Char]
SET RemainSkillPoint= @GiveSP
WHERE CharName16 = @CharName
GO
For Europ
كود PHP:
USE SRO_VT_SHARD
DECLARE @CharName varchar (64)
DECLARE @CharID int
DECLARE @GiveSP int
SET @CharName = 'CharName' --Your Char Name
SET @GiveSP = '10000000' --Write the amount of Skill Point
SET @CharID = (SELECT CharID FROM _Char WHERE CharName16 = @CharName) --Do not change
-- edit by InPanic Kev --
update _ClientConfig
set Data = '0'
where CharID = @CharID
-- edit by InPanic Kev --
--- Do Not Change Here ---
--- made by ModGift for RZ ---
DELETE [dbo].[_CharSkill]
WHERE [CharID] = @CharID and [SkillID] > '2'
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID
,'8421'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID
,'8419'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID,
'8420'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID,
'9354'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID,
'9355'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID,
'9944'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID,
'10625'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID,
'11162'
,'1')
INSERT INTO [dbo].[_CharSkill]
([CharID]
,[SkillID]
,[Enable])
VALUES
(@CharID,
'11526'
,'1')
UPDATE [dbo].[_CharSkillMastery]
SET
[Level] = '0'
WHERE CharID= @CharID
UPDATE [dbo].[_Char]
SET RemainSkillPoint= @GiveSP
WHERE CharName16 = @CharName
GO
For reset all chars
كود PHP:
USE [SRO_VT_SHARD]
GO
--Made by ModGift for RaGeZoNe
-- edit by InPanic Kev --
update _ClientConfig
set Data = '0'
-- edit by InPanic Kev --
DELETE FROM [dbo].[_CharSkill]
WHERE SKillID NOT LIKE '1' and SKillID NOT LIKE '2' and SKillID NOT LIKE '40'
and SKillID NOT LIKE '70' and SKillID NOT LIKE '8421' and SKillID NOT LIKE '8419'
and SKillID NOT LIKE '8420' and SKillID NOT LIKE '9354' and SKillID NOT LIKE '9355'
and SKillID NOT LIKE '9944' and SKillID NOT LIKE '10625' and SKillID NOT LIKE '11162'
and SKillID NOT LIKE '11526'
GO
UPDATE [dbo].[_CharSkillMastery]
SET
[Level] = '0'
التعديل الأخير تم بواسطة ™Shi6on ; 19-06-2015 الساعة 07:14 PM
DELETE from _BlockedWhisperers where OwnerID in (select CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _Items where ID64 In (SELECT ItemID from _Inventory where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')) and not ID64 = 0
DELETE FROM _Items where ID64 In (SELECT ItemID from _ItemPool where ItemID in (SELECT ItemID from _ItemPool where ItemID in (SELECT ItemID from _Inventory where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name'))))
DELETE from _ItemPool where ItemID in (SELECT ItemID from _Inventory where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name'))
DELETE from _Chest where UserJID in (SELECT UserJID from _User where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name'))
DELETE from _Inventory where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharSkill where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharSkillMastery where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharTrijobSafeTrade where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharTrijob where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _ClientConfig where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _DeletedChar where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharQuest where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharCollectionBook where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharNickNameList where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _CharNameList where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _Friend where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _InventoryForAvatar where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _Memo where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _StaticAvatar where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _InvCOS where CosID in (SELECT ID FROM _CharCOS where OwnerCharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name'))
DELETE FROM _CharCOS where OwnerCharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _User where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _TimedJob where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _TrainingCampSubMentorHonorPoint where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _Friend where FriendCharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _GuildMember where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _TrainingCampMember where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name')
DELETE FROM _AccountJID WHERE JID in (SELECT UserJID from _User where CharID in (SELECT CharID FROM _Char where CharName16 = 'Char Name'))
DELETE FROM _Char where CharName16 = 'Char Name'