PDA

View Full Version : Online Players - Show Current IP


khelben
03.03.2007, 16:11
I'm trying to write a status script for GMs that builds off of L2CP's online players. I'm trying to add the current IP address of online players but I can't seem to find a table or stored proc that will get a players Current IP address. the lin2db.user_account.last_ip field only gets updated when a player logs out.


Anyone have any other ideas?

Thanks in advance.

m4rk
03.03.2007, 16:22
https://postpacific.loc-online.com/forums/showthread.php?t=6241&highlight=last_login

khelben
03.03.2007, 16:33
You're awesome! Thanks!

khelben
03.03.2007, 22:49
Hmmm, this isn't what i'm looking for.

ap_SLog fires after logout.

Ok, I login from x.x.x.x

Play for a bit, log out.

Then start playing again later, but now my ip is y.y.y.y

last_ip still says x.x.x.x, only after i log out again does last ip get updated to y.y.y.y

I need the current ip (y.y.y.y) to help my GMs

FidoW
03.03.2007, 23:06
You cant get current IP except ingame with //debug command.

khelben
03.03.2007, 23:12
that's what i was afraid of...