haha i need to call that from code, or do you think I watch every item move in the auction house and the linked character?
atm i do it like this:
Code:
AFTER INSERT AS
DECLARE @nType int
DECLARE @nCharNo int
SELECT @nType = ins.nType FROM inserted ins
SELECT @nCharNo = ins.nCharNo FROM inserted ins
IF ( @nType = '10')
BEGIN
INSERT tOnlineChar (nCharNo, dDate) VALUES (@nCharNo, GETDATE())
END
IF ( @nType = '11')
BEGIN
DELETE FROM tOnlineChar WHERE nCharNo = @nCharNo
END
that way i can check if online or not...and just to update my first post, there is no delay D:
event id 10 should be login and 11 logout...not sure tho