Machiavelli
16818d7548
Core/Conditions: Convert npc_spellclick_spells data to condition system. This implements CONDITION_SOURCE_TYPE_SPELL_CLICK_EVENT (previous CONDITION_SOURCE_TYPE_UNUSED_18). Wiki needs to be updated accordingly.
2012-02-20 23:25:59 +01:00
Shauren
da5027ef3a
Core/ObjectMgr: Warn about creatures that have waypoint movement type set but no path assigned on startup
2012-02-18 16:20:00 +01:00
MrSmite
d55c8c7cc4
Core/Misc: Correct console output for ObjectMgr::LoadCorpses
...
Closes #5299
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com >
2012-02-18 11:46:05 +01:00
Subv
8a72aede16
Codestyle: Renamed some variables to fit codestyle, corrected order in structure/class fields to match alignment (they use slightly less memory now)
...
Signed-off-by: Subv <s.v.h21@hotmail.com >
2012-02-14 12:46:26 -05:00
Subv
d790adefe0
Codestyle: Renamed some variables to fit codestyle
...
Signed-off-by: Subv <s.v.h21@hotmail.com >
2012-02-12 20:10:09 -05:00
Subv
06df126bd0
Core/Loading: Speedup on the creature loading code
...
Signed-off-by: Subv <s.v.h21@hotmail.com >
2012-02-12 17:34:41 -05:00
Shauren
01aeccb8d7
Core/ObjectMgr: Improved error message to include source of the error
...
SQL: Renamed files to match standards
2012-01-30 12:41:05 +01:00
leak
ced346076b
Merge pull request #4567 from Kiperr/master
...
Happy new year!
2011-12-31 16:13:28 -08:00
leak
cdbeb42e0f
Core/DBLayer: Refactor prepared statement defines to new format (char db)
2012-01-01 01:09:38 +01:00
kiper
8299627ed9
Update headers for 2012. HAPPY NEW YEAR!!!
2012-01-01 00:32:13 +01:00
leak
73cf793e56
Core/DBLayer: Refactor prepared statement defines Note:
...
The new format for the middle section is a 3-letter upper case abbreviation of the sql command being executed (select -> SEL, update -> UPD, etc.)
{DB}_{SEL/INS/UPD/DEL/REP}_{Summary of data changed}
2011-12-31 20:14:38 +01:00
leak
8adac3f246
Core/DBLayer: Convert PExecute() queries to prepared statements No. 3
2011-12-31 00:32:05 +01:00
megamage
8cf2062c1f
Update grid system. Try to fix some crashes and transport passengers (now they are despawned after a while).
2011-12-20 17:07:09 -05:00
Spp
d59c5e627f
Fix warnings
2011-12-15 11:12:15 +01:00
kaelima
ef519bd313
Copy/paste error in f8cb2f528b
2011-12-13 13:58:52 +01:00
Vinolentus
599a24df24
Core/ObjectMgr: Fix possible SQL injection for game_tele
2011-12-13 13:58:49 +01:00
kaelima
17771b20c1
Copy/paste error in f8cb2f528b
2011-12-12 21:05:51 +01:00
Vinolentus
f8cb2f528b
Core/ObjectMgr: Fix possible SQL injection for game_tele
2011-12-12 20:36:46 +01:00
LaserJet
9c65d26e46
Core/Loading: Fix some copy&paste mistakes in creature_(template_)addon
2011-12-07 22:05:57 +01:00
megamage
6a648c01a4
Some clean up of grid system.
2011-12-07 13:02:44 -05:00
Nay
15c24a4e97
Core/Quest: Consistency, god damn..
...
(RequiredSourceItemIdCount -> RequiredSourceItemCount; quest_template did not change)
2011-12-06 10:56:37 +00:00
Nay
a0226ec5d1
Core/Quests: Fix some variable renaming fails in quest related code
...
Closes #4183
2011-12-03 21:30:30 +00:00
megamage
529af3cd09
Delete obj if it is not successfully added to grid. More to fix.
2011-11-28 14:05:25 -05:00
Nay
5a4636c145
Core|DB/Quests: Rename and re-order fields in quest_template table, for the sake of consistency
...
Order should match SMSG_QUEST_QUERY_RESPONSE
2011-11-26 03:00:06 +00:00
Stalker_Riddick
d8ffeed476
Core/Quests: Add new field RequiredClasses for quest_template Credits to
...
NoFantasy.
* SkillOrClass is converted to RequiredSkill (and then field can contain skill id only)
* Field ZoneOrSort has no longer a function in quest requirement, and RequiredClasses must be used instead where class limits are expected.
To restrict a quest to one class or more, use bitmask of class in RequiredClasses. RequiredSkill works like before.
Signed-off-by: NoFantasy <nofantasy@nf.no >
Signed-off-by: Stalker_Riddick <nenad_kuza@hotmail.com >
2011-11-25 13:11:53 +00:00
Shauren
358b33239a
Core: Fixed remaining C6246: Local declaration of 'x' hides declaration of the same name in outer scope. from previous commit
2011-11-23 19:17:33 +01:00
megamage
5a0ffefecc
Remove unnecessary const_cast<Map*>.
2011-11-23 12:51:20 -05:00
Bootz
d1334624da
Core: Codestyle clean-up
...
"pl"->"player"
Note: codestyle methods needs maintained, Player* player.
still to do properly clean-up chat.cpp.
2011-11-07 11:18:00 -06:00
megamage
ffdfd9252b
More clean up of grid system.
2011-10-18 11:51:30 -04: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
unknown
8acf07dbab
Random minor code cleanup
2011-09-29 22:35:00 +04: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
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
Spp-
45af1238cf
Conditions/DisableMgr: converted from singleton to namespace with free functions.
2011-09-09 14:27:23 +02:00
Spp-
c4c9165428
Core/ArenaTeam: Use full captain guid instead of low guid on team creation and some code cleanup
2011-09-09 13:05:51 +02:00
Nay
fd3bd4c49d
Core/Quests: Implement quests that require PlayerSlain. Closes #169
2011-09-05 15:20:02 +01:00
Nay
dca0e737de
Core/Quests: Fix quests with RepObjective2 set. Closes #2901 .
...
Misc: Correct a file name, move a spell error to error log and a small typo in trinity_string
2011-09-04 23:44:01 +01:00
Nay
548f8ba095
Core/Player: Teleport the player to a default graveyard (Crossroads/Wesfall) when a zone has no info about graveyards
2011-08-06 17:23:33 +01:00
Spp
d0de7976dc
Core/ObjectMgr: Some minor changes in LocaleString functions
2011-08-04 15:14:15 +02:00
Spp
7e53a73059
Core/Vehicles: Remove Vehicle.h dependency from other header files
2011-08-03 12:28:42 +02:00
Spp-
acd0fc79f6
Core: Pass by const reference for simple objects replaced with pass by value
2011-08-01 14:23:27 +02:00
Spp-
0b5c03f66b
Core/Scripts: ScriptRegistry is no longer the part of ScriptMgr public interface, it is not required by caller side. Also remove extra function call to GetScriptId in scripts
2011-07-27 14:52:59 +02:00
Shauren
b9a6e2333c
Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash
2011-07-27 12:35:59 +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
Spp-
bb921ae78c
Core: Do not use STL container size method to check if container is empty
2011-07-01 14:58:44 +02:00
Spp-
e9aa72cc7b
Cosmetic: rename function escape_string to EscapeString
2011-06-30 14:52:44 +02:00
kaelima
9a67aaa8b8
DB/Creature:
...
- Nuke the hacky column DeathState.
- Removed some hacks from Kologarn script, including some cleanup.
- Removed set deathstate command.
BIG thanks to Malcrom for replacing all creatures that had deathstate with proper dynamicflags/auras.
2011-06-27 20:22:53 +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 <machiavelli.trinity@gmail.com >
2011-06-27 14:23:58 +02:00