Advanced Experience System
- v0.3, last updated : 12.01.14
Multimod experience system with ranks, bonuses and API.
Main plugin [ aes_main.amxx ]:
players database
basic API
determines experience for levels
sets levels name
Experience collectors [ aes_exp_cstrike.amxx ]:
how players will incrase their experience and receive bonus points
experience calculating
Bonus system [ aes_bonus_system.amxx ] (optional):
API for made own bonuses
defines what players can spend their points bonus
/anew command
Requirements:
AMXX 1.8.2 hg26 or higher
Configuration:
All configuration files are stored in aes folder (addons/amxmox/configs/aes).
Default configuration: addons/amxmodx/configs/aes/aes.cfg. Executing on map load.
// Prune time (inactivity days), inactive players will be deleted from stats.
// If set to 0, then no prune.
aes_db_prune_days "0"
// Rank mode.
// 0 - Nick
// 1 - SteamID
// 2 - IP
aes_track_mode "1"
// Level settings.
// Sets experience value for level. How much experience player needs to get to gain this level.
// One value of experience - one level.
// How many experience values you write here, so many levels will be.
// Do not forget to edit lang file.
aes_level "0 20 40 60 100 150 200 300 400 600 1000 1500 2100 2700 3400 4200 5100 5900 7000 10000"
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// -- aes_exp_cstrike.amxx -- //
// XP for kill.
aes_xp_frag "1"
// XP for headshot.
aes_xp_hs "2"
// XP for bomb planting.
aes_xp_c4_plant "1"
// XP for bomb explode.
aes_xp_c4_explode "3"
// XP for bomb defuse.
aes_xp_c4_defused "4"
// XP for hostage got.
aes_xp_hostage_got "1"
// XP for hostage rescue.
aes_xp_hostage_rescue "1"
// XP for escaped as V.I.P.
aes_xp_vip_escaped "4"
// XP for V.I.P assassination.
aes_xp_vip_killed "4"
// FFA mode.
aes_xp_ffa "0"
// Bonuses for frags, headshots and etc.
// Syntax: "<frags> <bonus num> <frags> <bonus num> <frags> <bonus num> and etc."
// Players can use bonuses in /anew menu.
// 0 - disable.
// Maximum SQL connection fails.
// After reaching SQL fails limit plugin stops connects to database until map end.
aes_sql_maxfail "10"
// SQL Driver.
// mysql or sqlite.
aes_sql_driver "mysql"
Installation
aes_main.amxx - main plugin.
aes_exp_cstrike.amxx - experience collector and bonus giver for CSTRIKE.
aes_informer.amxx - HUD and chant informer.
aes_bonus_system.amxx - AES Bonus System.
aes_bonus_cstrike.amxx - special cstrike bonuses.
Bonus system
Bonus system is optional plugin for AES.
Bonus system supports 2 type of bonuses: spawn bonuses and bonus items for bonus points.
Spawn bonuses awards for players on spawn if he has required level for this bonus.
Bonus points needs to get bonus items in /anew menu.
Configuration:
Bonus system configuration file is a addons/amxmodx/configs/aes/bonus.ini.
In configuration use two segments:
[spawn] - sets spawn bonuses.
[bonus_menu] - sets items in /anew menu.
Every new item must be defined with <give> or <call> construction.
<give> construction - gives items from item field.
<call> construction - calls function from another plugin.
Construction fields:
item - item name for <give> construction
name - item name in menu, you can use LANG_ prefix for use dictionary aes.txt
levels - sets how many items should player get for each level. Items give count for <give>. Passing as 2nd parameter in <call>. Use -1 for dont call function on this level.
plugin - plugin file name for <call>.
function - function name in plugin for <call>. 1st parameter - players id, 2nd parameter - value from levels field.
points - bonus points for use this item in /anew menu.
Default bonus system configuration
PHP Code:
;
; Advanced Experinece System
; by serfreeman1337
;