sumguy14 |
06-23-2007 01:19 |
RPGx [Version: 1.1.3]
29 Attachment(s)
RPGx Version 1.1.3
- Looking for Translators:
- People who translated earlier versions, can you update the translations please, I added more
- French
- Norwegian
- Swedish
- Turkish
- Got some more phrases in rpgx.chat.phrases.txt
_________________________________________
_________________________________________
- Description:
- This mod gives players XP for killing/shooting enemies, planting bomb, defusing, hostage rescuing, etc. When a certain amount of XP has been reached, they will gain a level. Gaining a level gives the player a set amount of credits (Default: 5) With these credits players can type rpgmenu and purchase upgrades which give the player a special ability.
- Upgrade Description/Screenshots
_________________________________________
- Credits:
- SeLfkiLL: Original author of CSS:RPG, most concepts/ideas came from him
- BAILOPAN: Helped me with some things, coded one of my requests, thanks!
- PimpinJuice: He pretty much taught me SourceMod, he let me look at War3Source's source code to help me with RPGx. He also made one of the
upgrades, thanks, couldn't have done it without you :)
- dalto: Gave me the rank retrival code, thanks, ranking would have sucked without that :P
- Everyone in IRC who helped out: Thanks for helpin out the noob :D
- Anyone that translated anything for the mod
_________________________________________
- Websites that host free SQL servers:
_________________________________________
- Todo:
- Optimization
- Make more upgrades
- Look up other player's ranks
_________________________________________
- Installation:
- Extract RPGx.zip to your server's root directory
- Configure the settings located in "configs/rpgx.ini"
- Go ahead and modify the phrases for your language in "translations/rpgx.*.phrases.txt"
_________________________________________
- Admin Commands:
- rpgx_xp <set/=/add/+/take/-> <@t/ct/userid> <amount>
- rpgx_level <set/=/add/+/take/-> <@t/ct/userid> <level>
- rpgx_credits <set/=/add/+/take/-> <@t/ct/userid> <amount>
- rpgx_forcepurchase <@t/ct/userid> <upgrade>
- rpgx_forcesell <@t/ct/userid> <upgrade>
_________________________________________
- Configuration:
- configs/RPGx/RPGx.ini
Code:
// File: RPGx.ini
// Author: SumGuy14 (Aka SoccerDude)
// Description: Here you can configure RPGx
"RPGxConfig"
{
"mysql"
{
"savetype" "mysql" // Options: mysql - sqlite
// Options below should only be set if the above setting is mysql
"host" ""
"user" ""
"pass" ""
"database" ""
"port" "" // Leave blank for default
}
"sounds"
{
"levelup" "buttons/blip2.wav" // Sound played when leveling up
"reset_stats" "buttons/button5.wav" // Sound played when resetting stats
"upgrade_purchase" "weapons/physcannon/physcannon_drop.wav" // Sound played when purchasing an upgrade
"upgrade_sell" "buttons/combine_button1.wav" // Sound played when selling an upgrade
"upgrade_error" "buttons/combine_button2.wav" // Sound played when selling an upgrade
"menu_select" "buttons/button9.wav" // Sound played when selecting something in a menu
"menu_exit" "buttons/button19.wav" // Sound played when closing a menu
}
"general"
{
"ENABLE" "1" // When 0, the plugin will stop updating, players wont gain XP, upgrades will stop working, to reenable, change this to 1 and change map
"BOT_ENABLE" "1" // Allows bots to earn upgrades
"SAVE_DATA" "1" // If enabled, the databases will be saved/updated
"ANNOUNCE_CHANGELVL" "1" // Enables global announcement of a change in a player's level
"BOT_CONTROL" "1" // Stops bots from leveling when no humans are present
"BOT_MAXLEVEL" "200" // Maximum level of a bot until his stats are reset (0 = Infinite)
}
"rank"
{
"RANK_ENABLE" "1" // Enables ranking for RPGx
"RANK_GLOBAL" "1" // Displays rank to all players
}
"xp"
{
"EXP_NOTICE" "1" //Notifies player when gaining XP
"EXP_MAX" "50000" // Required XP stops rising when getting to this point
"EXP_START" "250" // Initial required XP
"EXP_INC" "75" // How much to increment required XP by after leveling up
"EXP_KILL" "15"// XP for a kill multiplied by the victim's level
"EXP_HEADSHOT" "50"// XP extra for a headshot
"EXP_DAMAGE" "1.0" // XP for hurting an enemy multiplied by the damage done
"EXP_KNIFEDMG" "8.0" // XP for knifing an enemy multiplied by the damage done (must be higher than exp_damage)
"EXP_TEAMWIN" "0.15" // XP multipled by the XP required and the team ratio given to a team for completing the objective
"EXP_BOMBPLANTED" "0.15" // XP multipled by the XP required and the team ratio given for planting the bomb
"EXP_BOMBDEFUSED" "0.30" // XP multipled by the XP required and the team ratio given for defusing the bomb
"EXP_BOMBEXPLODED" "0.20" // XP multipled by the XP required and the team ratio given to the bomb planter when it explodes
"EXP_HOSTAGE" "0.10" // XP multipled by the XP required and the team ratio for rescuing a hostage
}
"credits"
{
"CREDITS_INC" "5" // How many credits earned for each time a player levels up
"CREDITS_START" "5" // How many credits a player starts with
"SAVE_PERCENT" "0.75" // Percentage of credits a player gets for selling an item
}
}
- MOTD Template for upgrade help
Code:
<html>
<head>
<title>RPGx Upgrade: [UPGRADENAME]</title>
<style type="text/css">
body {
background: black;
color: #666666;
margin: 10px;
font-family:Verdana, Tahoma;
text-align: center;
font-size:12px;
}
.holder {
width: 100%;
background: black;
border: 5px ridge white;
text-align: center;
}
.info {
width: 75%;
background: #333333;
border: 10 outset #333333;
text-align: center;
}
img {
margin: 5px;
}
ul {
margin: 0px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="holder">
<div class="info" style="margin-top:10px;">
<h2><font color=white>RPGx Upgrade:</font></h2>
<h3>[UPGRADENAME]</h5>
</div>
<div class="info" style="margin-top:10px;">
<h3><font color=white>Description:</font></h3>
<h6><font color=red>By Default</font></h6>
<h4>This upgrade gives you the ability to ... [DESCRIPTION]</h4>
<p align=left>
<h3>
<ul>
<li>Level 1: Level 1 description here</li>
<li>Level 2: Level 2 description here</li>
<li>Level 3: Level 3 description here</li>
<li>Etc...</li>
</ul>
</h3>
</p>
</div>
<div class="info" style="margin-top:10px;">
<h3><font color=white>Screenshots:</font></h3>
<p>
<img src="http://screenshot1" height="250" />
<img src="http://screenshot2" height="250" />
<img src="http://screenshot3" height="250" />
<!--<h4>(None)</h4>-->
</p>
</div>
</div>
</body>
</html>
- Changelog:
- 6/22/07
- 6/23/07
- Added Language: German
- Added Language: French
- Added Language: Swedish
- Languages are now separate files
- Added LAN support
- 6/25/07
- Added upgrade: PoisonSmoke
- Added upgrade: Medic
- Disabling a default upgrade won't screw things up anymore
- Added native: RPGx_UpgradeExists (Check RPGx_Interface for more info)
- Fixed errors that happened when a player disconnects while regenerating HP
- Added effects!
- Bots now buy upgrades
- Warning: Planning an extensive recoding of this plugin in certain areas, might break backwards compatibility a little
- 7/11/07
- Plugin has been recoded from scratch
- There is so much new stuff I don't know if I can remember it all
- Added sounds, look in configs/rpgx.ini to change them
- Now uses SQL instead of a KeyValue's file (SQL is a lot faster) of course the down side is you need an SQL db to run this mod (for now)
- Fixed any problems with upgrades, moved them to separate files
- Added a bunch of new natives that make creating upgrades easier
- New spawn health system will automatically set the player's health on spawn, and upgrades such as Regeneration can get this value to stop when their maximum health has been reached
- Now takes advantage of SourceMod's built-in translation system
- New effect library to make effect creation easier
- Added cool effects such as player's appear to be inside a block of ice when icestabbed, frostpistol created ice pillars around the player, trapping them, and much more
- Revamped the help system, it is now based off MOTD windows, if you have an upgrade submission use the motd template in this post to construct an MOTD window for your upgrade, I will add it to the website I am using to host the webpages
- Screenshots are now included in the help windows, (Example) more and more screenshots will be added as time goes on
- Added admin cmds, see documentation for info
- The "ENABLE" option actually does something now
- Removed upgrade Damage+ (Wasn't a good idea anyway)
- Added Gravity-, lowers your gravity enabling you to jump longer distances (LongJump works good with this)
- That's all I can think of..
- 7/11/07
- Will now automatically call RPGx_OnUpgradeSell for all upgrades with a level of 0 when a player resets their stats
- Health+ properly sets the player's max health when player resets stats
- Transfers player's data to the database more often to ensure the changes were kept
- 7/30/07
- Fixed bug where firenade wouldn't fully disable if ENABLE is 0
- Renamed public cvar to 'rpgx_version'
- Removed my hack, now using GetServerLanguage()
- Will not load if unsupported language is being used
- Tells you what language was detected, which is what will be used
- Supports mysqlite (yay!)
- Updated to use new translation file standard (xx.phrases.txt)
- 0 for BOT_MAXLEVEL allows unlimitted leveling
- 8/23/07
- Config file more user-friendly
- Added ranking system
- Fixed data still saving even if it is disabled
- Cleaned a little code up
- Removed slay function, now using SM's built in one
- 11/10/07
- LAN now uses usernames instead of IP address
- Fixed your required XP not being incremented when adding levels via cmd
|