Commit Graph
58 Commits
Author SHA1 Message Date
megamage d4c15bb11a [7703] Implement heal/damage total counters and related BG achievments. Author: Trazom
* ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE
    * ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE

--HG--
branch : trunk
2009-04-23 22:07:37 -05:00
megamage e991397971 [7702] Implement some damage/healing achievement statistics. Author: Trazom
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT
    * ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_RECEIVED
    * ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED
    * ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEAL_CASTED
    * ACHIEVEMENT_CRITERIA_TYPE_TOTAL_HEALING_RECEIVED
    * ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALING_RECEIVED

--HG--
branch : trunk
2009-04-23 22:07:04 -05:00
megamage db3e17cb70 [7700] Implement ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL Author: DonTomika
--HG--
branch : trunk
2009-04-22 18:03:07 -05:00
megamage 7310c90f40 [7694] Fixed achievement criteria set at loading. Author: raven_coda
--HG--
branch : trunk
2009-04-21 14:24:00 -05:00
megamage 624c30138a [7692] Implement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE and reimplement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS. Author: VladimirMangos
Also correctly set this criteria at login.

--HG--
branch : trunk
2009-04-20 20:33:43 -05:00
QAston cc5414f925 *Correct check range for totem area auras.
--HG--
branch : trunk
2009-04-20 16:48:35 +02:00
megamage bede29b223 [7683] Fixed update ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST for daily quests. Author: Trazom
--HG--
branch : trunk
2009-04-18 20:49:56 -05:00
megamage ca5894b348 [7682] Implement support ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT Author: Trazom
--HG--
branch : trunk
2009-04-17 15:22:27 -05:00
megamage 6703cabbfb [7653] Implement ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE Author: Trazom
Correct complete if ACHIEVEMENT_FLAG_SUMM set

--HG--
branch : trunk
2009-04-11 23:13:00 -05:00
megamage 618e9d600d [7639] Correctly fixed error spam, revert [7637]. Thx to vladimir Author: Triply
--HG--
branch : trunk
2009-04-08 16:39:22 -05:00
megamage aa506c2495 [7637] Prevent console spam - FATAL: Unknown arena team type %u for some arena team. Author: rastikzzz
--HG--
branch : trunk
2009-04-08 16:38:33 -05:00
megamage 371a584047 [7633] Implement support multiply basic requirements for crireria in achievement_criteria_data. Author: VladimirMangos
Also implement additional basic requirements for proper implementing checks for ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE
    Req. DB support.

--HG--
branch : trunk
2009-04-08 16:34:38 -05:00
megamage a6bc2a0173 [7628] Implement .reload for static achievement tables. Author: VladimirMangos
--HG--
branch : trunk
2009-04-08 16:27:00 -05:00
megamage 7b2ae4d964 [7627] Replace built-in in code table by new DB table achievement_criteria_data for store additional data for achievement criteria. Author: VladimirMangos
--HG--
branch : trunk
2009-04-08 16:24:34 -05:00
megamage 2148e25362 [7619] Work under Achievement and AchievementCriteriaCompletion Flags Author: DiSlord
Remove wrong (not fully correct) check in IsCompletedAchievement

--HG--
branch : trunk
2009-04-05 17:05:15 -05:00
megamage 3d1200f4ac [7609] Trailing whitespace cleaning Author: freghar
--HG--
branch : trunk
2009-04-03 16:39:21 -06:00
megamage df479707e2 [7608] Implement ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT. Author: VladimirMangos
--HG--
branch : trunk
2009-04-03 16:37:06 -06:00
megamage cb8b3fe5db [7607] Improvements in support some generic achievement classes Author: VladimirMangos
* Implement support achievements with refAchievement field != 0, that have criterias stored in achievement refAchievement.
    * Implement support achievement complete req. with specific count of completed critirias.
    * Avoid full achievement list scan at search achievement associated with criteria.

--HG--
branch : trunk
2009-04-03 16:36:20 -06:00
megamage be89c6bb2a [7590] Prevent send achievement packets at login. Author: VladimirMangos
For speed (player not in world and grid broadcast not work anyway)
    and correctness (guild members don't must be spammed)

--HG--
branch : trunk
2009-03-31 07:43:20 -06:00
megamage 4bd98db3ab [7575] Avoid unrelated skill search at ACHIEVEMENT_CRITERIA_TYPE_*_SKILL_LEVEL update Author: VladimirMangos
--HG--
branch : trunk
2009-03-28 18:00:33 -06:00
megamage eee2d0216e [7573] Implement ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL Author: Trazom
--HG--
branch : trunk
2009-03-28 17:58:21 -06:00
megamage f077ca4c6c [7553] Fixed character save/creating. Author: VladimirMangos
--HG--
branch : trunk
2009-03-27 10:02:02 -06:00
megamage bc2f2bc56a [7552] Move client version dependend DBC code to src/game. Author: VladimirMangos
--HG--
branch : trunk
2009-03-27 09:58:20 -06:00
megamage b78f837425 [7547] Improvments in reputation achievements implememtaion. Author: VladimirMangos
* Speedup achievement checks at reputation updates.
    * Implement
      - ACHIEVEMENT_CRITERIA_TYPE_GAIN_REVERED_REPUTATION
      - ACHIEVEMENT_CRITERIA_TYPE_GAIN_HONORED_REPUTATION
      - ACHIEVEMENT_CRITERIA_TYPE_KNOWN_FACTIONS

--HG--
branch : trunk
2009-03-26 14:03:55 -06:00
megamage 1ac13728a7 [7545] Fixed exploration achievements for certian areas Author: DonTomika
[7546] move uptime table to Realm database, use realmid column. Author: Triply

--HG--
branch : trunk
2009-03-26 14:02:11 -06:00
megamage 68c3039715 *Move most reputation/force faction reaction code to new ReputationMgr. Author: VladimirMangos
--HG--
branch : trunk
2009-03-26 13:53:32 -06:00
megamage 2106e9f257 [7539] Fixed log output Author: AlexDereka
--HG--
branch : trunk
2009-03-25 16:07:19 -06:00
megamage 02440eaa10 [7538] Hide some implementation details for reputation/forced faction reaction. Author: VladimirMangos
--HG--
branch : trunk
2009-03-25 16:04:08 -06:00
megamage 3c10cc0635 [7534] Fixed some problems in achievement messages broadcasting. Author: VladimirMangos
* Send SMSG_CRITERIA_UPDATE to player itself only. This will fix bug when, for example near player death
      owerwrite another player death count in statistics until next death or relogin.
    * Send to near player  CHAT_MSG_ACHIEVEMENT instead CHAT_MSG_GUILD_ACHIEVEMENT
    * Not send CHAT_MSG_GUILD_ACHIEVEMENT to player itself.
    * Limit around broadcast of SMSG_ACHIEVEMENT_EARNED to CONFIG_LISTEN_RANGE_SAY (same as for CHAT_MSG_ACHIEVEMENT)

--HG--
branch : trunk
2009-03-24 17:43:16 -06:00
megamage 941e5b9dbd [7532] Avoid warnings at use size_t with printf fromat strings. Author: VladimirMangos
--HG--
branch : trunk
2009-03-24 17:38:14 -06:00
megamage 1d5192bccb [7530] Fixed counting exalted reputation achievements work for factions with base reputation != 0. Author: emsy
--HG--
branch : trunk
2009-03-24 09:47:19 -06:00
XTZGZoReX 9fe43fa9c0 * Implementing database logging:
** LogTime and LogColors config options removed due to incompatibility.
** Old file logging still available.
** Totally redone the Log class.
** Config options added: EnableLogDB, DBLogLevel, LogDB.Char, LogDB.RA, LogDB.GM -- remember to update config file.
** SQL updates attached.

--HG--
branch : trunk
2009-03-19 21:13:52 +01:00
megamage 6a6f4de757 [7478] Avoid rescan data at some achievments triggering for speed. Author: VladimirMangos
Only if chnage can affect result
    * ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL
    * ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS
    * ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION
    * ACHIEVEMENT_CRITERIA_TYPE_GAIN_EXALTED_REPUTATION if

--HG--
branch : trunk
2009-03-17 14:55:16 -06:00
megamage 46dfd6261b [7477] Implement work ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM Author: VladimirMangos
--HG--
branch : trunk
2009-03-17 14:54:32 -06:00
megamage e68bb30fd1 [7427] Sort ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE achievements by normal/heroic and check current player mode fit. Author: VladimirMangos
Also ignore any ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE achievements with not implemented custom requirements.

--HG--
branch : trunk
2009-03-09 18:01:25 -06:00
megamage 1131953fa1 [7418] Implement new log filter LogFilter_AchievementUpdates that let avoid achievments updates spam in logs if not needed. Author: VladimirMangos
Enabled by default.

--HG--
branch : trunk
2009-03-09 17:41:50 -06:00
megamage 4f6c96b98c [7394] Check loot_template.maxcount for max allowed value (255) and make better report for this case. Author: VladimirMangos
Also optimize strcture LootStoreItem that let use 4 byte for loot template element in memory instead 5 bytes.
    But limit group id to 127 max value. Check this at loading.

--HG--
branch : trunk
2009-03-06 19:39:42 -06:00
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