Raised This Month: $51 Target: $400
 12% 

Found Item Logger


Post New Thread Reply   
 
Thread Tools Display Modes
Author
r5053
SourceMod Donor
Join Date: May 2007
Location: Germany
Plugin ID:
893
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-23-2009 , 14:43   Found Item Logger
    Reply With Quote #1

    This is a Very Basic Logging Plugin that loggs the found Items to a Database.

    I will include this soon into my TF2 Plugin http://forums.alliedmods.net/showthread.php?t=63058

    The only thing you've to do is add a database entry into the database.cfg with the name itemlogger
    Attached Files
    File Type: sp Get Plugin or Get Source (founditemlog.sp - 1096 views - 2.4 KB)
    __________________
    Visit HLPortal.de (this is not my Page)



    Last edited by r5053; 05-23-2009 at 15:03.
    r5053 is offline
    Send a message via ICQ to r5053 Send a message via Skype™ to r5053
    almcaeobtac
    Senior Member
    Join Date: Nov 2008
    Location: Florida
    Old 05-23-2009 , 16:00   Re: Found Item Logger
    Reply With Quote #2

    What does it exactly do?
    almcaeobtac is offline
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 05-23-2009 , 16:57   Re: Found Item Logger
    Reply With Quote #3

    Quote:
    Originally Posted by almcaeobtac View Post
    What does it exactly do?
    Since the new TF update players are able to find a new weapons and items randomly during the game. So this plugin logs such events.
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 05-23-2009 , 19:44   Re: Found Item Logger
    Reply With Quote #4

    So we can find a trend?
    __________________

    DontWannaName is offline
    pheadxdll
    AlliedModders Donor
    Join Date: Jun 2008
    Old 05-23-2009 , 23:38   Re: Found Item Logger
    Reply With Quote #5

    Yes, perhaps its not as random as Valve wants us to think!

    I made a quick and dirty php script that reads the database and prints out the information to a webpage. Someone else might find this useful!

    PHP Code:
     <h1>Found Item Logger:</h1>

    <?php
    // Linux_lover for http://forums.alliedmods.net/showthread.php?t=93042
    $user "itemlogger";
    $pass "itemlogger";
    $db   "itemlogger";
    $host "localhost";

    mysql_connect($host$user$pass) or mysql_error();
    mysql_select_db($db) or mysql_error();

    $result mysql_query("SELECT * FROM `log`");

    if(
    mysql_num_rows($result) < 1) echo "<i>There are no entries in the log..</i><br /><br />";
    ?>

    <table border="1" cellpadding="3">
    <tr style="font-weight: bold;"><td>ID:</td><td>STEAM 
        ID:</td><td>ACTUALTIME:</td><td>ONLINEPLAYERS:</td><td>ITEM:</td></tr>

    <?php
    while($row mysql_fetch_array($result)) 
    {
    ?>
    <tr><td><?php echo $row['ID']; ?></td><td><?php echo $row['STEAMID']; ?></td><td><?php echo $row['ACTUALTIME']; ?></td><td><?php echo $row['ONLINEPLAYERS']; ?></td><td><?php echo $row['ITEM']; ?></td></tr>
    <?php
    }
    mysql_close();
    ?>

    </table>
    __________________

    Last edited by pheadxdll; 05-23-2009 at 23:48.
    pheadxdll is offline
    wycs
    Junior Member
    Join Date: Dec 2008
    Old 05-24-2009 , 02:05   Re: Found Item Logger
    Reply With Quote #6

    Quote:
    Originally Posted by pheadxdll View Post
    Yes, perhaps its not as random as Valve wants us to think!

    I made a quick and dirty php script that reads the database and prints out the information to a webpage. Someone else might find this useful!

    PHP Code:
     <h1>Found Item Logger:</h1>

    <?php
    // Linux_lover for http://forums.alliedmods.net/showthread.php?t=93042
    $user "itemlogger";
    $pass "itemlogger";
    $db   "itemlogger";
    $host "localhost";

    mysql_connect($host$user$pass) or mysql_error();
    mysql_select_db($db) or mysql_error();

    $result mysql_query("SELECT * FROM `log`");

    if(
    mysql_num_rows($result) < 1) echo "<i>There are no entries in the log..</i><br /><br />";
    ?>

    <table border="1" cellpadding="3">
    <tr style="font-weight: bold;"><td>ID:</td><td>STEAM 
        ID:</td><td>ACTUALTIME:</td><td>ONLINEPLAYERS:</td><td>ITEM:</td></tr>

    <?php
    while($row mysql_fetch_array($result)) 
    {
    ?>
    <tr><td><?php echo $row['ID']; ?></td><td><?php echo $row['STEAMID']; ?></td><td><?php echo $row['ACTUALTIME']; ?></td><td><?php echo $row['ONLINEPLAYERS']; ?></td><td><?php echo $row['ITEM']; ?></td></tr>
    <?php
    }
    mysql_close();
    ?>

    </table>
    What is the "Actual Time" ?
    wycs is offline
    pheadxdll
    AlliedModders Donor
    Join Date: Jun 2008
    Old 05-24-2009 , 02:09   Re: Found Item Logger
    Reply With Quote #7

    The plugin logs the time each item is found as a unix timestamp via GetTime()
    __________________
    pheadxdll is offline
    gamma
    Senior Member
    Join Date: Apr 2008
    Old 05-24-2009 , 05:45   Re: Found Item Logger
    Reply With Quote #8

    does someone know what is this ? found it on some forum.
    Quote:
    #include <sourcemod>
    #include <sdktools>

    new Handle:hGameConf;
    new Handle:hGiveNamedItem;

    public OnPluginStart()
    {
    hGameConf = LoadGameConfigFile("plugin.sdkexamples");

    StartPrepSDKCall(SDKCall_Player);
    PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "GiveNamedItem");
    PrepSDKCall_SetReturnInfo(SDKType_CBaseEntity , SDKPass_Pointer);
    PrepSDKCall_AddParameter(SDKType_String, SDKPass_Pointer);
    PrepSDKCall_AddParameter(SDKType_PlainOldData , SDKPass_Plain);
    hGiveNamedItem = EndPrepSDKCall();
    }

    GiveItem(client, const String:item[])
    {
    return SDKCall(hGiveNamedItem, client, item, 0);
    }
    you can also check *****\Steam\appcache\app_440.vdf
    for this

    Quote:
    440 enabled 1 item_level_min 0 item_level_max 100 item_chance_unique 0.100000 item_chance_rare 0.500000 item_chance_common 1.000000 min_attr_common 1 max_attr_common 4 levels_per_attr_chance_common 20 min_attr_rare 3 max_attr_rare 8 levels_per_attr_chance_rare 10 authorized_servers 172.16.6.79/32

    Last edited by gamma; 05-24-2009 at 05:48.
    gamma is offline
    r5053
    SourceMod Donor
    Join Date: May 2007
    Location: Germany
    Old 05-24-2009 , 06:41   Re: Found Item Logger
    Reply With Quote #9

    Quote:
    Originally Posted by gamma View Post
    does someone know what is this ? found it on some forum.
    you can also check *****\Steam\appcache\app_440.vdf
    for this
    which forum?
    __________________
    Visit HLPortal.de (this is not my Page)


    r5053 is offline
    Send a message via ICQ to r5053 Send a message via Skype™ to r5053
    gamma
    Senior Member
    Join Date: Apr 2008
    Old 05-24-2009 , 06:46   Re: Found Item Logger
    Reply With Quote #10

    I google it
    http://www.facepunch.com/showthread....743196&page=15
    gamma is offline
    Reply



    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 -4. The time now is 21:26.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode