// ************************************************
// ****   Warcraft:Source Mod for CS:S/DOD:S   ****
// ************************************************
// **** coded by kryptonite                    ****
// **** with credits to the community, Mattie, ****
// **** Awuh0 and all the supporters           ****
// ****                                        ****
// **** official website:                      ****
// ****    http://world-css.do.am              ****
// ************************************************
// **** Date: May 02, 2007, v0.75              ****
// ************************************************

Installation:
---------------
** You need Mattie Eventscripts (v1.3+) and Eventscripts Tools (v0.418) **
 Mattie: http://forums.mattie.info/cs/forums/viewtopic.php?t=8322
 EST:    http://thewuh.thewac.net/files/estv/filelist.php
 - Install it according to the documentations.
 - Extract WCS to <cstrike or dods>/addons/eventscripts/wcs/
 - setup the file es_WCS_config_db.txt

Notice:
 If your server crashes randomly, try another EST version. It's known that some
 are causing crashes. On my test servers, v0.416d and v0.417a worked well
 Mani Admin Plugin and cl_restrict_server_commands 0 are optional !
 You can also try the latest ES v0.418, it should fix several glitches with EST !

** add one line to your autoexec.cfg **
 es_load wcs
 
** restart your server **
 - after a restart, "plugin_print" in your server console should output
   that ES + EST are running, and "wcs_version" should return a version string
 - have fun !

** Some interesting links **
 Official website :   http://wcs.despo-clan.de
 -> you can find news, development status, race details and howtos here

** SQL NOTICE **
If you want to enable SQL (only) support, check the
	es_WCS_config_db.txt
and modify wcs_cfg_enablesql "1" and wcs_cfg_enabletxtfile "0 OR 1"
be sure that you enter the SQL login information in
  wcs/WCSsql/es_WCSsql.txt
like login, password and IP ! You need a local MySQL server or a
remote which accepts connection from other hosts ! Remember most
free-hosters don't allow this.

***************************************************************
***************    Commands List    ***************************
***************************************************************
***** cmd ********* who ********** effect *********************
* wcshelp     *     all     * shows help and commands         *
* spendskills *  all/dead   * spend free skill points         *
* resetskills *  all/dead   * reset your skills (free them)   *
* raceinfo    *     all     * shows race skills info          *
* showskills  *     all     * shows all your skill levels     *
* changerace  *  all/dead   * change your race                *
* showxp      *     all     * shows your xp and race          *
* shopmenu    *     all     * opens shopmenu                  *
* playerinfo  *     all     * shows details about a player    *
* wcsadmin    *    admins   * admin center to lvlup           *
* bindmouse3  *     all     * bind mouse3 ultimate            *
* showtop10   *     all     * or wcstop, shows top10 by level *
* ability     * Shadow Hunt.* plants a Serpent Ward           *
* showcredits *  dods only  * shows your credits, if shop on  *
* levi        *  dods only  * reactivates your levitation     *
* wcsmenu     *     all     * shows command menu              *
***************************************************************
** console cmd **** who ********** effect *********************
* ultimate    * all (ulti skled) * activates your ultimate    *
* ability     * Shadow Hunter    * plants a Serpent Ward      *
***************************************************************


******************************************
***********  Version History  ************
******************************************
v0.73
- if you have EST 0.418, this is an important update !
WCSlanguage
- "de" language included ! Big thanks to confector !!!
WCSskills
- removed est_gamestarted, because its not included in EST 0.418
WCSraces
- Archmage has now decreasing cooldown for Lift-Off
- fixed the Predator to work with EST 0.418
- added wall check for Chain Lightning and Entangle Roots (EST 0.418)
WCSusers
- fixed ES WARNING on saving player
WCSshop
- new shopitem: longjump (thx bobbobagan)

v0.72
WCSusers
- fixed ES ERROR glitch when saving player
WCSraces
- fixed bloodmage curing ritual showing always "0 HP"
- Human has again the default freeze (Bash skill), not total freeze
WCSadmin
- small typo prevented to access admin menu "WCS settings"
- removed "wcs_admin" variable ! Setup admins in es_WCSadmin_db.txt !
WCSconfig
- new config setting to avoid bots ruling the top10 (thx WEMO): wcs_cfg_allowbotstop10

v0.70
- general: divided the script in 12 "subscripts", its a lot better for maintenance and you can reload single parts, like es_reload wcs/WCSraces if you updated the race file Smile
- due subscripts, the required ES version is 1.3.000+ !
- general: colored messages Wink
- optional WCSredirect script, redirects when server is full
WCSlanguage
- the language file is now much bigger, offering real multi-language support ! (for races/shop items) and new UTF-8 support (good for special chars like δόφί or even Chinese letters)
- new command: wcs_getlanguage <var> <identifier>
WCSshop
- recoded ! now with one main menu where you can choose categories (max 7) and in each max 9 items.
- new items: Boots of heavy armor, off-the-shelf boots, lightning flash, necklace of immunity, mole protectant, helm of excellence, helm of clear view, ahnk of reincarnation, amulet of the cat
- shopinfo leads now directly to the shop-category page, by pressing "7. buy"
- new "maxamount" setting to avoid multiple buying
WCStop10
- small bugfix, new command for admins: wcs_cleartop10
WCSusers
- new layout, filesize is about 6x SMALLER
- optional MySQL support
- resetskills: you can set a reset penalty (like 10%) in the config file
- showplayerinfo: completely recoded, with skills-spy and shows modified values like invis, gravity, speed, health, its stable now !
WCSfunctions
- givexp: bots supported, and negative amount (XP penalty)
- removed player_bomb and player_defuse for shop/race events, since nobody used it
- support for flash effects ! stronger/weaker flash
- saycommand savexp to save XP manually
- get/set player to write to .txt DB
- convert function to reduce .txt DB size !
- saycommand feedback, usage: feedback hello server admin
- saycommand wcsmenu (or wcs) for overview and selection of other menus
WCSraces
- new settings: maximum_level and teamlimit
- <admins> works now to allow only admins access to this race
- most races has been BALANCED
- recoded to enable real multi-language support
- new: Succubus Hunter (remember from v2.0.5, with skulls!)
WCSadmin
- new admin file, with flags support ! eg. just give admin rights to giveXP, not reset or reload mod
- menu: give 200/1000XP, give 2 levels, take 1 level, give $5000, reset current race, reset whole player
- settings: give all 500XP, clear top10, toggle friendlyfire, disable mod, reload mod
WCSsql
- new subscript, manages a remote MySQL database !
- new setting: wcs_cfg_enablesql (requires SourceUtils plugin!)
- you can disable the .txt file, when you enable SQL support


v0.68
** If you have v0.65, you only need to copy the changed es_wcs.txt ! **
- fixed: cannot find var wcs_damage (thx Vito)
- fixed: wcs_cfg_noshopmenu had no effect (thx squar)
- new config setting: wcs_cfg_friendlyexplosion (good against the Mole and Suicide Bomber effect!)
- change: Mole'd players cannot use suicide bomber (or similar) skills (thx Stylez)
- added: multiple ultimate cooldown timer (idea: squar)
- fixed: Players could plant warden on round end and damage players at spawn, the Wards still stay, but they don't attack in a new round (thx BrettLefty)
- fixed a rare ERROR: cannot find the <id> key on changerace menu
- added more debug info (only if wcs_debug=1, to find ES/EST warnings), will be removed in v1.0

v0.65a
- fixed: after being predator you cannot pickup any weapon (thx Vito, sorry guys)

v0.65
- added saving every X rounds (thx soundn3ko)
- fixed wards could be planted after "CT/T wins" (thx Keksi)
- fixing teleport mole (thx Vito)
- weaker playerflash with Orc Chain Lightning
- fixed rank 5 showed twice in top10
- fixed suicide bomber killing teammates or not counting as a kill credit (thx Mikael)
- fixed weapon pickup, even its restricted, use es_keysetvalue WCSuserdata event_var(userid) "restricted" "<weapon_name> OR <all>"
- support for ma_teleport, set wcs_noskywalking=0, this is a good option in CS:S, and very recommended with DOD:S ! (need Mani v1.2 installed)
- optimized some code for steamid/ip TODO uniqueid
- fixed a wrong status message of Crypt Lord
- added "shopalias" like "racealias"
- added wcs_giveitem, checks for dead players and stacks grenades
- fixed wrong info output in shopinfo
- added shopitem: Flamming Gloves of Warmth (thanks to Kal-El !)
- forcing est_AntiBufferOverun 1 (very good setting to avoid lag/crash)
- added shopitem: Mole
- fixed Fan of Knives skill (Warden)

v0.60
- public release
- some race balancing
- new races: Shadow Hunter, Warden, Crypt Lord, Predator (optional)
- fixed some small bugs
- updated language file, now including Swedish (thx Mikael)
- new code for an ability (like Serpent Wards)

v0.50
- fixed DOD:S, the gametype was not detected well (it's an ES error)
- new setting: wcs_cfg_dods_noshopmenu - you can disable the shopmenu and gain XP instead of "credits"
- powered up Devotion Aura
- fixed the shopmenu bug, that items didn't stay until death
- wcs_givelevel <id> <amount> <reason> included
- wcs_reload - reloads the race and shop

v0.49
- included a lot if performance optimizations (following a great guide in Mattie's forum)
- wcs_cleanup is now working !
a 1.7MB userfile cleanup needs about 40 seconds !! So use this with caution (at night, when nobody is playing...)
- separate language and config files - better for updating
- top10 alpha ! A ranking for your total (and current) race level
- races include now a "author" field
- fixed ultimates (like teleport) to be executed during the freezetime
- BOTs get no more XP ! (prevents big XP bonus for new players)
- added some missing est_csay messages
- 16000 credits limit (DOD:S)
- autocleanup at 6000 players (see config file)
- fixed a bug, where unauthorized people could start admin menu
- fixed the bug, that speed/levitation skill doesn't work (thx to Kramgo)
- fixed wrong message "You have max level reached", even if thats false (thx to Kramgo)
- recoded teleport skill, and new option wcs_noskywalking *hehe*
- new: ingame feedback formula !
- language "de" included
- added wcs_cfg_disabletextonlvl : high level players don't need help texts

v0.4 - initial beta version
