Machiavelli
3a713eef7e
Merge pull request #3587 from Fredi/check
...
Core/Commands: Added security check in .damage
2011-10-23 04:16:53 -07:00
megamage
c9c5c2a355
Use read/write thread mx guard instead of general guard for HashMapHolder.
2011-10-21 17:29:09 -04:00
Fredi
a34a90ad87
Core/Commands: Added security check in .damage
2011-10-19 15:44:26 -02:00
kaelima
be0b2fcf97
Core/Grid:
...
- Simplified CellArea calculation (Original author: SilverIce)
- Removed unused code in Cell class (Original author: SilverIce)
- Improve some Visit functions.
2011-10-19 17:40:44 +01:00
megamage
c29ff41001
Rename some classes in grid system.
...
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
megamage
3ba22d0d06
Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management.
2011-10-10 17:39:34 -04:00
Bootz
5b4c7783c2
REPO: Code-style clean-ups
...
* Fixed pMap->map
* Fixed pInstance->instance
* Fixed pInsta->instance
* Fixed pQuest->quest
* Fixed pWho->who
* Fixed pTarget->target
* Fixed pGo->go
~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
2011-10-07 19:45:43 -05:00
Shocker
f130ca8d0a
Merge pull request #3392 from Bizzy/Bizzy
...
Core/Commands: Added '.ticket reset' for resetting ticket-id counter. Aut
2011-10-07 09:55:03 -07:00
Bootz
f1ccb83dc0
REPO: Code-style change
...
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
Bizzy
4112a0d087
Core/Commands: Added '.ticket reset' for resetting ticket-id counter. Author: Bizzy
2011-10-04 17:41:55 +02: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
852ffcc139
Core/Scripting: Remove unnecesary reference in param function OnMemberRemove
2011-09-28 10:35:59 +02:00
Shauren
94e5ff6549
Core/Commands: Removed setting orientation from cast commands
2011-09-17 12:16:33 +02:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02: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
Nay
bbde479f4a
Core/Channels: Fix the console error "opcode CMSG_MESSAGECHAT have unprocessed tail data" and some logic problems when joining/leaving some channels (like only be able to join LFG inside a city)
2011-09-04 18:56:04 +01:00
Chaplain
bea649d045
Core: cleanup.
...
*remove some garbage
*little bit moore const func
*fix process of args in vmap3_extractor
2011-09-01 22:38:32 +03:00
Chaplain
f5a668ae8d
Core: Cleanup.
2011-08-30 23:09:39 +03:00
leak
d498a5b68f
Core/Commands: Prevent crash upon using .pinfo on characters in unknown areas
...
Closes #2784
2011-08-30 13:15:38 +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
Lopin
b92d6f3d20
Core/Commands: Added TrinityString instead of hardcoded string
2011-08-22 12:07:27 +02:00
Lopin
6e79510bc5
Core/Commands: Added output to .baninfo character <name> even when character has never been banned. Closes #2699
2011-08-22 11:22:26 +02:00
leak
d01bb754d7
Core/Commands: Remove useless file, commands were already converted to command scripts a bit ago
2011-08-14 13:07:43 +02:00
leak
af040fc18d
Core/Players: Allow players to answer gamemaster whispers even if whispers are disabled. Whitelist can be reset by .whispers off
2011-08-13 15:10:45 +02:00
leak
91a3bfe42a
Core/Commands: .pinfo improvements
...
- Allow .pinfo <guid>
- Add map/zone/subzone/phase to output
2011-08-13 13:00:38 +02:00
QAston
df87f00e73
Core/Commands: Add .cast dest #spellid #x #y #z which orders selected unit to cast a spell at selected destination.
2011-08-06 22:50:46 +02:00
Machiavelli
981e3540c8
Core/Chat: Fix a crash in .lookup spell command
2011-07-29 15:02:20 +02:00
Spp-
e47b96af3e
Core: Append single character to stream as character, not as a string
2011-07-29 14:18:28 +02:00
Azazel
c5d0c6b464
Core/Misc: cleanup npc_professions script (shouldn't the whole script go to DB?). Fix some warnings.
2011-07-29 15:25:52 +06:00
Machiavelli
0dcc229071
Core/Commands: Allow muting offline players - the mute will become effective on next player login.
2011-07-27 17:51:57 +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
Nay
9ed52dc646
Core/Commands: Update the trinity_string and cleanup the code related to .list auras command
2011-07-04 16:03:11 +01:00
Spp-
e9aa72cc7b
Cosmetic: rename function escape_string to EscapeString
2011-06-30 14:52:44 +02:00
Spp-
d12bb4a657
Core/Command: Don't parse varags for simple string in '.server info' command
2011-06-30 11:43:21 +02:00
Shocker
bdba5cd900
Core/Commands: Move .gps to command scripts and add .wpgps command, used for generating partial SQL queries for pathing
2011-06-29 16:36:54 +03:00
click
6667277a16
Core/Commands: Remove deprecated command for modifying pet training points (.pet tp) - removed in patch 3.0.2 and replaced with talentpoints (command for adjusting that already exists).
...
Closes #135 .
2011-06-26 10:35:35 +02:00
Shocker
f4203e171e
Core/Commands: Allow .save command to save targeted player for GMs
2011-06-16 00:22:09 +03:00
kaelima
b9e8694540
Core: Continued cleanup
...
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click
f16df538ee
Core: More codestyle cleanups
2011-06-12 01:47:45 +02:00
click
158966dc79
Core: Codestyle cleanup
2011-06-11 22:35:29 +02:00
QAston
3effdb2c23
Core/Auras: Add Aura::TryRefreshStackOrCreate function and remove stack checks from Aura::Create
2011-06-07 12:47:32 +02:00
tobmaps
600cc16c94
Core/Players: Pet talents can be reset at a pet trainer for free, original idea by rsa
2011-05-31 05:47:17 +07:00
tobmaps
42fc72447b
Core/Dungeon Finder: Fix instances unlock after level change
2011-05-29 22:49:05 +07:00
Shauren
7a3e622da9
Core/Tickets: Fixed retrieving name of assigned GM
2011-05-11 14:18:09 +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
Az@zel
574f55382a
Core/Chat Commands: add name of GM (or Console) into output of gmannounce command (and also fix typo from previous commit)
2011-05-11 12:58:50 +06:00