View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-10-2012 , 01:58   [TF2] SourceIRC ItemBotLite (Item Relay)
Reply With Quote #1

[TF2] SourceIRC ItemBotLite
Version 1.2.0





Description:
Announces item transactions (found, traded, crafted, etc) to IRC with item name and quality.

Example:


Requires SourceIRC.

Note:
ItemBotLite is a version of ItemBot that does not use the now nonfunctional Backpack hook extension. Since without Backpack hook the plugin must hook the item_found event, some features are not longer possible.

Commands:
sm_reloaditembot - Reloads configs

IRC Commands:
backpack or bp: Returns a TF2B backpack link for a user
Examples:
  • bp "Player on server"
  • bp STEAM_0:1:123456
  • bp CustomSteamURL
Cvars:
  • sm_itembot_version - Plugin Version
  • sm_itembot_debug "0" - Set to "1" to print name debugging info.
  • sm_itembot_timestamp "1" - Show/hide item timestamps
  • sm_itembot_showsteams "1" - Show steamids when players disconnect (for looking at backpacks later)
  • sm_itembot_timeoffset - number of seconds to correct server clock by
  • sm_itembot_hidefakes "1" - Set to 0 and fake item events will also be printed.
Install Instructions:
  1. Place ItemBot.smx into your addons/sourcemod/plugins/ folder.
  2. Place ItemBot_Items.kv in addons/sourcemod/configs/.
  3. Edit your sourceirc.cfg and add "items" "1" to the channels where you want to see items.
  4. Edit the cvars in the ItemBot.cfg file.
Notes:
ItemBot_Items.txt:
This file does not need to be edited except to add any new items Valve may add in the future.

It is a direct copy-paste of the (item) related bits in items_game.txt

sourceirc.cfg Example:
Code:
           "#MyChannel"
            {
                "relay"            "1" // Tell the RelayAll module to relay messages to this channel
                "cmd_prefix"    "!" // Ontop of calling the bot by name, you can also use "!" in this channel
                "items"            "1"
            }
            "#MyOtherChannel"
            {
                "ticket"        "1" // Tell the ticket module to send tickets to this channel
                "items"            "1"  // Prints all items to this channel
            }
            "#Ninja"
            {
                "items"            "1"  // Prints all items to this channel
            }
Version History:
  • V1.1.0
    • Initial release
  • V1.1.2
    • Config file is now generated when the plugin is loaded for the first time
    • Removed player_disconnect code
    • SteamIDs are now appended to the end of the message if the cvar is set
    • Added sm_itembot_hidefakes
    • Immolated a bunch of irc color code
  • V1.2.0
    • Fixed loading issues if SourceIRC wasn't already loaded.
    • Updated item name cache file.


Total downloads as prior to last edit: 56
Attached Files
File Type: zip ItemBotLite v1.2.0.zip (90.8 KB, 769 views)
__________________

Last edited by DarthNinja; 07-04-2012 at 09:59.
DarthNinja is offline