Commit graph

871 commits

Author SHA1 Message Date
VladimirMangos
8bb451c85c [7420] Not set cdecl calling convention for x64 platform for Unic/Linux.
This will prevent generation "warning: 'cdecl' attribute ignored"
2009-03-09 10:09:59 +03:00
VladimirMangos
4dad8f40d0 [7419] Fixed some type convertion warnings. 2009-03-09 08:23:25 +03:00
VladimirMangos
bf718ea961 [7418] Implement new log filter LogFilter_AchievementUpdates that let avoid achievments updates spam in logs if not needed.
Enabled by default.
2009-03-09 07:59:27 +03:00
VladimirMangos
ebccd69b2f [7417] Fixed crash at access by unexpected NULL pointer in quest templates map.
Never never use operator[] for _access_ to elements std::map.
2009-03-09 05:47:05 +03:00
balrok
18c8e861f4 [7416] Fixed minimap icon for battlegrounds and arenas. Patch provided by Balrok. Thx.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-08 23:25:59 +01:00
Triply
bd0619ce40 [7415] Fixed removing player from battlegrounds
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.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-08 22:18:53 +01:00
Triply
ee5feab3eb [7414] Fixed premature finish timer messages for battleground (va_start was broken).
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.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-08 13:28:35 +01:00
VladimirMangos
722395be75 [7413] Fixed finally problems with node names localization in BattleGroundAB messages.
Also fix build at some platforms.
2009-03-08 14:39:53 +03:00
Triply
42f579f280 [7412] Do not allow player with deserter debuff to be teleported to battleground
Signed-off-by: Triply <triply@getmangos.com>
2009-03-08 10:45:36 +01:00
VladimirMangos
f42815f04b [7411] Use similar localization classes for World::SendWorldText muti-line message. 2009-03-08 12:32:09 +03:00
VladimirMangos
c9ca06a630 [7410] Localization support for some BattleGroundWS.cpp messages not catches in prev time. 2009-03-08 12:30:27 +03:00
VladimirMangos
57e715857b [7409] Support localization for messsages in specialized battagorund code BattleGround*.cpp
Note: BattleGroundAB still have problems with team/node localization in result wrong way LANG_ strings used.
2009-03-08 09:52:52 +03:00
VladimirMangos
cdf99bc169 [7408] Fixed last hidden non-localized message case in BattleGround.cpp.
Note:
1) CHAT_MSG_BG_SYSTEM_NEUTRAL not dependent from target guid so use SendMessageToAll
   and cleanup code
2) BattleGround.cpp now not dependent from Chat.h
2009-03-08 08:54:14 +03:00
VladimirMangos
28a8e0c9cf [7407] Implement per-client localization support for battleground broadcast messages. 2009-03-08 08:10:54 +03:00
VladimirMangos
27a2d88796 [7406] Remove string version of BattleGround::SendMessageToAll. Use only string_id versions always. 2009-03-08 05:48:05 +03:00
VladimirMangos
e2e1a9f7d4 [7405] Show loaded 100% for case some player/pet/creature level data skipped as unused.
This cases have detail log output, but if detail mode disabled it look like strange not 100% load without reason.
2009-03-08 04:02:22 +03:00
Triply
8a9942619b [7404] Fixed cheating in rated arena matches by alt+f4.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-08 01:48:41 +01:00
balrok
54f2dbefa0 [7403] much more unneeded includes removed
now i extended my script:
NAME="Chat"; ack -c $NAME | ack ":1$" | sed 's/:1//' | xargs /usr/bin/ack-grep -l "include \""$NAME".h\"" | xargs /bin/sed -i '/include "'$NAME'.h"/d'

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-08 02:22:17 +03:00
Triply
0de4c02fd2 [7402] Fixed graveyards in WSG, prevent from cheating. Patch provided by Balrok. Thx.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-07 21:34:01 +01:00
Triply
898fef99d2 [7401] Fixed bgqueue invitation to already started battlegrounds - not tested.
Finally fixed sql update in [7399]. Thx to Lake292.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-07 17:53:44 +01:00
Triply
f64341068b [7400] fixed sql change from my previous commit.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-07 11:33:16 +01:00
Triply
1ee2320484 [7399] Rewrited BattleGround starting code - moved it to battleground class.
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].
Patch is tested, everything worked for me. You must execute attached sql file!

Signed-off-by: Triply <triply@getmangos.com>
2009-03-07 11:23:23 +01:00
VladimirMangos
67f307d5f7 [7398] Now really really fix error message :/ 2009-03-07 10:50:54 +03:00
GriffonHeart
13ca8d7064 [7397] Implement above ground zone 4395 detection.
By hack code until proper multilevel zone data store not implemented.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-07 09:15:16 +03:00
VladimirMangos
1727657ab5 [7396] Fixed crash at group disband after some player invite decline and offline.
Correctly cleanup invites list at decline.
2009-03-07 07:50:25 +03:00
multiplexer
2159dee379 [7395] Default MaxPlayerLevel should be 80 2009-03-07 05:04:55 +03:00
VladimirMangos
42b5130931 [7394] Check loot_template.maxcount for max allowed value (255) and make better report for this case.
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.
2009-03-07 03:54:31 +03:00
VladimirMangos
be74937146 [7393] Implement access to client side holiday ids.
* 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.
2009-03-07 03:00:17 +03:00
ApoC
4523a47155 [7392] Fixed SQL query for storing pending arena points for offline players for PGSQL.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-03-06 23:39:38 +01:00
VladimirMangos
5a8f379a70 [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);
2009-03-06 22:28:34 +03:00
NoFantasy
83affb51fd [7390] Implement heroic instance quest requirement in areatrigger_teleport.
Also more fixes for prev. sql update.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-06 18:23:38 +03:00
VladimirMangos
bda5dffcdb [7389] Fixed sql update order protection data after recent commit. 2009-03-06 18:10:02 +03:00
Triply
17100c67a8 [7388] Fixed battleground premature warning message. SQL files are attached, you must execute them!
Fix for message's color will be soon.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-06 13:24:55 +01:00
VladimirMangos
a07718fe29 [7387] Check maxcount >= min count for item (not reference) record in loot templates DB tables.. 2009-03-06 04:58:26 +03:00
VladimirMangos
0e7d940b90 [7386] Remove from mangos.sql content of instance_template table.
From this point expected that this table filled from another sources.
2009-03-06 04:30:32 +03:00
VladimirMangos
649653956a [7385] Fixed mail price calculation broken recently by me. 2009-03-06 04:26:59 +03:00
Triply
bfa785fdb8 [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.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-05 22:25:39 +01:00
Triply
5179230901 [7383] Changed some comments in config file, changed default MaxRatingDifference from 100 to 150 in default config.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-05 16:48:00 +01:00
NoFantasy
167b192ff2 [7382] Add 2 unknown field to creature_template sent in SMSG_CREATURE_QUERY_RESPONSE to client
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-05 16:17:43 +03:00
VladimirMangos
10f2648455 [7381] Sort cases in AchievementMgr::UpdateAchievementCriteria and mark some case as not used. 2009-03-05 15:48:12 +03:00
VladimirMangos
8928df7f07 [7380] Implement highest value achievements support. Implement some auction achievements
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_AUCTION_BID:
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_AUCTION_SOLD: (FIXME: only for online player)
2009-03-05 13:49:37 +03:00
VladimirMangos
bff0cb8c75 [7379] Implement some money related achievement criteria.
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TALENTS:
* ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD:
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TRAVELLING:
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_AT_BARBER:
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_MAIL:
* ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY:
2009-03-05 02:49:40 +03:00
VladimirMangos
2d6b8bf068 [7378] Fixed check for ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL for non-class/race specific case. 2009-03-04 04:13:11 +03:00
GriffonHeart
e409b32c71 [7377] Dummy effects for portal spells used in DK starting area.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-04 02:40:28 +03:00
VladimirMangos
fee3278e57 [7376] Allow store in spell_area.aura_spell negative values for "not has aura" requirement.
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.
2009-03-04 01:27:56 +03:00
pasdVn
0d96837d48 [7375] Typos in dynamic object registering and deleting for owner.
This let have more then one persistent aura in same time.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-03 23:53:28 +03:00
Arthorius
3ab8264189 [7374] Fixed search free slot in Player::CanStoreItems in case specialized bag.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-03 07:40:47 +03:00
VladimirMangos
02dd431846 [7373] Implement expansion check at character loading (for homebind, transport and plain coordinates).
Also move fall damage calucaltion in new function.
2009-03-03 00:47:30 +03:00
VladimirMangos
9983286280 [7372] Cleanup BattleGround::GetClosestGraveYard related code. 2009-03-02 15:56:37 +03:00
Triply
f454ddf6d0 [7371] Correctly select closest graveyard in Player::RepoopAtGraveyard(). Patch provided by balrok Thx.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-02 10:38:08 +01:00