Commit graph

1165 commits

Author SHA1 Message Date
tomrus88
1306be5c95 Fixed arena related client crash 2009-02-12 18:04:03 +03:00
freghar
f04ec2b98b [7272] Trailing whitespace cleaning
The "please use git diff --check before commit" thing.

Signed-off-by: freghar <compmancz@gmail.com>
2009-02-12 15:14:40 +01:00
rilex
d952b7ebcf [7271] Implement mangosd stop and pause if it work as Windows service.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-12 15:13:17 +03:00
VladimirMangos
671a942d14 [7270] Apply mangos code style. 2009-02-12 15:05:14 +03:00
Triply
7c67848b48 Fixed arena matches for same faction (players were all in one group - and they couldn't attack each other) 2009-02-12 10:48:07 +01:00
balrok
b75157946c [7269] Use enum type for battleground queue type ids, and related cleanups.
* renamed a variable to make the content of it more clear: type->arenaslot
* renamed BattleGroundQueueTypeId-variables to bgQueueTypeId
  just to make it easier reading the code (cause there existed
  3 different names for this..)
* renamed GetBattleGroundQueueId to GetBattleGroundQueueTypeId
  again this is just for better understanding
* Renamed [GS]etQueueType and m_Queue_type
* Renamed to [GS]etQueueId and m_QueueId

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-12 09:00:28 +03:00
NoFantasy
109813be29 [7268] Fix show 0-level quests in gossip quest list.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-12 06:00:10 +03:00
VladimirMangos
50b6bfd7f1 [7267] Drop auctionhouse.location. 2009-02-12 04:54:15 +03:00
VladimirMangos
2d242c86a8 [7266] Use DBC data for auction cut/deposit percents and location (auiction house id in fact).
Note: `auctionhouse`.`location` field not used after this. But not removed to simplify backporting to mangos-0.12.
2009-02-12 04:52:02 +03:00
VladimirMangos
4fd34bf101 More auction related code refactoring, 2009-02-12 04:50:30 +03:00
VladimirMangos
7c3ab4b453 Move auction related code from ObjectMgr to AuctionHouseMgr. 2009-02-12 04:50:29 +03:00
VladimirMangos
ef1c243187 Rename AuctionHouse.cpp -> AuctionHouseHandler.cpp AuctionHouseObject.h ->AuctionHouseMgr.h 2009-02-12 04:50:28 +03:00
DiSlord
bb7d68347f [7265] Move feral bonus get to struct ItemPrototype
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-11 02:04:20 +03:00
DiSlord
4792d20b4e [7264] Use AP fields as signed integer
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-11 00:09:31 +03:00
DiSlord
13c5d3a33c Fix apply SPELLMOD_MULTIPLE_VALUE for SPELL_AURA_MANA_SHIELD drain
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-10 23:58:32 +03:00
DiSlord
14be347015 [7263] Fixed AP calculation in some cases
Fixed use AP dynamic mods (bonuses from stats)
Apply ITEM_MOD_ATTACK_POWER for ranged AP
Implement feral AP from weapon dps for druids

Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-10 21:24:45 +03:00
VladimirMangos
edfa757020 [7262] Check security level of target for .die command for case when this command have lesser security level from default setting.
Original patch provided by NewAge.
2009-02-10 12:12:13 +03:00
VladimirMangos
f58d1a179a [7261] Better check DB corrdinates for bg entry at player loading. 2009-02-10 10:14:31 +03:00
VladimirMangos
09bf9260cb [7260] Fixed access to uninitilized fields in FleeingMovementGenerator and Creature::IsOutOfThreatArea. 2009-02-10 06:22:52 +03:00
VladimirMangos
63b8d1f537 [7259] Prevent memory lost at pet spell reset. 2009-02-10 06:15:05 +03:00
VladimirMangos
fb6fe325bf [7258] Fixed access to field of possible deleted periodic aura. 2009-02-10 06:14:52 +03:00
VladimirMangos
6bacf2239f [7257] Fixed unexpected errors in log and non-freed memory at battleground system shutdown. 2009-02-10 06:13:18 +03:00
NoFantasy
0e37851a11 [7256] Fixed (lot better at least) quest XP calculation from money rewarded value at max level.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-10 03:40:44 +03:00
GriffonHeart
75121a5823 [7255] Allows saving characters in Battle Grounds.
* Now player can join to BG after logout during 5 minutes, if BG in progress.
* All players after server crash or restart should appear at the battlemaster

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-09 16:15:29 +03:00
VladimirMangos
8af53064eb [7254] Cleanups and batter checking in homebind/bgEntryPoint code.
* Load homebind data early in Player::LoadFromDB and use instead initital race points
  in cases need some safe point if current coordinate broken by some reason.
* Store BG entry point in to WorldLocation and simplify calls.
* Set bg entry point at GM teleports to battleground for correct
  auto-recall position at battleground end.
2009-02-09 15:50:40 +03:00
VladimirMangos
e97c7ad9c5 [7253] Check battleground status in GetSpellAllowedInLocationError for some spells for aura remove and spell casting cases. 2009-02-09 15:42:22 +03:00
VladimirMangos
100429f29c [7252] Move all world global broadcast string (all arena/bg related) to mangos_string.
PLEASE, NOT USE string world broadcasts in real code. This function _only_ for debug purposes.

Really allow with .debug bg start bg with 1 player.
Added helps for some existed .debug commands.
2009-02-08 13:06:25 +03:00
balrok
22cb305002 allow .goname and .namego in more battleground cases
Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-02-08 11:29:35 +03:00
balrok
804166739d typo IsCanIneract -> IsCanInteract 2009-02-08 11:27:33 +03:00
balrok
78a6d084bc add .debug bg to allow starting a battleground with just one player
it's implemented like .debug arena - so you toggle debug bg
on or off
2009-02-08 11:27:31 +03:00
VladimirMangos
3c38b4d3e6 [7251] Replace wrong spell 52375 by 47541 in spell chain data.
Also remove new and old spell from character's spellbook.
It will added anyway at login as dependent (initial known spell)
2009-02-08 11:18:13 +03:00
VladimirMangos
5a4358dda9 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
* Use in functions and fields BattlegroundTypeId type instead uint32
* Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
  Many bg have same raw values for type id and queue id but some can be affected by this bug:
  BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
* Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
* Remobe redundent for header itself includes for BG headers.
* Use Auction location enum instead raw valus.
2009-02-08 11:05:11 +03:00
jorooo
e355084376 [7249] Remove outdated data from spell_proc_event.
Signed-off-by: DiSlord <dislord@nomail.com>
2009-02-08 04:54:38 +03:00
zhenya
c5f20ff9a9 [7248] Check battlemaster_entry data at loading. Code cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-08 04:22:46 +03:00
VladimirMangos
6b381f2d0e [7247] Fixed memory and data lost at dalayed expire/clear of movement generators. 2009-02-07 23:38:31 +03:00
VladimirMangos
30c1b87669 [7246] Add data from 7242_01_mangos_spell_bonus_data.sql to mangos.sql as expected.
Also fix outdated comment
2009-02-07 21:23:23 +03:00
ApoC
3529d084d9 [7245] Typo fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 15:35:15 +01:00
pasdVn
7c32de2f8d [7244] Fixed affecting of positive spells critical chances by scripted critical chances.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 15:22:19 +01:00
aerione_alt
d767de4b8d [7243] Fixed spell 47883.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 15:15:05 +01:00
Reve
19de5300eb [7242] Fixed spell 30482 and ranks spell bonus for triggered spell.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 15:00:06 +01:00
ApoC
7d3eac7f5a [7241] Breath time extended to 3.0.x values.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 14:55:01 +01:00
ApoC
c9eacd7a23 [7240] Fix logfile spam from AchievementMgr.
Log AchievementMgr::SendAchievementEarned only in debug.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 14:50:01 +01:00
VladimirMangos
5e2553ff7e [7239] Support multiply items loot and not normal loot items in Player::AutoStoreLoot.
Use this function in more cases and simplify and fix some related code.
2009-02-07 10:34:11 +03:00
VladimirMangos
7d63f4ce02 Fixes and cleanups in loot code.
* Move not-normal loot tables generation in single place (Loot::FillLoot function) for group and non group case.
* Simplify LootView code.
2009-02-07 10:34:02 +03:00
ApoC
fb432a0f36 [7238] Fixed typos in my prev. commit.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 03:41:15 +01:00
ApoC
6e65999d86 [7237] Fixed crash when MotionMaster's Clean or ExpireMovement called from MovementGenerator update.
Implemented delayed movement generators removed in case cleanup is triggered
from movement generator update. For this purpose is in runtime allocated vector
for temporary store of all deleted movement generators. After delayed delete
this vector is deleted.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-07 03:29:06 +01:00
VladimirMangos
7dffae89da [7236] Prevent lost spells dependent from skills learned before non-dependent spell loading from DB.
For example spell 2764 will correctly show in spellbook after re-login.
2009-02-07 02:47:57 +03:00
VladimirMangos
74ec17a273 [7235] New command: .reset achievements 2009-02-07 00:00:23 +03:00
VladimirMangos
cb0ebde926 [7234] Now correct patch version: Use spell_loot_table for item creating in case SPELL_EFFECT_CREATE_ITEM_2 (157) and itemType==0 2009-02-06 07:57:45 +03:00
VladimirMangos
e21941d558 [7233] Fixed phase selection for gameobject/creature spawn for GM-mode without phase auras. 2009-02-06 07:57:44 +03:00