Commit Graph
190 Commits
Author SHA1 Message Date
Nay c19a6c7e31 Core/Loading: Drop the field script_version from the table version.
It serves no purpose (and one step closer to remove EAI from the core/db)
2011-10-28 23:00:00 +01:00
megamage 45de1f01e0 Update char name data when create/delete char. 2011-10-08 16:24:07 -04:00
megamage 0bb86a3e97 Update code related to character name data.
Note: need to add/delete data when character is created/deleted.
2011-10-08 16:09:12 -04:00
Shocker 0b243dfd9b Core/PlayerDump: Add config to disallow overwriting existing files and usage of paths in player dump write to prevent local exploits 2011-10-08 16:56:04 +03:00
n4ndo d1370a5e0a Fix Crash in ProcessQueryCallbacks 2011-09-30 10:57:02 -05:00
Spp b16d2245bb Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp be12603150 Configuration/ConfigMgr: converted from singleton to namespace with free functions. 2011-09-28 13:00:43 +02:00
Spp b93067350c Core/WeatherMgr: singleton converted to namespace with free functions. Note how RAII saves your life and removes the need in explicit delete :) 2011-09-28 11:38:56 +02:00
Spp cc06c41887 Core: Move FormationMgr to namespace
Also...
- Warning fixes
- Make Singleton constructors private
2011-09-28 11:11:38 +02:00
Shauren 3d4f9a0d1c Core/World: Shutdown messages are now sent in blizzlike intervals (every 15 seconds under 5 minutes and every minute under 15 minutes) 2011-09-20 11:40:08 +02:00
Shocker 7afb179185 Misc/Util: Add a template function for returning a random element from any container 2011-09-15 21:28:40 +03:00
Spp af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
Shocker ccc13c0295 Merge pull request #2951 from Fredi/reload_config
Core/Log: Reload log levels and filters
2011-09-10 04:03:29 -07:00
Spp- 14b3ed9164 Addons/AddonMgr: converted from singleton to namespace with free functions 2011-09-09 15:22:52 +02:00
Spp- 45af1238cf Conditions/DisableMgr: converted from singleton to namespace with free functions. 2011-09-09 14:27:23 +02:00
Fredi Machado bac261b001 Core/Log: Reload log levels and filters
on 'reload config' command
2011-09-08 23:00:26 -03:00
Spp- 327fe7c247 Core: Define helper functions to know if an account is Player, Moderator, GM, Admin or Console 2011-09-08 15:11:55 +02:00
Spp- eddcb8ffbf AccountMgr singleton converted to namespace with free functions as it has no internal state 2011-09-08 10:49:58 +02:00
Chaplain fb27848510 Core: Clean up here and there.
*replase postfix iterator increment\decrement with prefix in cycles
*replase strlen(*char) != 0 with *char[0] != '\0'
*replase strlen(rStr.c_str()) with rStr.length()
2011-08-23 18:09:08 +03:00
Spp e7327e7e94 Core: Fix compile without PCH and fix some warnings 2011-08-03 11:23:08 +02:00
Spp- e47b96af3e Core: Append single character to stream as character, not as a string 2011-07-29 14:18:28 +02:00
QAston 7094f57841 Core/Spells: Don't unload sSpellStore on startup, to allow access to dbc strings. 2011-07-28 02:03:47 +02:00
Spp- b2a84d9f1e Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons) 2011-07-27 12:14:27 +02:00
QAston b0fe236265 Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
click 5cafed655a Core: Remove last trace of CONFIG_GM_LEVEL_ALLOW_ACHIEVEMENTS 2011-07-02 23:18:31 +02:00
click 48e47a9245 Core/Achievements: Simplify handling of achievements for GMs: Do not allow achievements when GM-mode is enabled, allow when disabled 2011-07-02 02:14:49 +02:00
tobmaps c42db7af8c Core/Misc: Minor cleanup and code style fixes 2011-06-28 23:48:59 +07:00
kaelima 142943d4c1 This reverts commit f580cddc09. 2011-06-28 13:05:15 +02:00
click f580cddc09 Core: Add wintergrasp-patch to wintergrasp_cleanup branch - resurrected from an old work-repository, now over as a branch to work on.
Original patch by socolin, cand a ton of contributors :
mathman, joda, spp, silinoron, josh, malcrom, shauren, machiavelli, click, rat, leak, tobmaps, _manuel_, the tcfr team (via socolin), and tons of others for chiming in.

NOTE: THIS IS A WORKING-BRANCH, AND _NOT_ MENT FOR PUBLIC USE OR EVEN CONSIDERED STABLE!
2011-06-28 00:56:29 +02:00
Sarjuuk 249692b54b Core/Vehicles: Remove vehicle stat scaling hack and implement it properly trough the spell system. NOTE: This does need some further research on coefficients for different vehicles.
Signed-off-by: Machiavelli <[email protected]>
2011-06-27 14:23:58 +02:00
QAston ac88fa026f Database/Spells: Add spell_proc table which is a replacement for spell_proc_event table. This is the initial patch from series of patches changing the way we currently handle procs in the core, and doesn't interfere with existing code in any way. 2011-06-26 13:54:44 +02:00
Nay 62908812cb Core/Gossip: Ditch gossip_scripts as it is no longer used. SAI is a better option 2011-06-19 15:24:59 +01:00
kaelima b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click da03bbbdab Core: Yet more cleanups in codestyle... 2011-06-12 02:06:07 +02:00
click f16df538ee Core: More codestyle cleanups 2011-06-12 01:47:45 +02:00
tobmaps a017474ab8 Core/RecruitAFriend: Fix max level difference for benefit experience multiplier 2011-06-09 02:10:46 +07:00
tobmaps c89922428b Core/Misc: Added new option in config to set max GM level that can obtain achievements 2011-05-13 01:08:54 +07:00
Shauren 7a3e622da9 Core/Tickets: Fixed retrieving name of assigned GM 2011-05-11 14:18:09 +02:00
Shauren 696215c7c5 Core/World: Fixed iterator invalidation after map.erase() in HasRecentlyDisconnected 2011-05-11 14:14:31 +02:00
Shauren dc3ff5e5f2 Core/Chat Commands: Partly revert "add name of GM (or Console) into output of gmannounce command (and also fix typo from previous commit)" as .gmnameannounce does exactly that
Core/Chat Commands: Allowed named announcement commands to run from console

This reverts commit 574f55382a.
2011-05-11 10:05:26 +02:00
leak dfacd287a4 Core/ObjectMgr: Refactor group related functions into dedicated class 2011-05-05 10:25:17 +02:00
leak ea06dcf418 Core/ObjectMgr: Refactor guild related functions into dedicated class 2011-05-04 10:08:09 +02:00
leak ce01a37c2c Core/ObjectMgr: Refactor arena team related functions into dedicated class 2011-05-03 15:01:37 +02:00
MrSmite a92038feaf Core/AuctionHouse: Delete expired auctions at startup. 2011-05-03 08:32:57 -04:00
leak 1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak e2e9431ca3 Core/ObjectMgr: Refactor sGOStorage 2011-04-28 22:54:30 +02:00
leak 3ab83417f5 Core/ObjectMgr: Refactor sCreatureInfoAddonStorage 2011-04-28 22:50:06 +02:00
leak a82654debd Core/ObjectMgr: Refactor sItemStorage 2011-04-28 22:42:33 +02:00
Shauren 71e76c7bdb Fixed build 2011-04-25 14:17:03 +02:00
Shauren b7353f38b0 Core/World: Fixed realm character count queries getting lost 2011-04-25 13:31:02 +02:00