• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to: remove itens from house of deleted players ?

1268995

Member
Joined
Sep 9, 2010
Messages
422
Reaction score
13
I am trying this command:

Code:
UPDATE `houses` SET `owner` = '0' WHERE `houses`.`owner` NOT IN ( SELECT `players`.`id` FROM `players` WHERE `players`.`id` = `houses`.`owner` );

But its not working. Do not appear any error, but itens inside houses are not being deleted.

EDIT: i am reseting my server... if u guys have other way to remove itens from deleted players from house, tell me!
 
I have no clue how to automatically do it.. but you could create another god character, then make him the house owner, then remove house, and all items will go into his depot. xD
(I'll look for a better solution though. :p)

https://otland.net/threads/remove-house-owner.129065/

I'm not good with the commands, but this was interesting. :(
Maybe the commands used will help you. :P
 
Last edited by a moderator:
Please do backup before trying. I could not test it:

Code:
DELETE FROM `tile_store` WHERE `tile_store`.`house_id` NOT IN ( SELECT `houses`.`id` FROM `houses` WHERE `houses`.`owner` NOT IN ( SELECT `players`.`id` FROM `players` WHERE `players`.`id` = `houses`.`owner` ) );
 
Back
Top