PDA

View Full Version : [Help] ap_LogOutWithPoint


tpuNIsher
20.04.2007, 19:01
Anyone has the stored proc ap_LogOutWithPoint? Dunno which db it's from, but authd makes call to it. I wanna know what it is, If you have it, please contact me.
Thanks.

khelben
21.04.2007, 06:19
I've seen the red errors as well in authd, I would imagine that the proc is in lin2db all the other ap_ procs are there.

I would imagine it's updating x, y, z for the character, I haven't been able to find it either, but if that's what it's doing it shouldn't be too hard to write.

tpuNIsher
21.04.2007, 06:53
I'm gonna try to write something with it later, see if it works out.

MuNLoK
21.04.2007, 08:42
it appears only when you close the auth server while it had connected a l2server, next you run auth server again, the l2server reconnect to auth and does a global login with all the character that had logged in in l2server, the auth server allow the reloggin of all character but it begins to shows errors with the ap_LogOutWithPoint procedure and others.

RetaL
23.04.2007, 11:46
Well,it's not a fix tho,but it stopped showing those errors.It's a lin2db procedure.
set ANSI_NULLS ON
GO

ALTER PROCEDURE [dbo].[ap_LogoutWithPoint]
@block_end_date datetime,
@last_login datetime,
@last_logout datetime
AS
SELECT 0

rayovac
24.04.2007, 05:13
I got a message into authd window complaining about a not alowed implicit conversion between datetime and int.

I mean it happens because the procedure is called whith one of its parameters typed as datetime. (In my case the second one)
Just change the parameter type to datetime as RetaL did and sql server will stop complaining about that.
In my case i only change the second parameter and the procedure do absolutely nothing as i dont know what is supposed to do.
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER PROCEDURE [dbo].[ap_LogoutWithPoint] @uid int, @time datetime, @point int
AS
If anybody knows how it would work please tell us to write it propperly.

RetaL
24.04.2007, 11:25
I got a message into authd window complaining about a not alowed implicit conversion between datetime and int.

I mean it happens because the procedure is called whith one of its parameters typed as datetime. (In my case the second one)
Just change the parameter type to datetime as RetaL did and sql server will stop complaining about that.
In my case i only change the second parameter and the procedure do absolutely nothing as i dont know what is supposed to do.
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER PROCEDURE [dbo].[ap_LogoutWithPoint] @uid int, @time datetime, @point int
AS
If anybody knows how it would work please tell us to write it propperly.
Well,I used profiler to see how it writes the procedure,it looked like
exec ap_LogoutWithPoint "","date/time","date/time"