Commit Graph
71 Commits
Author SHA1 Message Date
megamage 417c7c8319 [7393] Implement access to client side holiday ids. Author: VladimirMangos
* src/game/GameEvent.* renamed to src/game/GameEventMgr.* for consistence
    * `game_event` now have new `holiday` field for store client side holiday id associated with game event
    * Added new enum HolidayIds with existed at this moment holiday ids.
    * New function "bool IsHolidayActive(HolidayIds id)" added accessabel from scripts for active holidays check.

--HG--
branch : trunk
2009-03-06 19:36:47 -06:00
megamage c2261e3502 [7391] Prevent achievement counter overflow, implement ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE generic support.
Before overflow has been possible at 4294967295 lols for example.

    ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE in many cases require check special conditions and targets.
    For this allow call it from scripts:
    * Add Player::UpdateAchievementCriteria functiona ccessable from scripts
    * In emote case it allowed call in form player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE, text_emote_id, achievement_id, target_unit_ptr);

Author: VladimirMangos

--HG--
branch : trunk
2009-03-06 18:14:05 -06:00
megamage 50b3095312 Implement some death related achievements
* ACHIEVEMENT_CRITERIA_TYPE_DEATH (normal and arena types counting)
    * ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON (instance types by man limit counting)
      Note: need fixed for cases when max allowed players different from recommended count.
    * ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM (environment damage sources by types)

    Fixed:
    * ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER
       - self-kill counting as death from players
       - same team player kill in opposition kills counter.

    Also cleanup in Player::EnvironmentalDamage use DBCStructure.h comment.

Author: VladimirMangos

--HG--
branch : trunk
2009-03-06 15:21:44 -06:00
megamage ae55745f2a [7378]~[7381] achievement code update. Author: VladimirMangos
--HG--
branch : trunk
2009-03-05 09:22:43 -06:00
megamage dbe18a4469 [7350] Use more compact and fast way for check class/race achievement. Author: zhenya <[email protected]>
--HG--
branch : trunk
2009-02-27 12:55:14 -06:00
megamage 472f897b0a [7336] Implemented new BattleGroundQueue invitation system. Now it supports premade group versus premade group matches.
Added 2 new config options - InvitationType and PremadeGroupWaitForMatch - you can find more info in default config file.
    This patch can cause crashes.

Author: Triply

[7338] Little cleanup in battleground queues code. Author: ApoC

--HG--
branch : trunk
2009-02-27 12:13:59 -06:00
megamage 699bc588b8 [7330] Code warnings and style cleanups. Some bugs fixes. Author: VladimirMangos
1) comparison singed and unsigned values
    2) redundent includes
    3) wrong constructor :-part field initilization
    4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
    5) explicitly list not implemented achievement types.

    Also bugs fixed:
    1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
    2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
    3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.

--HG--
branch : trunk
2009-02-24 11:14:28 -06:00
megamage 3fb55c922f [7312] Use localized DB-based achievement message instead hardcoded string. Author: VladimirMangos
--HG--
branch : trunk
2009-02-21 17:02:56 -06:00
megamage 709f3c4130 [7240] Fix logfile spam from AchievementMgr.
Log AchievementMgr::SendAchievementEarned only in debug.

    Signed-off-by: ApoC <[email protected]>

--HG--
branch : trunk
2009-02-08 21:54:47 -06:00
megamage f08e9d323b [7235] New command: .reset achievements. Author: VladimirMangos
--HG--
branch : trunk
2009-02-06 15:40:48 -06:00
Drahy 7c19c420c6 * Updated copyright notice for new year (2009) part 1 - Mercurial cant convert all files at once
--HG--
branch : trunk
2009-02-04 12:04:12 +01:00
megamage f6595630c3 [7218] Fixed used message CHAT_MSG_GUILD_ACHIEVEMENT format.
Guild members will not recieve achievement messages.

Author: delavega

--HG--
branch : trunk
2009-02-01 16:51:20 -06:00
megamage ef88b04451 *Update to Mangos 7183.
--HG--
branch : trunk
2009-01-25 16:35:14 -06:00
megamage b28b8b5ced *Update to Mangos 7154.
--HG--
branch : trunk
2009-01-23 11:41:43 -06:00
megamage ab4b9160f2 *Update to Mangos 7151.
--HG--
branch : trunk
2009-01-22 22:44:27 -06:00
megamage 68c0bcd069 *Update to Mangos 7125.
--HG--
branch : trunk
2009-01-20 19:59:43 -06:00
megamage 6288ca7c68 *Mangos [7040] Move achievment rewards dat to new DB table. Implement sending item rewards by mail. By VladimirMangos.
Support localization string fields for new table.
    Move achievments related code and data from ObjectMgr to new AcievmentGlobalMgr.
*Mangos [7041] Add 7-8 rank warlock stone. By GriffonHeart.

--HG--
branch : trunk
2009-01-06 13:55:14 -06:00
megamage a1a52b710c *Mangos [7014] Fixed setting initial value of achievement criteria counter, broken after 21df99d7. With that bug players had to complete an achievement criteria n+1 times. By arrai.
--HG--
branch : trunk
2009-01-03 11:02:57 -06:00
megamage 1e4381f7b1 *Update to Mangos 7006.
--HG--
branch : trunk
2009-01-02 11:03:43 -06:00
megamage f70d5a22c7 *Update to Mangos 6982.
--HG--
branch : trunk
2008-12-29 17:27:50 -06:00
megamage 3cb4e7c716 *Update to Mangos 6938. (Only build for VC9)
--HG--
branch : trunk
2008-12-24 09:58:26 -06:00