|
||
---|---|---|
.. | ||
crime | ||
__init__.py | ||
base.py | ||
business_system_design.md | ||
info.json | ||
inventory.py | ||
plan.md | ||
README.md | ||
utils.py |
City
A comprehensive city simulation system with various activities (currently only contains crime module). Features a crime system for earning credits through virtual crimes with different risk levels, cooldowns, rewards, jail system, jail breaks, dynamic events, and custom scenarios.
Features
-
🦹♂️ Multiple crime types with varying risk levels
-
🏴☠️ Black Market shop for special items and perks
-
🎒 Personal inventory system
-
⛓️ Jail system with bail and jailbreak mechanics
-
📊 Detailed statistics and leaderboards
-
💰 Dynamic reward system
-
⚖️ Risk vs. reward gameplay
-
🎯 Target other users for crimes
-
🎲 Custom random scenarios with server-specific events
-
🎮 Button/Dropdown-Based Interface
- Modern, intuitive button controls
- Color-coded risk levels
- Dynamic button states based on user status
- Clean, organized menu system
-
📊 Statistics & Leaderboards
- Track successful and failed crimes
- Monitor lifetime earnings and largest heists
- View server-wide crime leaderboards
- Personal criminal status tracking
Installation
- Make sure you have Red-DiscordBot V3 installed
- Add this repository:
[p]repo add CalaMari-Cogs https://github.com/CalaMariGold/CalaMari-Cogs
- Install the cog:
[p]cog install CalaMari-Cogs city
Setup
- Load the cog:
[p]load city
- Make sure the bot has required permissions:
- Manage Messages (for button interactions)
- Send Messages
- Embed Links
- Add Reactions
- Register your bank if not already done:
[p]bank register
- Customize settings as desired using the
[p]crimeset
commands
Donate
If you enjoy using this cog, you can support my work:
Support
If you encounter any issues or have suggestions, please open an issue on the GitHub repository.
Usage
Crime Types
🧤 Pickpocket
- Low risk, targeted crime
- Steal percentage of target's balance
- Quick cooldown
- Short jail time if caught
🔪 Mugging
- Medium risk, targeted crime
- Steal percentage of target's balance
- Medium cooldown
- Moderate jail time
🏪 Store Robbery
- Medium risk, non-targeted
- Fixed reward range
- Medium cooldown
- Moderate jail time
🏛️ Bank Heist
- High risk, non-targeted
- Highest potential rewards
- Long cooldown
- Longest jail time
🎲 Random Crime
- Random risk level
- Dynamic scenarios (both default and custom)
- Varying rewards and penalties
- Unique events and outcomes
- Server admins can create custom scenarios
Commands
User Commands:
[p]crime
- Open the main crime menu with all available actionscommit
- Choose and commit a crimestatus
- View your criminal status and statsbail
- Pay to get out of jail earlyjailbreak
- Attempt to escape from jailleaderboard
- View the server's crime leaderboard
Admin Commands:
[p]crimeset
- Configure crime settingssuccess_rate <crime_type> <rate>
- Set success rate (0.0 to 1.0)reward <crime_type> <min> <max>
- Set reward rangecooldown <crime_type> <seconds>
- Set cooldown durationjailtime <crime_type> <seconds>
- Set jail time durationfine <crime_type> <multiplier>
- Set fine multiplierreload_defaults
- Reset to default settingsscenarios
- Manage custom random scenarios:add
- Create a new custom scenariolist
- View all custom scenariosremove <name>
- Remove a custom scenario
global
- Configure global settings:bailcost <multiplier>
- Set bail cost multipliertogglebail <enabled>
- Enable/disable bail systemview
- View all current settings
Owner Commands:
[p]wipecitydata <user>
- Wipe a user's city data[p]wipecityallusers
- Wipe ALL city data (requires confirmation)