Commit Graph

184 Commits

Author SHA1 Message Date
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
QAston
13758fcae1 *Fix per-caster aura state based on [8218] (Author: VladimirMangos;almost nothing left from original patch):
*Fixes all per caster aurastates instead of only conflagrate
*Adds a holder for aura state auras for speedup search
*Save some memory space by removing m_auraStateMask from aura class.

--HG--
branch : trunk
2009-07-30 17:16:56 +02:00
QAston
98a80ff518 *Backout some mangos stuff which is solved using better way in trinity.
--HG--
branch : trunk
2009-07-30 11:59:37 +02:00
QAston
bc4e279cbd Backed out changeset 7fab27a57ecc - mangos [8218]
--HG--
branch : trunk
2009-07-30 11:47:47 +02:00
megamage
7bd47f8827 [8225] Some fixes from 320 branch. Author: tomrus88
--HG--
branch : trunk
2009-07-30 10:26:15 +08:00
megamage
9bd41d0255 [8218] Final part of talent 17962 and ranks fixes. Author: VladimirMangos
* Correctly show per-caster aura state for cleitns.

--HG--
branch : trunk
2009-07-30 10:15:45 +08:00
Kudlaty
607dfaf8c9 Merge [SD2]
r1088 Add grid searcher class PlayerAtMinimumRangeAway and create ScriptedAI function GetPlayerAtMinimumRange that return player in grid with at least the defined range away from m_creature.
r1089 Remove no longer needed grid search code and use function instead. - skip
r1090 Rename and clarify function variables - skip
r1091 Add two new grid search functions to return list of creature and gameobject. Remove unused class.
r1092 Remove more grid search code in scripts and use functions instead.
r1093 Remove obsolete grid search class and rename new to a more consistent name.
r1094 Speed up functions GetCreature/GameObjectListWithEntryInGrid a bit

--HG--
branch : trunk
2009-07-24 05:27:49 +02:00
QAston
2ff21d4cef *Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.

--HG--
branch : trunk
2009-07-22 17:10:30 +02:00
megamage
cb48363788 [8187] Remove %s prefix in BuildMonsterChat().
For cases where name of sender is expected to show in client chat (mainly emote texts), add %s to the text where name should display.

    Signed-off-by: NoFantasy <nofantasy@nf.no>

--HG--
branch : trunk
2009-07-20 11:53:26 +08:00
megamage
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
megamage
111dac5f94 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
    * Create Gameobject version to make GO with owner more safe for remove

--HG--
branch : trunk
2009-07-01 18:23:36 -05:00
megamage
e405e6f9ed *Fix a crash caused by mailed item deconstructor.
--HG--
branch : trunk
2009-06-17 09:57:22 -05:00
megamage
d906ea05d6 *Add a crashlog before an assert.
--HG--
branch : trunk
2009-06-16 17:58:44 -05:00
megamage
3cf2be6042 [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
2009-06-16 11:19:59 -05:00
megamage
572a9191d9 *Some creature display id update. By VladimirMangos and GriffonHeart
--HG--
branch : trunk
2009-06-15 18:02:12 -05:00
megamage
85a50c7ce2 [8007] Do not create empty maps while sending packets. Author: Ambal
--HG--
branch : trunk
2009-06-14 10:06:01 -05:00
megamage
67a356767d [7995] Check display id correctness for creature and gameobjects. Author: VladimirMangos
--HG--
branch : trunk
2009-06-13 09:40:44 -05:00
megamage
ee9c12b480 *Some fix of vehicles. Thanks to Seizerkiller.
--HG--
branch : trunk
2009-06-13 09:18:54 -05:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage
3e2fd1a380 Backed out changeset: d111c6daf588
--HG--
branch : trunk
2009-06-05 17:44:27 -05:00
megamage
47a1477213 *Revert part of Mangos [7911] because it may causes client crash. Thanks to onkelz28.
--HG--
branch : trunk
2009-06-02 17:35:00 -05:00
megamage
11456447da [7929] Some fixes and optimizations for work with packet guids. Author: VladimirMangos
* Allocate only minimal required buffer size for object packet guid cache, avoid it realocation.
    * At adding aboyher buffer content copy only until wpos (really writed to buffer data)
    * In appendPackGUID check buffer size before data write.

--HG--
branch : trunk
2009-06-01 12:15:43 -05:00
megamage
76e4dfe8dd *Store creatureData and goData for creatures and gos.
--HG--
branch : trunk
2009-05-31 21:04:04 -05:00
megamage
f92e8315cf [7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
      I64FMTD renamed to UI64FMTD for more clear name.
    * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
      Please always use UI64LIT(0x00001) instead less portable 0x00001LL

--HG--
branch : trunk
2009-05-31 16:15:12 -05:00
megamage
5ed5513ca8 Mangos [7911]. Author: tomrus88
Very big patch. May cause bugs.

--HG--
branch : trunk
2009-05-31 15:56:51 -05:00
megamage
da871e2fc0 *Move addcre/go functions from opvp to objmgr.
*Do not save respawn time for internally added cre/go.

--HG--
branch : trunk
2009-05-31 14:26:57 -05:00
megamage
8d1f4f9ea0 *Provide another way to implement dynamic spawns. Now a creature will call its zonescript before spawn to determine the spawned entry. This can be used to implement zones such as wintergrasp with less data requirement (only need to know the entry of counterpart creatures, not require spawn points)
*Use zonescript as basic class of opvp script and dugeon script (can also be used for bg)
*Store zonescript in worldobject.
*Add door for sapphiron.

--HG--
branch : trunk
2009-05-30 22:15:05 -05:00
megamage
89f4c1c444 *Add function FindNearestCreature and FindNearestGameObject to replace old FindCreature and FindGameObject
--HG--
branch : trunk
2009-05-29 16:49:28 -05:00
megamage
106766e4ac *Add an assert to find a bug.
--HG--
branch : trunk
2009-05-29 12:08:06 -05:00
megamage
4a7a63e438 *Add an errorlog in HasInArc function to find a bug.
--HG--
branch : trunk
2009-05-28 15:49:23 -05:00
megamage
ba934b35d6 *Try to fix a freeze bug. (atan2(0,0) returns invalid value)
--HG--
branch : trunk
2009-05-27 13:22:21 -05:00
megamage
cb72853dc6 *Cleanup message deliver functions. Remove unused parameters.
--HG--
branch : trunk
2009-05-27 09:09:22 -05:00
megamage
d971d0121f *Do not consider possessed creatures as pet. Also fix the bug that possessed creature does not display spells.
--HG--
branch : trunk
2009-05-25 22:52:08 -05:00
megamage
452bda72a1 *When alliance and horde are in same group, also display pets as friendly.
--HG--
branch : trunk
2009-05-24 12:56:09 -05:00
megamage
a4c88418ea *Fix the bug that warlock pet is not shown in stat window.
--HG--
branch : trunk
2009-05-24 12:28:26 -05:00
megamage
5ca07b38d3 *Fix a bug that cause quest GO cannot be open.
--HG--
branch : trunk
2009-05-23 10:08:35 -05:00
megamage
4ed847a6e3 *Implement spell effect wmo damage.
--HG--
branch : trunk
2009-05-21 10:01:03 -05:00
megamage
d99e66d931 [7836] Fixes for distance range checks. Author: VladimirMangos
* ignore 0.0f min range limit (this correct case when 2 object overlapped)

    Also use int32 for temporary store GetSessionDbLocaleIndex result.

--HG--
branch : trunk
2009-05-17 10:09:06 -05:00
megamage
047cc95388 *Add some distance check functions. By VladimirMangos.
--HG--
branch : trunk
2009-05-14 16:50:47 -05:00
megamage
40a8e6d3ab *Rename some script functions (no real change).
--HG--
branch : trunk
2009-05-10 14:29:28 -05:00
megamage
e35d07ad81 *Update Sapphiron script.
--HG--
branch : trunk
2009-05-09 10:50:41 -05:00
megamage
80bec6788c *Try to fix some bugs about pet spells and talents.
--HG--
branch : trunk
2009-05-08 17:15:19 -05:00
megamage
fa1dcd16cf *Update summon system.
--HG--
branch : trunk
2009-05-06 13:34:11 -05:00
megamage
e69d2cbed9 [7776] Completed implementation of CMSG_SPELLCLICK Author: arrai
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
    npc_spellclick_spells, otherwise you won't be able to use them

--HG--
branch : trunk
2009-05-05 16:56:15 -05:00
megamage
1cfc04f1f5 [7745] Fixed gcc warnings. Author: AlexDereka
--HG--
branch : trunk
2009-05-03 22:21:46 -05:00
megamage
206556b111 *Fix broken creature trigger spell visual effect.
--HG--
branch : trunk
2009-05-03 11:06:48 -05:00
megamage
122d944945 *Update summon system.
*Fix the bug that shaman cannot summon fire elemental.
*Fix the bug that totem meters cannot be displayed.

--HG--
branch : trunk
2009-05-02 19:24:22 -05:00
megamage
182a04f5ea *Do not update object visibility immediately when object is added to map.
--HG--
branch : trunk
2009-05-01 11:26:19 -05:00
megamage
207c3f7aff *Fix a bug that player summoned creature does not count player as summoner.
--HG--
branch : trunk
2009-04-29 00:12:28 -05:00
megamage
5ac67c27f7 [7715] Provided way for scripts set alternative gameobject state for client show. Author: VladimirMangos
Also use enum for gsmeobject states.

--HG--
branch : trunk
2009-04-27 18:36:10 -05:00