Commit Graph

340 Commits

Author SHA1 Message Date
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
7a2f21a0b1 [7426] Mounted players now can capture tower point in Eye of Storm. Author: Triply
Renamed function isAllowUseBattleGroundObject to CanUseBattleGroundObject

--HG--
branch : trunk
2009-03-09 18:00:56 -06:00
megamage
a32382a5ec [7425] Fixed crash in BattleGround::Update() Author: Triply
--HG--
branch : trunk
2009-03-09 17:58:04 -06:00
megamage
3d3656297f [7424] Codestyle: removed not needed \n in log output. Author: balrok
--HG--
branch : trunk
2009-03-09 17:56:51 -06:00
megamage
f4e473c877 [7423] Disable incremental limking for binaries in debug mode. Author: VladimirMangos
Anyway it always fail and back to non-incremental way.

--HG--
branch : trunk
2009-03-09 17:53:33 -06:00
megamage
f9aaf5bffb [7422] Allow localization base at guildmaster locale default guild rank names at guild creating. Author: VladimirMangos
--HG--
branch : trunk
2009-03-09 17:48:18 -06:00
megamage
209f24d7e0 [7421] Check fread result at DBC file loading. Author: VladimirMangos
This is more safe in general and prevent "warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result"

--HG--
branch : trunk
2009-03-09 17:46:50 -06:00
megamage
0a6ef039b2 [7420] Not set cdecl calling convention for x64 platform for Unic/Linux. Author: VladimirMangos
This will prevent generation "warning: 'cdecl' attribute ignored"

--HG--
branch : trunk
2009-03-09 17:46:07 -06:00
megamage
7b43f68ff7 [7419] Fixed some type convertion warnings. Author: VladimirMangos
--HG--
branch : trunk
2009-03-09 17:44:59 -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
fb9f44bf80 [7417] Fixed crash at access by unexpected NULL pointer in quest templates map. Author: VladimirMangos
Never never use operator[] for _access_ to elements std::map.

--HG--
branch : trunk
2009-03-09 17:40:40 -06:00
megamage
f014ccd3bd [7416] Fixed minimap icon for battlegrounds and arenas. Author: balrok
--HG--
branch : trunk
2009-03-09 17:08:07 -06:00
megamage
c708eba713 [7415] Fixed removing player from battlegrounds Author: Triply
Probably fixed bug with not ending battlegrounds - reported in previous commit message
    Fixed player will loose arena rating if
    1. he doesn't click on enter rated arena window - and timer will expire
    2. he logs out during time he is invited to rated arena match
    3. if he logs out during fight in rated arena match
    Patch is not tested, i will test it as soon as possible.

--HG--
branch : trunk
2009-03-09 17:07:40 -06:00
megamage
1f296b7d40 [7414] Fixed premature finish timer messages for battleground (va_start was broken). Author: Triply
Fixed typo with BattleGroundPlayerMap.
    Optimized implementation for removing offline players from battleground.
    Fixed typo in BattleGroundMgr::DeleteAllBattleGrounds.
    Patch is tested and should work.

    TODO there is a bug if you disable premature finish timer, that can cause battlegrounds to be never ending!
    TODO rewrite BattleGround::RemovePlayer function - and fix bugs there!
    I might not have today enough time to fix those bugs.

--HG--
branch : trunk
2009-03-09 17:07:12 -06:00
megamage
01b67a1f6a [7413] Fixed finally problems with node names localization in BattleGroundAB messages. Author: VladimirMangos
Also fix build at some platforms.
Note: GetTrinityString should be removed in the future when AV is updated.

--HG--
branch : trunk
2009-03-09 17:06:13 -06:00
megamage
c9796bab32 [7412] Do not allow player with deserter debuff to be teleported to battleground Author: Triply
--HG--
branch : trunk
2009-03-09 17:01:18 -06:00
megamage
5d5b37ab32 *Support localization for messsages in battleground. Author: VladimirMangos
[7411] Use similar localization classes for World::SendWorldText muti-line message. Author: VladimirMangos

--HG--
branch : trunk
2009-03-09 17:00:31 -06:00
megamage
39bb92f9db [7405] Show loaded 100% for case some player/pet/creature level data skipped as unused. Author: VladimirMangos
This cases have detail log output, but if detail mode disabled it look like strange not 100% load without reason.

--HG--
branch : trunk
2009-03-09 16:38:53 -06:00
megamage
f477021938 [7404] Fixed cheating in rated arena matches by alt+f4. Author: Triply
--HG--
branch : trunk
2009-03-09 16:36:58 -06:00
megamage
e979eb56f2 *Merge.
--HG--
branch : trunk
2009-03-08 13:07:59 -06:00
megamage
328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
panaut0lordv
2826ebee2f Codename update.
--HG--
branch : trunk
2009-03-08 19:04:29 +01:00
megamage
56416558fa [7402] Fixed graveyards in WSG, prevent from cheating. Patch provided by Balrok.
--HG--
branch : trunk
2009-03-08 11:53:35 -06:00
megamage
88c050182c *Fix build.
--HG--
branch : trunk
2009-03-08 11:31:00 -06:00
megamage
8cb6894c3d *Merge.
--HG--
branch : trunk
2009-03-08 11:23:50 -06:00
megamage
520ce96257 [7399] Rewrited BattleGround starting code - moved it to battleground class. Author: Triply
Fixed message color for premature finish warnings.
    Fixed .debug bg command won't allow 1v0 arenas now, only battlegrounds 1v0.
    Added battleground announcer message removed in [7384].

[7401] Fixed bgqueue invitation to already started battlegrounds - not tested. Author: Triply

--HG--
branch : trunk
2009-03-07 12:05:30 -06:00
megamage
f63c07e669 [7398] Now really really fix error message Author: VladimirMangos
--HG--
branch : trunk
2009-03-07 10:43:27 -06:00
megamage
99c765cec3 [7397] Implement above ground zone 4395 detection. Author: GriffonHeart
By hack code until proper multilevel zone data store not implemented.

--HG--
branch : trunk
2009-03-07 10:42:54 -06:00
megamage
acceab49c6 [7396] Fixed crash at group disband after some player invite decline and offline. Author: VladimirMangos
Correctly cleanup invites list at decline.

--HG--
branch : trunk
2009-03-07 10:42:13 -06:00
megamage
e3fa93e75f [7395] Default MaxPlayerLevel should be 80 Author: multiplexer
--HG--
branch : trunk
2009-03-07 10:40:59 -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
0d53225fdc [7392] Fixed SQL query for storing pending arena points for offline players for PGSQL. Author: ApoC
--HG--
branch : trunk
2009-03-06 18:14:41 -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
7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
Paradox
7b47d509e3 New AHBot plus AuctionHouse changes
--HG--
branch : trunk
2009-03-06 17:47:11 -06:00
megamage
13fc3dcd7e [7388] Fixed battleground premature warning message. SQL files are attached, you must execute them! Author: Triply
Fix for message's color will be soon.

--HG--
branch : trunk
2009-03-06 15:25:20 -06:00
megamage
6f595b3038 [7387] Check maxcount >= min count for item (not reference) record in loot templates DB tables.. Author: VladimirMangos
--HG--
branch : trunk
2009-03-06 15:23:25 -06:00
megamage
93113cd3cc [7385] Fixed mail price calculation Author: VladimirMangos
--HG--
branch : trunk
2009-03-06 15:22:19 -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
80cd305082 [7383] Changed some comments in config file, changed default MaxRatingDifference from 100 to 150 in default config.
[7384] Removed some comments.
    Fixed problem that queues doesn't invite new players to already running battlegrounds.
    Some other fixes for announce system will be soon.

Author: Triply

--HG--
branch : trunk
2009-03-05 19:02:08 -06:00
megamage
b7363a72fe [7382] Add 2 unknown field to creature_template sent in SMSG_CREATURE_QUERY_RESPONSE to client Author: NoFantasy
--HG--
branch : trunk
2009-03-05 18:58:58 -06:00
Blaymoira
fd2fd00c14 *Implement access_requirement table - by Iskander
- now check the requirements on teleport not only on areatrigger use
- moved some columns from instance_template and areatrigger_teleport to access_requirement table

--HG--
branch : trunk
2009-03-05 21:02:33 +01:00
megamage
ae55745f2a [7378]~[7381] achievement code update. Author: VladimirMangos
--HG--
branch : trunk
2009-03-05 09:22:43 -06:00
megamage
7a44a9fb93 [7377] Dummy effects for portal spells used in DK starting area. Author: GriffonHeart
--HG--
branch : trunk
2009-03-03 18:41:44 -06:00
megamage
1cdae46468 [7376] Allow store in spell_area.aura_spell negative values for "not has aura" requirement. Author: VladimirMangos
Also
    * Allow have in aura_spell spells with SPELL_AURA_PHASE in first effect.
    * Allow negative aura_spell chaining in spell_area table.
    * Better check at loading duplicate data (by requiremnt set) in spell_area table.

--HG--
branch : trunk
2009-03-03 18:41:11 -06:00
megamage
c113bf884f factionTemplate->faction can be 0, add appropriate checks to prevent crashes and unexpected work. Author: VladimirMangos
--HG--
branch : trunk
2009-03-03 16:18:22 -06:00
megamage
0a78760b75 [7374] Fixed search free slot in Player::CanStoreItems in case specialized bag. Author: Arthorius
--HG--
branch : trunk
2009-03-03 16:14:15 -06:00
megamage
0cfc452093 [7373] Implement expansion check at character loading (for homebind, transport and plain coordinates). Author: VladimirMangos
Also move fall damage calucaltion in new function.

--HG--
branch : trunk
2009-03-02 17:15:25 -06:00
megamage
55dffa8409 [7372] Cleanup BattleGround::GetClosestGraveYard related code. Author: VladimirMangos
--HG--
branch : trunk
2009-03-02 17:13:12 -06:00