# #G7 Idle RPG Bot v2.4

**Category:** Standalone_Bot
**Original Author:** jotun

## Description
This is a standalone IRC bot designed for managing an idle RPG game on the SlashNet network, specifically in the channel #G7. It handles player registration, login, logout, and level-up mechanics through automated processes.

## Key Features
- **User Management**: Registers new players with a specified character name, class, and password.
- **Login/Logout Handling**: Manages player logins and logouts, applying penalties for unauthorized actions.
- **Leveling System**: Tracks time to next level and penalizes users who are not idle.
- **Item Finding**: Randomly awards items based on the user's level.
- **Battles**: Simulates battles between players with a chance of winning or losing affecting TTL (time-to-level).
- **Calamities and Godsend Events**: Introduces random events that can either penalize or reward users.

## File Analysis
- **admincomms.txt** — Contains commands for bot administrators to control the bot's functions.
- **bot.patch1.schmolli.txt** — A patch file for version 2.2.2, modifying the bot’s behavior and adding new features.
- **bot.v2.4.txt** — The main script for the bot, implementing various game mechanics and commands.
- **commonfunctions.php** — Provides utility functions for sorting and comparing player data.
- **contact.php** — A simple form for users to submit contact information or suggestions.
- **db.php** — Displays a sorted list of players based on different criteria.
- **dump.php** — Outputs detailed player data in tabular format, useful for database backups.
- **footer.php** — Contains HTML and PHP code for the footer section of web pages.
- **header.php** — Styles and navigation links for various sections of the website.
- **index.php** — Provides an overview of the game rules and how to play.
- **others.php** — Allows users to submit information about other idle RPGs.
- **players.php** — Displays detailed information about a specific player.
- **sitesource.php** — Mirrors the source code for the website, including PHP scripts.
- **source.php** — Lists available versions and patches of the bot.
- **idlerpg.txt** — A Perl script to fetch player data from the website.
- **idlestats.txt** — A Perl script to parse and display detailed player statistics.
- **urls.txt** — Contains URLs for other idle RPGs submitted by users.
- **hits.db.bak** — Logs of hits on various web pages, useful for tracking usage.