UPDATE `accounts` SET premium_points=premium_points*2;
Is there any way to replace all crown backpacks (10522)from players/dps with normal backpacks (1988) ?
UPDATE `player_items`, `player_depotitems`, `tile_items` SET `itemtype` = '1988' WHERE `itemtype` = '10522';
Thanks!
Edit:
I get this error when trying the command in the post above this:
#1052 - Column 'itemtype' in field list is ambiguous
What does this mean?
UPDATE `player_items` SET `itemtype` = '1988' WHERE `itemtype` = '10522';
UPDATE `player_depotitems` SET `itemtype` = '1988' WHERE `itemtype` = '10522';
UPDATE `tile_items` SET `itemtype` = '1988' WHERE `itemtype` = '10522';
I thought attributes (in this case charges) were stored in blobAND `count` = 100;
Hmm yeah might be true, I have no idea actually since I have never really worked with the item tables.I thought attributes (in this case charges) were stored in blob
They are, but it seems like charges are count here.
What about this: remove house ownership if player is not on database.
![]()
UPDATE `houses` SET `owner` = '0' WHERE `houses`.`owner` NOT IN ( SELECT `players`.`id` FROM `players` WHERE `players`.`id` = `houses`.`owner` );