Commit Graph

113 Commits

Author SHA1 Message Date
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
megamage
4a8a89e1db [8103] More wide use IsInWorld checks and delayed at teleport operations. Author: Ambal
* IsInWorld used to prevent return unexpected not in world objects.
    * Delayed operations need to process its in world state.

--HG--
branch : trunk
2009-07-01 18:36:03 -05:00
megamage
02a5c2fcc6 [8069] Fixed copy/paste mistake in achievement error output. Author: Saeba
--HG--
branch : trunk
2009-06-27 17:12:01 -05:00
QAston
f558a785fc [8069] Fixed copy/paste mistake in achievement error output. Author: Saeba
[8070] Restore spell casting loot items and recipes.

* SPELL_EFFECT_OPEN_LOCK_ITEM (59) effect removed in 3.1.3
* It replaced by SPELL_EFFECT_CREATE_RANDOM_ITEM (59), random item without
template replace spells like clam loot spells)
  Used by spells that use before SPELL_EFFECT_CREATE_ITEM_2 (157) with
  itemtype==0

Note: required DB support in `spell_loot_termplate` Author: VladimirMangos

--HG--
branch : trunk
2009-06-23 14:44:16 +02:00
QAston
ad91c6b1e2 [8052] Fixed typo in error log output. Author: The_Game_Master
[8049] Added energize effect after last heal tick for 33763 and ranks. Author: bobaz
[8053] At character talents reset using chat command also reset talents
for all character pets. Author: VladimirMangos

--HG--
branch : trunk
2009-06-23 13:05:15 +02:00
megamage
9d205d8659 [8004] Implement table data use support for more achievement types requirements. Author: VladimirMangos
* ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST (hardcoded list)
    * ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING
    * ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL
[8003] Implement ACHIEVEMENT_CRITERIA_DATA_TYPE_HOLIDAY.

--HG--
branch : trunk
2009-06-14 10:00:45 -05:00
megamage
c0c9b14e1d [8002] Implemented ACHIEVEMENT_CRITERIA_DATA_TYPE S_DRUNK and fixed typos in ACHIEVEMENT_CRITERIA_DATA_TYPE_T_TEAM Author: Dyddye
--HG--
branch : trunk
2009-06-14 09:59:50 -05:00
megamage
337772c433 [7981] Implement ACHIEVEMENT_CRITERIA_DATA_TYPE_T_TEAM required for 310 Author: VladimirMangos
[7982] Add lost by me check lines in [7980] :(

--HG--
branch : trunk
2009-06-09 17:20:19 -05:00
megamage
5e7d184734 [7976] Store additional reqs for ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE in achievement_criteria_data. Author: VladimirMangos
Required DB support. Some reqs not implements in code and then can be used
    ACHIEVEMENT_CRITERIA_DATA_TYPE_DISABLED in Db to make its non-complitable.

--HG--
branch : trunk
2009-06-07 20:54:23 -05:00
megamage
5a2745caac [7974] Added two more achievement_criteria for achievement_criteria_data (T_LEVEL, T_GENDER) Author: DerDyddye
Its required for implementing new cases of 110 achievement criteria in 3.1.x.
    Ofc, this required DB support.

--HG--
branch : trunk
2009-06-07 20:52:00 -05:00
panaut0lordv
f6447e8f34 *Including style fixing - part 1
--HG--
branch : trunk
2009-06-04 21:41:07 +02:00
megamage
b05ebfa8e9 [7934] Implement ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA Author: Trazom
Also added ACHIEVEMENT_CRITERIA_DATA_TYPE_VALUE and support
    this criteira special cases base at `achievement_criteria_data`
    that required DB support.

--HG--
branch : trunk
2009-06-01 21:51:34 -05:00
megamage
439187b86b [7927] For achievement criteria type ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM check also items equip at loading. Author: VladimirMangos
--HG--
branch : trunk
2009-05-31 16:27:16 -05:00
megamage
1a360a6a97 [7926] Implement loot roll achievement criteria types used in statistics Author: DonTomika
* ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED
    * ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED:

--HG--
branch : trunk
2009-05-31 16:26:39 -05:00
megamage
5ed5513ca8 Mangos [7911]. Author: tomrus88
Very big patch. May cause bugs.

--HG--
branch : trunk
2009-05-31 15:56:51 -05:00
megamage
6da36b90cc [7882] For achievement criterias data check ACHIEVEMENT_CRITERIA_DATA_TYPE_T_PLAYER_DEAD include target's team check. Author: VladimirMangos
--HG--
branch : trunk
2009-05-24 11:18:23 -05:00
megamage
2fadf3dd77 Fixed bank bag slot amount achievement statistic. Cleanup related code. Author: VladimirMangos
--HG--
branch : trunk
2009-05-24 11:17:03 -05:00
megamage
ff8d1cf55c [7802] Use more appropriate field types in character_achievement* tables. Better check data at loading. Author: VladimirMangos
--HG--
branch : trunk
2009-05-08 19:22:17 -05:00
megamage
fce448a521 [7779] Sort achievement criteria switch cases. Author: VladimirMangos
--HG--
branch : trunk
2009-05-06 16:38:58 -05:00
megamage
66884cab11 [7778] Implement honorable kill related achievement criteria Author: DonTomika
* ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS
    * ACHIEVEMENT_CRITERIA_TYPE_HK_RACE

--HG--
branch : trunk
2009-05-06 16:38:36 -05:00
megamage
dcb2b5aa01 [7775] Implement duel related achievement criteria Author: DonTomika
* ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL
    * ACHIEVEMENT_CRITERIA_TYPE_LOSE_DUEL

--HG--
branch : trunk
2009-05-05 14:50:06 -05:00
megamage
52a867bf0a [7773] Implement some statistics only achievement criteria Author: DonTomika
* ACHIEVEMENT_CRITERIA_TYPE_QUEST_ABANDONED
    * ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN
    * ACHIEVEMENT_CRITERIA_TYPE_ACCEPTED_SUMMONINGS

--HG--
branch : trunk
2009-05-05 14:49:15 -05:00
megamage
a04c9bfe00 [7772] Implement ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_GOLD_VALUE_OWNED Author: DonTomika
--HG--
branch : trunk
2009-05-05 14:48:48 -05:00
megamage
1d2d3693c4 *Replace some "mangos_debug" with "trinity_debug"
--HG--
branch : trunk
2009-05-04 13:13:07 -05:00
megamage
438b773bac [7753] Implement ACHIEVEMENT_CRITERIA_TYPE_NUMBER_OF_TALENT_RESETS. Author: DonTomika
--HG--
branch : trunk
2009-05-03 22:30:31 -05:00