Commit graph

1196 commits

Author SHA1 Message Date
aerione_alt
ae1a404a04 [7340] Prevent standup at save in result unexpected packet send to client.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-26 04:44:13 +03:00
VladimirMangos
b4dbeb3bc8 [7339] Attempt lock spawn grid only for active non-pet creatures. 2009-02-26 02:45:22 +03:00
ApoC
f35ffca03e [7338] Little cleanup in battleground queues code.
* Moved counts and maxs out of enums.
* Added some linebreaks to better code reading.
* Little bit tuned up BattleGroundQueue::RemovePlayer.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-25 23:34:49 +01:00
ApoC
1fcaf35e29 [7337] Make some methods const.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-25 22:33:59 +01:00
Triply
8f995ce904 [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.

Signed-off-by: Triply <triply@getmangos.com>
2009-02-25 19:21:31 +01:00
VladimirMangos
872d791ca6 [7335] Implement active objects support.
Active objects triggrering grid loading and updating around self like players.
It can be used for event long run movements or escoring quest travels.
Also can be used for proper implementation far vision spells.
Currently only creatures can be activated by function call (from script) cr->SetActiveObjectState(true);
Please avoid lot amount active objects in same time use. Existance active objects support isn't meaning
that each rabbit must be active creature.

Also added independent grid unloading locks for explicit unloading lock,
lock for used by instance copied grids, lock counter for actiove object spawn grids locks.
Last case required for prevent double spawn active creature walk far away from spawn point.
2009-02-25 13:44:49 +03:00
VladimirMangos
dd06340d6c [7334] Restore movement generators work after recent commits. 2009-02-25 13:24:23 +03:00
VladimirMangos
1349d36270 [7333] Refactoring DestinationHolder/Traveler/Unit::SendMonsterMoveWithSpeed code.
* Move common code in appropriate functions.
* Correct select speed and 2D/3D distance for creature/player walk/fly
2009-02-25 07:03:45 +03:00
VladimirMangos
3c87af93e6 Send not finished moves for creatures at mass visibility update. 2009-02-25 06:53:54 +03:00
VladimirMangos
e510fd247b Fixed bug with not send not finished move for recently visible creature with waypoint movement generator. 2009-02-25 06:44:18 +03:00
VladimirMangos
fa26c1f8d7 [7332] Allow provided target for .distance command using player name or shift-link with guid. 2009-02-25 06:43:09 +03:00
FrenchW
654fa0bb1d [7331] Normalization and corrections in mangos_commands.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-24 03:05:23 +03:00
VladimirMangos
9b3daf3933 [7330] Code warnings and style cleanups. Some bugs fixes.
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.
2009-02-24 01:54:53 +03:00
wilibald09
373af9905d [7329] Fixed CastBarCaption localization data loading from DB.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-23 07:40:38 +03:00
VladimirMangos
3441c28998 [7328] Implement new way of work for warlock player summoning spell 698. Required correct DB data. 2009-02-23 01:27:52 +03:00
charlie2025
1185188a7e [7327] Restore work of meeting stones, and make it work in more correct way. Required correct DB data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-23 01:22:30 +03:00
balrok
8c701f6287 [7326] Not allow have ammo_pouch and a quiver equipped in same time.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 06:35:35 +03:00
VladimirMangos
218571a817 [7325] Always have flag UNIT_FLAG2_REGENERATE_POWER set for loaded character.
Original patch provided by nos4r2zod.
2009-02-22 06:19:37 +03:00
Sephiroth1983
2046aee715 [7324] Spells deleted from characters in 3.0.2+
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 05:48:55 +03:00
aerione_alt
a3bb9cdb48 [7323] Character Customize should not force rename.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 05:39:51 +03:00
GriffonHeart
e133c9f0d7 [7322] Allow stacking for spell 52950 and 52707
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 04:44:04 +03:00
VladimirMangos
ab7b358d44 [7321] Remove frozen aura state at aura remove only if not other frozen auras. 2009-02-22 00:00:25 +03:00
VladimirMangos
601f305521 [7320] Avoid apply harcoded (unexpectadly) percent value 2 times to weapon damage part of special weapon ability. 2009-02-21 22:09:18 +03:00
ApoC
3910fc4898 [7319] Fixed compile on Unix systems.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:54:06 +01:00
Tequila
9f4154a6f9 [7318] Fixed damage bonus for spell 1329 and ranks when target is poisoned.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:26:16 +01:00
Tassader2
011bd0c1de [7317] Fixed units not considered frozen when stunned from frost auras.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:22:50 +01:00
Gommes
487a3d3dfc [7316] Fixed spell 51556 and ranks DummyAura procing.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:14:19 +01:00
Lightguard
628d97f588 [7315] Fixed bonus damage for Seal of Command.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-02-21 11:07:19 +01:00
Zerg2000
03fd67aaf5 [7314] Not set GR_RIGHT_WITHDRAW_GOLD_LOCK flag for guild masters, remove in DB.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-21 10:08:01 +03:00
zhenya
8dbf8cda71 [7313] Optimized checks of presence in std::set
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-21 08:52:33 +03:00
VladimirMangos
7c2e850283 [7312] Use localized DB-based achievement message instead hardcoded string. 2009-02-21 07:51:20 +03:00
VladimirMangos
34a9f0302e [7311] Divide MessageChatLocaleCacheDo to specialized helper classes
1) LocalizedPacketDo (allocate and cache packets for locale indexes)
2) MonsterChatBuilder (prepare monster chat message packet for specific locale index)
2009-02-21 03:18:39 +03:00
VladimirMangos
1ccafb2fc9 [7310] Fixed name localization in whisper message. 2009-02-20 23:54:12 +03:00
VladimirMangos
fb05143311 [7309] Allow creatures has been visible in 2 or more phases as expected for some creature. 2009-02-20 19:56:34 +03:00
NoFantasy
2399ee22cf [7308] Send source items (reagents for quest casts/crafting) to client.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Strange thing happens, years ago it has been added as internal server data field ;)
2009-02-20 19:22:43 +03:00
VladimirMangos
1ff51c5326 [7307] Add primary key for table arena_team_member. 2009-02-20 00:31:36 +03:00
NoFantasy
a716d51c82 [7306] Updated POI icons defines.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-19 21:15:10 +03:00
VladimirMangos
49255a062b [7305] Allow use datalong2 not only for set target for DB script cast but also caster (1 bit set target (target/source), 2 bit set caster (source/target)) 2009-02-19 19:58:44 +03:00
VladimirMangos
a47330e3e4 Update spell auras list for 3.0.9 2009-02-19 19:11:18 +03:00
VladimirMangos
b419c0ed03 [7304] Move inner template class from parent class definition for better compatibility with some GCC versions. 2009-02-19 15:45:27 +03:00
VladimirMangos
a5f51f70d0 [7303] Fixed sql changes part of pool patch. 2009-02-19 13:14:44 +03:00
miranda.conrado
4b46374577 [7302] Fixed build at Unix/Linux.
Signed-off-by: miranda.conrado <miranda.conrado@getmangos.com>

Possible fix, not checked (not have access currently to Unix host), but expected as working.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-19 12:53:41 +03:00
VladimirMangos
bf5e1908d6 Drop Say/Yell/etc string versions.
1) DB based string_id versions must be used.
2) for debug purposes raw WorldObject::MonsterSay/etc versions can be used
2009-02-19 11:59:01 +03:00
arrai
1206026b44 [7301] Partially restored linux build 2009-02-18 23:34:54 +01:00
balrok
26a0023d72 [7300] Fixed recent crashes in battleground code at player leave.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-19 00:05:06 +03:00
Neo2003
125bf4bfd6 [7299] Implemented circular loop detection for pools in pools
As a result, the last relation that makes the loop is automatically removed.
An error message is displayed and core go on loading remaining records.

Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
2009-02-18 20:20:12 +01:00
Neo2003
5da8bdf16e Added support for pools in pools
Pools inside another pool cannot have a number of spawned objects <> 1 (maxlimit value)

Note: pools in a pool in a pool in a pool... is possible and working,
but circulare inclusion is not detected and will cause a core infinit loop

Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
2009-02-18 20:19:59 +01:00
Neo2003
7d8dc0eeef Implemented gameobjects and creatures grouping (pools of them)
Groups (called pools) can be also member of any game event

Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
Signed-off-by: freghar <compmancz@gmail.com>
2009-02-18 20:19:57 +01:00
VladimirMangos
1932ce1ae7 [7298] Switch to support client 3.0.9 (3551). 2009-02-18 21:27:05 +03:00
VladimirMangos
595d1477da [7297] Fixed profession spells sorting in trainer spell list at client. 2009-02-18 21:03:32 +03:00