Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 22.11.2005, 00:51   #1
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default How autoclear online players

I get list of online players by query

select char_name from user_data where login>logout

where I should inject this query:

update user_data set logout=login where login>logout

to clear online status after server crash?

I try it in lin_loadItems, lin_LoadNpcBoss. But 1st procedure calls many times during server works, and second may exec and may not exec. Also I tried this query in lin_LoadAgitAll. But without success. Please tell me what stored procedure calls once this server starting.
RmzVoid is offline  
Old 22.11.2005, 01:46   #2
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Upon the l2server crash, you should have cached auto restart. Then you can make the additional sql query from the auto clear unowned items.
Firedaemon is offline  
Old 22.11.2005, 02:01   #3
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

not items, player logout time
RmzVoid is offline  
Old 22.11.2005, 04:26   #4
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default

<rus>
когда cached запускается - он выполняет процедуру clear unowned items дык вот - в нее сунь свой запрос и при старте cached у тебя количество онлайна грохнется, правда нада при этом кэшед ребутить - но это уже другой я думаю вопрос
</rus>
srh is offline  
Old 22.11.2005, 05:56   #5
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

а где я возьму эту процедуру? у меня её нету
RmzVoid is offline  
Old 22.11.2005, 07:25   #6
tetsunoony
Архивный участник
 
Join Date: Nov 2005
Posts: 26
Default

is credited and tested.
Your Request script is here

http://www.l2net.org/forum/viewtopic.php?p=90#90

tetsunoony
tetsunoony is offline  
Old 22.11.2005, 09:15   #7
montejo1974
Архивный участник
 
Join Date: Aug 2005
Posts: 42
Default

Ey tettsuuonny...do you know you can put code here, so ppl havent to sign in your web.

I think this man only wants publicity his own web.
montejo1974 is offline  
Old 22.11.2005, 10:03   #8
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default

lin_DeleteNotOwnedItem procedure (open in ent. manager, db lin2world, stored procedures)
after line "DELETE user_item WHERE char_id = 0 OR item_type = 0"
add your own:
update user_data set logout=login where login>logout
*edit*
post a screen ?
srh is offline  
Old 22.11.2005, 13:18   #9
tetsunoony
Архивный участник
 
Join Date: Nov 2005
Posts: 26
Default

I do my way for Creditable L2Off Stuffs and Mods.
tetsunoony is offline  
Old 23.11.2005, 09:04   #10
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

Logout fix which i use on my admin page. This will set curent logout date/time to all on/offline chars.
So i suggest u use this only at offline server.

[php:1:cf7fe443a9]<?php
require('load.php');

$query ="UPDATE user_data SET logout = getdate()";
$result = mssql_query($query);

if($result)
{
echoLn("Global Logout time set");
}
?>[/php:1:cf7fe443a9]
BiGBoY is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:14.