Added Fix for Duplicates
This will help the issues of players duplicating in your db, the duplicated will still exist but the server will no longer load them. Added new query to remove dead players (Not enabled in code yet)
This commit is contained in:
parent
f03449d7ec
commit
45711d71d9
@ -99,9 +99,17 @@ SQL1_INPUTS = 1,2,3,4,5
|
||||
|
||||
[deletePlayer]
|
||||
SQL1_1 = DELETE FROM player WHERE id = ?
|
||||
|
||||
SQL2_1 = SET SQL_SAFE_UPDATES=0;
|
||||
SQL3_1 = DELETE FROM player WHERE id IN (SELECT id FROM (SELECT * FROM player WHERE damage =1) AS c)
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
;;CALL THIS DURRING CHARACTER CREATION
|
||||
[deleteDeadPlayer]
|
||||
SQL1_1 = SET SQL_SAFE_UPDATES=0;
|
||||
SQL2_1 = DELETE FROM player WHERE id IN (SELECT id FROM (SELECT * FROM player WHERE damage =1) AS c)
|
||||
SQL1_INPUTS = 0
|
||||
|
||||
;;TEMP FIX FOR DUPLICATE ENTIRES
|
||||
[loadPlayer]
|
||||
SQL1_1 = SELECT p.id,
|
||||
SQL1_2 = p.name,
|
||||
@ -155,7 +163,7 @@ SQL1_49 = INNER JOIN account a
|
||||
SQL1_50 = ON a.uid = p.account_uid
|
||||
SQL1_51 = LEFT JOIN clan c
|
||||
SQL1_52 = ON c.id = a.clan_id
|
||||
SQL1_53 = WHERE p.account_uid = ?
|
||||
SQL1_53 = WHERE p.account_uid = ? AND p.damage < 1
|
||||
|
||||
SQL1_INPUTS = 1
|
||||
OUTPUT = 1,2-STRING,3-STRING,4,5,6,7,8,9,10,11,12,13,14,15,16-STRING,17,18,19,20-STRING,21-STRING,22,23-STRING,24-STRING,25-STRING,26,27-STRING,28,29-STRING,30,31-STRING,32,33,34,35-STRING,36,37,38,39,40,41,42,43,44-STRING,45,46,47
|
||||
|
Loading…
Reference in New Issue
Block a user