Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 16:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Unique Logger (Source included)

Discussion on [Release] Unique Logger (Source included) within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 11
Join Date: May 2009
Posts: 617
Received Thanks: 587
[Release] Unique Logger (Source included)

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 :


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>';
?>
qoaway is offline  
Thanks
9 Users
Old 06/01/2012, 06:47   #2
 
elite*gold: 0
Join Date: Jun 2012
Posts: 1
Received Thanks: 0
Anti Money Laundering

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.
Santiago2 is offline  
Old 06/02/2012, 14:52   #3
 
elite*gold: 11
Join Date: May 2009
Posts: 617
Received Thanks: 587
up
qoaway is offline  
Old 06/02/2012, 20:48   #4
 
elite*gold: 0
Join Date: Apr 2011
Posts: 590
Received Thanks: 774
thanks
BestOnWorld is offline  
Old 06/02/2012, 20:49   #5
 
elite*gold: 0
Join Date: Jan 2011
Posts: 233
Received Thanks: 23
Thanks dude nice job
Mr.Anonymous is offline  
Old 06/03/2012, 20:59   #6
 
elite*gold: 0
Join Date: Mar 2012
Posts: 14
Received Thanks: 0
i get this error


while i run uniquelogger.exe

dark_man00 is offline  
Old 06/09/2012, 13:14   #7
 
Syinea's Avatar
 
elite*gold: 5
Join Date: May 2012
Posts: 217
Received Thanks: 113
Works fine Thanks
Syinea is offline  
Old 06/11/2012, 08:50   #8
 
elite*gold: 0
Join Date: May 2012
Posts: 190
Received Thanks: 66
useful thanks i will use it later
ღ•Imagine• is offline  
Old 06/11/2012, 11:37   #9
 
eminem5's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 651
Received Thanks: 266
great working !
eminem5 is offline  
Old 06/11/2012, 12:13   #10
 
elite*gold: 0
Join Date: May 2012
Posts: 190
Received Thanks: 66
tested and working good thank you ..
ღ•Imagine• is offline  
Old 06/12/2012, 01:26   #11

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
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
    
}

sarkoplata is offline  
Thanks
1 User
Old 06/28/2012, 00:13   #12
 
elite*gold: 0
Join Date: Jun 2011
Posts: 49
Received Thanks: 0
I really don't know where is that DB and i don't know where to put It plz answer me
yehiarekaby is offline  
Old 08/14/2012, 15:38   #13
 
elite*gold: 0
Join Date: Jul 2012
Posts: 116
Received Thanks: 6
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?
noenergy is offline  
Old 09/01/2012, 21:06   #14
 
spinal2's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 241
Received Thanks: 16
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 ?
spinal2 is offline  
Old 08/29/2015, 15:13   #15
 
elite*gold: 0
Join Date: Dec 2014
Posts: 26
Received Thanks: 0
SAME
mamlaka is offline  
Reply


Similar Threads Similar Threads
[Release] Blowfish getter for all new sro version [source code included]
03/21/2017 - SRO Private Server - 19 Replies
Hello,today i'll release my blowfish key getter,it uses silkroad.exe,not sro_client I included source code Download credits for vitalka for FindPattern functions this won't work with the very old clients H.f
Auto Enter v1 [Source included]
02/06/2012 - SRO Hacks, Bots, Cheats & Exploits - 90 Replies
Silkroad Auto Enter + Source - Updated 6/6/09 - v1.5.2 by SpInKsTaR :] http://img199.imageshack.us/img199/3496/autoenter .jpg Hai guys, I know theres like 1,000,000 of these key pressers around, but heres myn anyway ;P Dont really need to explain much, its all self explanatory Feel free to modify to code anyway you like
[C++ Source Code]Position Logger.
11/05/2010 - WarRock - 11 Replies
Hallo Community, ich Release hier den Source Code meines Position Loggers den ich in C++ Programmiert habe Wenn man damit ingame Numpad 0 drückt speichert er die Aktuelle Position ( X , Y , Z ) in einer Datei Namens 'Positions.txt' Sehr nützlich für z.B. Tele. to Ammo / Tele. to Health / Tele. to Bomb etc. Brain.cpp: #include <windows.h> #include <stdio.h> #include "Log.h"
Unique spawn logger?
04/14/2010 - Silkroad Online - 3 Replies
Hey all, is there any program that logs the time of unique spawn? Im on rsro atm, an iBot doesnt do this... (i dont suppose version of game matters so i post here because more likely for answer ^^) Thanks for any help cocobro
Injects Updater (source included)
01/05/2009 - SRO Hacks, Bots, Cheats & Exploits - 7 Replies
What does it do? This program replaces old injects in AgBot scripts with the most recent ones Why did I make it? We had to update the injects in AgDev, and in stead of having to go through every file, I made a function to easily "update" the injects. I thought it was kinda handy, so I made this little program Why did I include the source code? This program is really too easy to make, so I thought "why don't I just release the source code?". This can also be handy for ppl who are...



All times are GMT +2. The time now is 16:17.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.