• 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!

Deleted character can still log in

Unknown Soldier

Mapping a map
Joined
Oct 30, 2010
Messages
289
Solutions
11
Reaction score
659
Hello,

while editing layout and "deleted" descriptions in both acc management and characters page I have found an unexpected problem... Characters which are deleted (deleted = 1 in database) can still login...

I am almost sure, that few weeks back when characters were deleted - they couldn't log in. Have not changed server, neither ACC... I have tried server backup from 1,5 months ago, and I was still abe to log in on a deleted characters.

Is this a problem with database, or rather is this something else?

Well, I have found a "walk around" solution... I still don't know why have this happened, and will be bumping this thread cause maybe someone knows the reason and maybe have a solution too.

In acc management file (Gesior) after:
PHP:
$player->set('deleted', 1);
I have added a line:
PHP:
$SQL->query('UPDATE `players` SET `deletion` = 1 WHERE `id` = ' . $player->getID());
which sets players' "deletion" parameter to 1, which means it is deleted and not visible on player list (but still visible on website) in Tibia client. I think it is even better solution than original one, but the thing that deletion dissapeared somehow is bugging me anyway :)

If you want to keep "undelete" function, you can add the same line there, just changing 1 to 0.

@edit
I am not sure, if the value in 'deletion' should be set to '1', because cell ist set to big integer (15), and simple yes/no cells are set to tiny integer (1)... So if someone could correct me if Im wrong. Anyway, this solution seems to be working with value "1" :)

As I said, still looking for reason why have this happened!
 
Last edited by a moderator:
Seems like you forgot to mention what distribution you are using.

Post your protocolgame/login
 
IMO setting deleted in sql is not all you need to do to ban player. Make sure you are not doing this when player is online, because it will be back to deleted 0.
 
It is not related to ban, it is just an option on Gesior ACC on account management page which lets player delete his/hers character. It sets "delete" cell to 1, but leaving "deletion" at 0. And this still lets log in on "deleted" character. You can't delete a character on website, when it is online.

So I have added mentioned line in .php file, which sets also "deletion" to 1. This makes deleted character dissappear from the player list, when you try to log in on Tibia client. So it is fine for me, because then you can not login on deleted character :)

Buy anyway, original "delete" option should also be working without my code modification, isn't it?
 
Back
Top