Thread: Hack L2AuthD
View Single Post
Old 12.04.2007, 15:55   #17
elcapo
Архивный участник
 
Join Date: Mar 2005
Posts: 107
Default

you could use a "date" field instead of a integer.
update that field with NOW() when loggin correctly. (i dont remember the stored procedure that excecute when login).
check for time difference at the time to take characters.
if (field.time > 5 seconds) then, return char_id = -1
otherwise, give it the correct char_ids

This way, u dont want to bother for updating to 0. Time is always running.

What u think?

I would to the change in this procedure: lin_GetCharByAccountId
Why to give char_ids to someone who we dont know if is the owner? check first for that.
Check too, at the time to create a new char.
elcapo is offline