[Release] Unique Logger (Source included)

04/03/2012 20:19 qoaway#1
how it works ?
-it reads daily logs and updates uniques who killed, spawn time etc. like old rev6
how to setup ?
1-run this query on shard db

2-extract uniquelogger.exe to your server files folder (gameserver's folder)

3-edit config.ini with your db settings

4-run & enjoy !

download : [Only registered and activated users can see links. Click Here To Register...]


simple php script for reading logs from db :

PHP Code:
<?

    $host     
"db_server";
    
$user     "db_id";
    
$pass     "db_pw";
    
$db      "db_name";
$sConn odbc_connect("Driver={SQL Server};Server={".$host."}; Database={".$db."}""".$user."""".$pass."") or die("<center><b style=\"border:1px dashed #FF0000;\">".str_replace("[Microsoft][ODBC SQL Server Driver][SQL Server]"""odbc_errormsg())."</b></center>");

$query odbc_exec($sConn,"SELECT * FROM UniqueStatus ORDER BY ID");
echo 
'<table border=1>
<tr>
<th>Unique</th>
<th>Spawned Time</th>
<th>Killer</th>
<th>Killed Time</th>
</tr>'
;
while(
$row odbc_fetch_array($query))
{
    echo 
'
    <tr>
    <td>'
.$row['Unique'].'</td>
    <td>'
.$row['SpawnTime'].'</td>
    <td>'
.$row['Killer'].'</td>
    <td>'
.$row['KilledTime'].'</td>
    </tr>
    '
;
}
echo 
'</table>';
?>
06/01/2012 06:47 Santiago2#2
Its a good info with a great job. really in a web site for more need to a best data base function, I used these all query for my data base. thanks you again.
06/02/2012 14:52 qoaway#3
up
06/02/2012 20:48 BestOnWorld#4
thanks
06/02/2012 20:49 Mr.Anonymous#5
Thanks dude :) nice job
06/03/2012 20:59 dark_man00#6
i get this error :(


while i run uniquelogger.exe

[Only registered and activated users can see links. Click Here To Register...]
06/09/2012 13:14 Syinea#7
Works fine Thanks
06/11/2012 08:50 ღ•Imagine•#8
useful thanks i will use it later;)
06/11/2012 11:37 eminem5#9
great working !
06/11/2012 12:13 ღ•Imagine•#10
tested and working good thank you ..
06/12/2012 01:26 sarkoplata#11
Personally I would do this via PHP :)

PHP Code:
$fullpath 'path to gameserver.exe' "\\" 'file name of fatallog.txt. 
You have to choose the latest one.'
// Be careful using slashes

$fileArray file($fullpath);      
 foreach(
$fileArray as $key => $value)
{
    if(
stristr($value"UNIQUE MONSTER KILLED") !== FALSE)
    {
        
$explodearray explode("\t"$value);
        
$time $explodearray[0] . " " $explodearray[1];
        
$alltext str_replace("Unique Monster Killed! UNIQUE["""$explodearray[3]);
        
$exploded explode("] by ["$alltext);                                                              
        
$uniquename $exploded[0];
        
$killername11 str_replace("]"""$exploded[1]);
        
$killername trim($killername11);
                            
        
writetodb($uniquename$killername$time);
          
// your own function to write into database
    
}

06/28/2012 00:13 yehiarekaby#12
I really don't know where is that DB and i don't know where to put It plz answer me
08/14/2012 15:38 noenergy#13
hay i get an error when i run uniquequeloger.exe ...

Line 3235(File "C......"):

Error: Array variable has incorrct number of subscripts or subscript dimension range exeeded

what i must do?
09/01/2012 21:06 spinal2#14
Quote:
Originally Posted by noenergy View Post
hay i get an error when i run uniquequeloger.exe ...

Line 3235(File "C......"):

Error: Array variable has incorrct number of subscripts or subscript dimension range exeeded

what i must do?


Some Error Here .. So can make this without execute uniquelogger.exe ?
08/29/2015 15:13 mamlaka#15
SAME