Commit Graph

244 Commits

Author SHA1 Message Date
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
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
158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
Shauren
411deceb2a Core/ObjectMgr: Removed obsolete code 2011-06-10 22:42:44 +02:00
Shauren
e1483329e0 Core/Mailsystem: Optimized returning and deleting old mails, will no longer take minutes when starting using old character db 2011-06-08 18:55:21 +02:00
Shauren
0ad14aeafd Core/Gossip: Gossip menu items will now have constant index, allowing to properly define scripts relying on that index when mixed with conditions. Script-created menus via ADD_GOSSIP_ITEM will still have the index generated dynamically 2011-05-26 23:57:17 +02:00
Shauren
63f7a6d3d9 Core/Spells: Use SpellDifficulty.dbc to check casterAuraSpell, excludeCasterAuraSpell, targetAuraSpell and excludeTargetAuraSpell
Scripts/Icecrown Citadel: Fixed Mutated Abomination not being able to eat ooze on heroic mode
Scripts/Icecrown Citadel: Removed some obsolete code

Closes #523, #1447
2011-05-17 13:17:42 +02:00
Shauren
a290443738 Core/Creatures: Allow triggers to move and made all current triggers not move in db 2011-05-16 23:39:01 +02:00
Az@zel
f73c6c40bb Core/Misc: fix compiler warnings 2011-05-11 11:12:26 +06:00
tobmaps
bd6750b4d0 Core/Player: Fix old issue with creating a character if using declined names. Thx to someone, whose name was lost on old forums 2011-05-10 18:52:28 +07:00
Shauren
551889c42f Core: More warning fixes 2011-05-07 20:09:45 +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
leak
4fe0fccc1c Fixed typo. Thanks to vlad852. 2011-05-03 10:57:59 +02:00
Shauren
d9ac745be9 Core/ObjectMgr: Corrected item loading 2011-04-29 23:17:20 +02:00
Shauren
34347a4509 Core/Items: Fixed items with negative stats 2011-04-29 22:52:36 +02:00