|
You last visited: Today at 22:20
Advertisement
Help Query Code Char delete
Discussion on Help Query Code Char delete within the SRO Private Server forum part of the Silkroad Online category.
06/01/2012, 03:15
|
#1
|
elite*gold: 0
Join Date: Feb 2012
Posts: 140
Received Thanks: 3
|
Help Query Code Char delete
hi guys. my db have char delete bug.7500 account waiting delete.
this codes only 1x account deleted. i dont want 7500 account manuel delete.Anyone help me query code?.
DELETE FROM _InventoryForAvatar WHERE charid = '81935'
DELETE FROM _Inventory WHERE charid = '81935'
DELETE FROM _CharSkillMastery WHERE charid = '81935'
DELETE FROM _CharSkill WHERE charid = '81935'
DELETE FROM _CharTrijob WHERE charid = '81935'
DELETE FROM _User WHERE charid = '81935'
DELETE FROM _StaticAvatar WHERE charid = '81935'
DELETE FROM _TimedJob WHERE charid = '81935'
DELETE FROM _char WHERE charid = '81935'
One people help me can edit sql code for delete delete _invontory from _char where deleted = '1' example.this code delete all _invontory :S all chars
sorry my eng bad:S
|
|
|
06/20/2012, 19:23
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 16
Received Thanks: 0
|
this easy
Make Pm me to skype:- where_love2003
and i tell you how you make it
|
|
|
04/19/2013, 23:23
|
#3
|
elite*gold: 0
Join Date: Jun 2011
Posts: 77
Received Thanks: 11
|
if you want to delete all characters from Database use it in SRO_VT_SHARD
truncate table _OpenMarket
print 'Cleaned _OpenMarket'
truncate table _CharSkill
print 'Cleaned _CharSkill'
truncate table _CharSkillMastery
print 'Cleaned _CharSkillMastery'
truncate table _GuildMember
print 'Cleaned _GuildMember'
truncate table _BlockedWhisperers
print 'Cleaned _BlockedWhisperers'
truncate table _Inventory
print 'Cleaned _Inventory'
truncate table _InventoryForAvatar
print 'Cleaned _InventoryForAvatar'
truncate table _InventoryForLinkedStorage
print 'Cleaned _InventoryForLinkedStorage'
truncate table _TrainingCampMember
print 'Cleaned _TrainingCampMember'
truncate table _TrainingCampSubMentorHonorPoint
print 'Cleaned _TrainingCampSubMentorHonorPoint'
update _TrainingCampHonorRank set CampID = NULL, Rank = NULL
print 'Cleaned _TrainingCampHonorRank'
truncate table _TrainingCampBuffStatus
print 'Cleaned _TrainingCampBuffStatus'
delete from _TrainingCamp
print 'Cleaned _TrainingCamp'
truncate table _StaticAvatar
print 'Cleaned _StaticAvatar'
truncate table _User
print 'Cleaned _User'
truncate table _Friend
print 'Cleaned _Friend'
truncate table _Memo
print 'Cleaned _Memo'
truncate table _TimedJob
print 'Cleaned _TimedJob'
truncate table _CharTrijobSafeTrade
print 'Cleaned _CharTrijobSafeTrade'
delete from _CharTrijob
print 'Cleaned _CharTrijob'
truncate table _InvCOS
print 'Cleaned _InvCOS'
delete from _CharCOS where ID > 0
print 'Cleaned _CharCOS'
delete from _Char where charid > 0
print 'Cleaned _Char'
truncate table _Chest
print 'Cleaned _Chest'
truncate table _ChestInfo
print 'Cleaned _ChestInfo'
truncate table _ItemPool
print 'Cleaned _ItemPool'
delete from _Items where ID64 > 0
print 'Cleaned _Items'
delete from _AccountJID
print 'Cleaned _AccountJID'
update _AlliedClans set Ally1 = 0, Ally2 = 0, Ally3 = 0, Ally4 = 0, Ally5 = 0, Ally6 = 0, Ally7 = 0, Ally8 = 0
print 'Cleaned _AlliedClans'
truncate table _GuildWar
print 'Cleaned _GuildWar'
truncate table _CharNameList
print 'Cleaned _CharNameList'
truncate table _CharQuest
print 'Cleaned _CharQuest'
truncate table _ClientConfig
print 'Cleaned _ClientConfig'
truncate table _DeletedChar
print 'Cleaned _DeletedChar'
truncate table _SiegeFortressStoneState
print 'Cleaned _SiegeFortressStoneState'
truncate table _SiegeFortressRequest
print 'Cleaned _SiegeFortressRequest'
truncate table _SiegeFortressObject
print 'Cleaned _SiegeFortressObject'
truncate table _SiegeFortressItemForge
print 'Cleaned _SiegeFortressItemForge'
truncate table _SiegeFortressBattleRecord
print 'Cleaned _SiegeFortressBattleRecord'
update _SiegeFortressStruct SET OwnerGuildID = '0'
print 'Cleaned _SiegeFortressStruct'
UPDATE _SiegeFortress SET GuildID = '0', TaxRatio = '0', Tax = '0', NPCHired = '0', Introduction = NULL, CreatedDungeonTime = NULL, CreatedDungeonCount = NULL
print 'Cleaned _SiegeFortress'
truncate table _CharNickNameList
print 'Cleaned _CharNickNameList'
truncate table _GPHistory
print 'Cleaned _GPHistory'
truncate table _GuildChest
print 'Cleaned _GuildChest'
delete from _Guild where ID > 0
print 'Cleaned _Guild'
delete from _AlliedClans where ID > 0
print 'Cleaned _AlliedClans'
|
|
|
04/20/2013, 00:16
|
#4
|
elite*gold: 0
Join Date: Apr 2013
Posts: 92
Received Thanks: 72
|
Quote:
Originally Posted by CuteSpear
if you want to delete all characters from Database use it in SRO_VT_SHARD
truncate table _OpenMarket
print 'Cleaned _OpenMarket'
truncate table _CharSkill
print 'Cleaned _CharSkill'
truncate table _CharSkillMastery
print 'Cleaned _CharSkillMastery'
truncate table _GuildMember
print 'Cleaned _GuildMember'
truncate table _BlockedWhisperers
print 'Cleaned _BlockedWhisperers'
truncate table _Inventory
print 'Cleaned _Inventory'
truncate table _InventoryForAvatar
print 'Cleaned _InventoryForAvatar'
truncate table _InventoryForLinkedStorage
print 'Cleaned _InventoryForLinkedStorage'
truncate table _TrainingCampMember
print 'Cleaned _TrainingCampMember'
truncate table _TrainingCampSubMentorHonorPoint
print 'Cleaned _TrainingCampSubMentorHonorPoint'
update _TrainingCampHonorRank set CampID = NULL, Rank = NULL
print 'Cleaned _TrainingCampHonorRank'
truncate table _TrainingCampBuffStatus
print 'Cleaned _TrainingCampBuffStatus'
delete from _TrainingCamp
print 'Cleaned _TrainingCamp'
truncate table _StaticAvatar
print 'Cleaned _StaticAvatar'
truncate table _User
print 'Cleaned _User'
truncate table _Friend
print 'Cleaned _Friend'
truncate table _Memo
print 'Cleaned _Memo'
truncate table _TimedJob
print 'Cleaned _TimedJob'
truncate table _CharTrijobSafeTrade
print 'Cleaned _CharTrijobSafeTrade'
delete from _CharTrijob
print 'Cleaned _CharTrijob'
truncate table _InvCOS
print 'Cleaned _InvCOS'
delete from _CharCOS where ID > 0
print 'Cleaned _CharCOS'
delete from _Char where charid > 0
print 'Cleaned _Char'
truncate table _Chest
print 'Cleaned _Chest'
truncate table _ChestInfo
print 'Cleaned _ChestInfo'
truncate table _ItemPool
print 'Cleaned _ItemPool'
delete from _Items where ID64 > 0
print 'Cleaned _Items'
delete from _AccountJID
print 'Cleaned _AccountJID'
update _AlliedClans set Ally1 = 0, Ally2 = 0, Ally3 = 0, Ally4 = 0, Ally5 = 0, Ally6 = 0, Ally7 = 0, Ally8 = 0
print 'Cleaned _AlliedClans'
truncate table _GuildWar
print 'Cleaned _GuildWar'
truncate table _CharNameList
print 'Cleaned _CharNameList'
truncate table _CharQuest
print 'Cleaned _CharQuest'
truncate table _ClientConfig
print 'Cleaned _ClientConfig'
truncate table _DeletedChar
print 'Cleaned _DeletedChar'
truncate table _SiegeFortressStoneState
print 'Cleaned _SiegeFortressStoneState'
truncate table _SiegeFortressRequest
print 'Cleaned _SiegeFortressRequest'
truncate table _SiegeFortressObject
print 'Cleaned _SiegeFortressObject'
truncate table _SiegeFortressItemForge
print 'Cleaned _SiegeFortressItemForge'
truncate table _SiegeFortressBattleRecord
print 'Cleaned _SiegeFortressBattleRecord'
update _SiegeFortressStruct SET OwnerGuildID = '0'
print 'Cleaned _SiegeFortressStruct'
UPDATE _SiegeFortress SET GuildID = '0', TaxRatio = '0', Tax = '0', NPCHired = '0', Introduction = NULL, CreatedDungeonTime = NULL, CreatedDungeonCount = NULL
print 'Cleaned _SiegeFortress'
truncate table _CharNickNameList
print 'Cleaned _CharNickNameList'
truncate table _GPHistory
print 'Cleaned _GPHistory'
truncate table _GuildChest
print 'Cleaned _GuildChest'
delete from _Guild where ID > 0
print 'Cleaned _Guild'
delete from _AlliedClans where ID > 0
print 'Cleaned _AlliedClans'
|
He Only want to delete 1 character
|
|
|
11/15/2013, 00:15
|
#5
|
elite*gold: 0
Join Date: May 2008
Posts: 18
Received Thanks: 0
|
Quote:
Originally Posted by ◄:●:►SanToS◄:●:►
He Only want to delete 1 character
|
i think this good query by me .
PHP Code:
USE SRO_VT_SHARD_NEW--Or your DB name.
--=============================================
-- by Mr.Abd eljwad elKady
-- ctpsro online
-- join us http://ctpsro.tk/
--=============================================
UPDATE _CHAR
SET DELETED='1'
WHERE CurLevel = 1 ---> No Lvel u wont to delete
--=============================================
-- by Mr.Abd eljwad elKady
-- ctpsro online
-- join us http://ctpsro.tk/
--=============================================
|
|
|
11/16/2013, 22:26
|
#6
|
elite*gold: 0
Join Date: Nov 2013
Posts: 13
Received Thanks: 2
|
aw_elkady thats the biggest **** Query ever
if u wanna delete 1 Char use this :
Code:
USE [SRO_VT_SHARD]
-- Query by InPanic-Kev
declare @CharID int , @CharName varchar(16)
set @CharName = 'CharName'
set @CharID = ( select CharID from _Char where CharName16 = @CharName )
exec [_DeleteCharPermanently] @CharID
|
|
|
11/17/2013, 20:24
|
#7
|
elite*gold: 20
Join Date: Sep 2007
Posts: 689
Received Thanks: 774
|
Quote:
Originally Posted by JamalXd
hi guys. my db have char delete bug.7500 account waiting delete.
this codes only 1x account deleted. i dont want 7500 account manuel delete.Anyone help me query code?.
DELETE FROM _InventoryForAvatar WHERE charid = '81935'
DELETE FROM _Inventory WHERE charid = '81935'
DELETE FROM _CharSkillMastery WHERE charid = '81935'
DELETE FROM _CharSkill WHERE charid = '81935'
DELETE FROM _CharTrijob WHERE charid = '81935'
DELETE FROM _User WHERE charid = '81935'
DELETE FROM _StaticAvatar WHERE charid = '81935'
DELETE FROM _TimedJob WHERE charid = '81935'
DELETE FROM _char WHERE charid = '81935'
|
I think you want to delete all chars, if that is right simply remove the where clause in your query;
DELETE FROM _InventoryForAvatar
DELETE FROM _Inventory
DELETE FROM _CharSkillMastery
DELETE FROM _CharSkill
DELETE FROM _CharTrijob
DELETE FROM _User
DELETE FROM _StaticAvatar
DELETE FROM _TimedJob
DELETE FROM _char
That's already enough.
|
|
|
 |
Similar Threads
|
Query code
04/30/2011 - Metin2 - 0 Replies
DELETE FROM player WHERE last_play<date_sub(current_timestamp,interval 3 month);
Dieses SQL Query Eingang und 3 Monate für nicht löscht Zeichen
Ich aber möchte die Konten und items löschen ??
|
HILFE BEI QUERY CODE !!!
06/29/2010 - Metin2 Private Server - 8 Replies
Hi epvpers,
ich habe ein Problem mit dem Query Code. Ich weiß einfach nicht was ich für einen Fehler mache. BILD ZU KLEIN UNTEN STEHT DER FEHLER
Ich bin sehr sehr sehr dankbar wenn ihr mir helfen könnt.
MfG
Nickelback93
|
Query Code ?
06/13/2010 - Metin2 Private Server - 0 Replies
Hey Leute,
Also mein Server ist Letzten (als ich lvl 127 machen wollte) down gegangen nun in navicat usw. kam ich noch rein weiß jemand vlt. wie man für Acc´s , Itemproto , Mobproto usw. aus meiner DB in einen Query Code´s wandelt? wäre nett wenn mir jemand helfen würde
Gibt ein Thx
|
Item_Proto als Query Code
05/25/2010 - Metin2 Private Server - 0 Replies
Hi,
wie kann ich die Item Proto als Query Code speichern?
Thx
|
[How To]Tabellen Spalten mit nur einem Code ändern.(Query code)
04/09/2010 - Metin2 PServer Guides & Strategies - 17 Replies
Hi Leute,
Ich zeige euch wie ihr schnell und konfortabel eine Komplette Tabellen spaöte mit nur einem code ändern könnt.
Was wird benötigt:
Navicat
Brain.exe
Ein bisschen Verstand
|
All times are GMT +1. The time now is 22:22.
|
|