Commit Graph

137 Commits

Author SHA1 Message Date
Spp
cb0cb96283 Warning Fixes
Code Style cleanup
Fix linux compile

--HG--
branch : trunk
2010-04-29 23:12:16 +02:00
Trazom62
36ebd58b37 Implement support of Timed Achievement. Thanks Shauren.
Fixes issue #1431.

--HG--
branch : trunk
2010-04-27 22:22:13 +02:00
Machiavelli
30c842480c - Fix display of recently earned achievements when the player has a high total of earned achievements.
- Fix crash in compare achievements with players with high GUIDs, by havenard. Fixes issue #1724

--HG--
branch : trunk
2010-04-24 15:08:18 +02:00
Trazom62
f8cf934775 Fix crash in AchievementCriteriaData::Meets.
Fixes issue #1555.

--HG--
branch : trunk
2010-04-20 21:55:47 +02:00
Spp
74dd02d024 Remove LOTS of compile warnings
--HG--
branch : trunk
2010-04-19 09:26:37 +02:00
n0n4m3
be95faff23 Fix mail, professions, group loot, console spam, and some fixes. Big thx to TOM_RUS.
--HG--
branch : trunk
2010-04-11 11:16:42 +04:00
Spp
4635fbc020 Code Style (game + scripts only):
"!=" --> " != " (when needed)
"  !=" --> " !="
"!=  " --> "!= "

--HG--
branch : trunk
2010-04-08 08:20:08 +02:00
Spp
2454c290b8 Code Style (game + scripts only):
"==" --> " == " (when needed)

--HG--
branch : trunk
2010-04-07 23:25:02 +02:00
Spp
49d05ba9aa Code style (game + scripts only):
"( " --> "("
" )" --> ")"

--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp
d19e127080 Code style (game + scripts only):
"if(" --> "if ("

--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp
2e127f7a30 Code style (game + scripts only):
"while(" --> "while ("

--HG--
branch : trunk
2010-04-07 19:13:19 +02:00
Trazom62
e018c4cc7b Implemented new achievement criteria data:
* ACHIEVEMENT_CRITERIA_DATA_TYPE_S_EQUIPED_ITEM_LVL (item level and item quality).

Implemented achievement criteria:
* ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM
* ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM

Update ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM implementation. Requires DB update to use new criteria data.

Thanks VladimirMangos.

--HG--
branch : trunk
2010-03-22 18:32:38 +01:00
Xanadu
f9566e08ac Properly implemented CONDITION_ACHIEVEMENT for the DB gossip system.
--HG--
branch : trunk
2010-03-15 04:37:28 +01:00
Trazom62
8210a97e73 Fix achievement title check at startup.
--HG--
branch : trunk
2010-03-11 23:25:04 +01:00
raczman
91b8ee104e Added new type-safe cast functions.
This, when properly used, should get rid of most memory corruption issues,
currently, casting types C-style with no checks leads to some abstract crashing.
Functionality is same as with dynamic_cast<>, but with no RTTI check - so when
casting into invalid type you will receive NULL, and most probably crash.
At the same time, i took the liberty to convert most Player* casts to ToPlayer().
Still needs crapload of casts being moved to new facility.

--HG--
branch : trunk
2010-03-07 15:20:19 +01:00
Trazom62
df97b00632 Fix startup warning due to r7188.
--HG--
branch : trunk
2010-01-25 22:56:26 +01:00
Trazom62
8710fe8fa0 implement ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM (achievement Epic, Superior)
remove hack for ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT and ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT (achievement Needy, Greedy)

need DB support

--HG--
branch : trunk
2010-01-24 16:26:33 +01:00
XTZGZoReX
9f00ca3eb8 * Remove CellLock class and all cell-level thread locking.
** It was wasting CPU power as cell-level locking is not needed.
** Our multithreading is on map-level, not cell-level.
** CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data.
** Some minor cleanup in Cell::Visit/Map::Visit.

--HG--
branch : trunk
2010-01-23 22:24:41 +01:00
Anubisss
d9cb070215 Implement QueryResult_AutoPtr type which is ACE's reference counted auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers.
Use this auto_ptr for every DB queries(except QueryNamedResult yet).

This patch guarantees NO memory leaks from QueryResult pointers.

Thanks to raczman for the idea and for the helping to make this patch.

--HG--
branch : trunk
2010-01-23 14:45:58 +01:00
n0n4m3
a29727e423 Fixed problem with not setAchievementCriteriaDataSet::criteria_id, Add achievement creteria requirements forACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET*, by GriffonHeart.
--HG--
branch : trunk
2010-01-16 19:41:04 +03:00
p0wer
17e4fbd4ad Make the core boot alot cleaner. Fix some formating. Make custom attributes for spells show a bar and how much they are loading.
Overall fix 99% of display issues while core is booting.

--HG--
branch : trunk
2010-01-01 14:19:29 -06:00
n0n4m3
07e2920b60 Implement ACHIEVEMENT_CRITERIA_DATA_INSTANCE_SCRIPT. by VladimirMangos
--HG--
branch : trunk
2009-12-25 15:53:37 +01:00
n0n4m3
250a00cc1c Temporary revert 6743 commit. I fix this patch across 1-2 days.
--HG--
branch : trunk
2009-12-24 10:20:15 +01:00
n0n4m3
3fe0bc5254 Replaced time(NULL) on sGameTime.GetGameTime() this is used for better performance.
Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton.
2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs.

--HG--
branch : trunk
2009-12-23 08:04:10 +01:00
Rat
6fe36efe0f *apply trinity style to whole source
*comment out all mangos to trinity defines
*this will make merging a little harder, but code will be more clear

--HG--
branch : trunk
2009-12-20 15:20:04 +01:00
n0n4m3
3e133c4786 [9012] fix crash when achievement is completed and player isn't in world
--HG--
branch : trunk
2009-12-17 19:09:40 +01:00
n0n4m3
89656d5749 Restore some commits from trinitycore2 3.1.3
--HG--
branch : trunk
2009-12-17 13:07:38 +01:00
n0n4m3
2edfea7bb9 Update Arena and Achievement for 322a
--HG--
branch : trunk
2009-12-17 10:35:35 +01:00
n0n4m3
242e6a7295 Fixed crash in UpdateAchievementCriteria
--HG--
branch : trunk
2009-12-17 06:39:03 +01:00
win32
bf2c3fd8cf MaNGOS merge: Mail System.
* Store loot in mail_loot_template indexed by mail template ids.
* Implement proper creating mail text copy item from mail template based mail.
* Move send functions to new MailDraft class from WorldSession.
* Implement mails sending at player levelup.
* Autor VladimirMangos, converted by me.

--HG--
branch : trunk
2009-12-16 18:58:36 +02:00
maximius
d22768a6b5 *Cleanup
--HG--
branch : trunk
2009-10-18 18:38:46 -07:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
Machiavelli
3ccc348b09 * Correctly seperate the two blocks of SMSG_ALL_ACHIEVEMENT_DATA , pointed out by w12x
--HG--
branch : trunk
2009-10-10 00:33:49 +02:00
Machiavelli
a4adccef0f * Fix "character freeze on map change" bug due to high number of achievements.
--HG--
branch : trunk
2009-10-09 22:25:46 +02:00
maximius
f980dd9ac6 *Merge [8524] New cell search algorithm implemented. You can now choose different
visibility distances on continents, in BG/Arenas and instances. Author: Ambal
*Some warning cleanup

--HG--
branch : trunk
2009-09-27 02:24:25 -07:00
maximius
2bb0c31978 *[8474] Allow to delete BattleGround objects when any of invited players didn't click to enter battle. Rename m_TeamScores500disadvantage to m_TeamScores500Disadvantage, and optimize its update. Patch is tested. Author: Triply
*Added some missed changes that might of broken compile in the last 2~ commits.
*Some fixes to Warlock's Death Coil by Gyullo.
*Last MaNGOS merge until KingPin says otherwise..

--HG--
branch : trunk
2009-09-11 16:25:11 -07:00
maximius
fdbe1ebff9 * [8460] Use achievtment criteria data from table for ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL as expected. Author: VladimirMangos
--HG--
branch : trunk
2009-09-11 13:20:38 -07:00
Chaz Brown
52f243563f Fix a couple of small typos.
--HG--
branch : trunk
2009-09-04 19:50:00 -04:00
megamage
dd72b5524c [8426] Use upper/lower iterator pairs as result instead 2 function calls. Author: VladimirMangos
--HG--
branch : trunk
2009-08-27 20:27:55 -05:00
Anubisss
b3d381791e *Dont allow function CompletedAchievement() for GMs if GM.AllowAchievementGain disabled in conf.
--HG--
branch : trunk
2009-08-16 14:30:40 +02:00
Rat
18e36134ad *fix typo in achievement, thanks to Thyros
--HG--
branch : trunk
2009-08-05 23:03:27 +02:00
megamage
41ba5c232a [8288] Add table base addition reqs for achievements with ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL Author: VladimirMangos
This prevent not proper finish some achievments added in 3.1.x

--HG--
branch : trunk
2009-08-02 10:12:40 +08:00
megamage
40f7c7243c *Fix build.
--HG--
branch : trunk
2009-07-31 11:40:32 +08:00
megamage
bf989ce073 [8277] Add new line at the end of some .cpp to make gcc happy Author: Gendalph
--HG--
branch : trunk
2009-07-31 11:37:03 +08:00
megamage
70e31cce3f [8276] Implement achievment ACHIEVEMENT_CRITERIA_TYPE_WIN_BG Author: VladimirMangos
* including new achievement createria data type ACHIEVEMENT_CRITERIA_DATA_TYPE_BG_LOSS_TEAM_SCORE

    Note: Some achivement creteria for success need data in `achievement_criteria_data`

--HG--
branch : trunk
2009-07-31 11:36:02 +08:00
megamage
bf8c0933c9 [8221] Removed trailing whitespaces
With excluded dep/ - as usual.

    Signed-off-by: freghar <compmancz@gmail.com>

--HG--
branch : trunk
2009-07-30 10:19:03 +08:00
QAston
9eaf1e6de3 *Implement ACHIEVEMENT_CRITERIA_TYPE_WIN_BG - by BudIcePenguin.
--HG--
branch : trunk
2009-07-22 23:51:39 +02:00
megamage
b5d802b70c [8151] Fixed some format warnings and typos. Author: Win32
--HG--
branch : trunk
2009-07-12 17:52:27 +08:00