Thread: ≈ Hack L2AuthD
View Single Post
Old 12.04.2007, 16:36   #18
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Quote:
Originally Posted by elcapo View Post
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.
that's how i did it, i used auth_login as datetime instead of online and instead of checking online = 1 i checked datediff(ss, auth_login, getdate()) <= 30

also on char logout you can set the auth login flag again, that would allow another 30 seconds for them to choose a character, no restart required.


I'm going to package what i did here as soon as i can to make it easier on peeps, unless someone wants to share the dll fix..
khelben is offline