Commit graph

811 commits

Author SHA1 Message Date
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
Triply
a50606d225 [7370] Fixed crash in CheckSkirmishForSameFaction() function, when we erased iterator which shouldn't be erased
Fixed crash in BattleGroundQueue::Update() by changing BGFreeSlotQueueType from deque to list.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-02 09:50:31 +01:00
NoFantasy
94de4437f8 [7369] Remove ReqSourceRef in quest_template.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-02 03:31:18 +03:00
Lightguard
2f02dc7642 [7368] Implement unequip unexpected offhand weapons at talent reset (mostly for warror talent case).
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Implemented OffhandCheckAtTalentsReset option for unequip at zone change (default)
and at talent reset itself (can be enabled).
2009-03-02 02:46:59 +03:00
VladimirMangos
98750bd95b [7367] Restore one more time broken auctions work. Sorry :( 2009-03-01 19:02:52 +03:00
Triply
aa5f021d28 [7366] Enabled skirmish arena matches for same faction.
Patch is tested and should not add crashes.

Signed-off-by: Triply <triply@getmangos.com>
2009-03-01 12:20:11 +01:00
VladimirMangos
de51363151 [7365] Implement potion in combat delay proper work.
Original patch provided by miranda.conrado.
2009-03-01 11:33:08 +03:00
VladimirMangos
2b10d8fd71 [7364] Really implenent server-side anti-cheating cooldown check for spells with SPELL_ATTR_DISABLED_WHILE_ACTIVE.
Move apply cooldown for like spells to aura apply (GO registering for owner in GO summon spell case)
Store "infinity" cooldown for like spells, ignore it at save and reapply it at aura loading.

Note: one problem still exist for like spells: at loading/far teleport spell icon lost diabled state at client.
      Need sedn some unknown data in SendInitialPacketsBeforeAddToMap or SendInitialPacketsAfterAddToMap for restore it state.
2009-03-01 10:21:47 +03:00
VladimirMangos
ed6123c804 [7363] Propertly set cooldown at server side for category spells at cooldown event send to client.
Also support item dependent cooldown set propetly at cooldown event send to client.
Last will used in follow potion cooldown delay in combat patch.
2009-03-01 10:14:45 +03:00
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
VladimirMangos
cea44af521 [7361] 2 lost cases from prev. commit. 2009-03-01 01:16:36 +03:00