Commit graph

118 commits

Author SHA1 Message Date
VladimirMangos
6a2e8064f1 [9208] Big cleanup in UNIT_STAT_* use
* Re-number enums by function groups and use where possible new defined masks in code instead raw enum |-lists.
* Avoid use movement generator generic state markers like UNIT_STAT_CONFUSED for mark movement stoped.
  Add special shadow UNIT_STAT_CONFUSED_MOVE/etc states for like use.
  UNIT_STAT_CONFUSED in like case will be safe expect use for normal checks confused state presence
  And UNIT_STAT_CONFUSED_MOVE for check real move in this state
2010-01-18 11:59:10 +03:00
NoFantasy
a461652636 [9180] Add function to send custom animation for GameObject
Replace in code where packet used explicit.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:01:41 +01:00
VladimirMangos
e15f548bed Merge branch 'master' into 330 2010-01-08 16:03:27 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
NoFantasy
7e1d55c38e [9113] Add helper functions to set/getSummonLocation
This should help the poor homeless that does not have a database defined home at evade (such as "wild summon" without owner).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-05 19:56:22 +01:00
tomrus88
eba214eb8a Merge remote branch 'origin/master' into 330 2009-12-17 16:13:37 +03:00
balrok
7c4acf31e2 [9012] fix crash when achievement is completed and player isn't in world
also don't divide money loot for players who are not inside the
same map..
and player shouldn't be able to reclaim his corpse if it isn't in same map

and some other related cleanups
2009-12-17 14:02:48 +01:00
tomrus88
c745c5072f Merge remote branch 'origin/master' into 330 2009-12-16 02:45:05 +03:00
NoFantasy
f47492ad24 [8977] Not send npcflag stablemaster to non-hunter player
Also check for player class vs stablemaster flag in GetNPCIfCanInteractWith()

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-12 18:38:27 +01:00
tomrus88
90ee507cf7 Merge remote branch 'origin/master' into 330 2009-11-30 01:29:59 +03:00
NoFantasy
980a0d6a64 [8880] Some adjustments/additions for updateflag_living and flying creatures
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-27 16:33:55 +01:00
VladimirMangos
670a2dbb4c [8866] Replace [8864] by more correct way fix attack stance problem.
Thanks to TOM_RUS for help in more deep reseach problem source.
2009-11-23 15:10:14 +03:00
balrok
1d362eace4 [8845] fixed some gcc warnings 2009-11-20 12:57:19 +01:00
tomrus88
72b9dc318e Merge remote branch 'origin/master' into 330 2009-11-19 16:22:58 +03:00
VladimirMangos
fe1fae46ee [8830] Restore build at *nix. Make MAKE_PAIR* users includes explicit.
Comment for recently added field also.
2009-11-18 23:57:20 +03:00
tomrus88
3def8fa353 Merge remote branch 'origin/master' into 330 2009-11-10 17:35:09 +03:00
XTZGZoReX
0734adb746 [8789] Rename several singleton macros to use more consistent names.
* objmgr -> sObjectMgr
 * spellmgr -> sSpellMgr
 * WaypointMgr -> sWaypointMgr
 * poolhandler -> sPoolMgr
 * objaccessor -> sObjectAccessor
 * mapmgr -> sMapMgr
 * sInstanceSaveManager -> sInstanceSaveMgr
 * ticketmgr -> sTicketMgr
 * CreatureEAI_Mgr -> sEventAIMgr
 * auctionmgr -> sAuctionMgr
 * achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
XTZGZoReX
611b17a431 [8787] Cleanup in Errors.h. 2009-11-08 11:38:34 +01:00
XTZGZoReX
dc725ad6b8 [8785] Use macro instead of explicit call to singleton Instance().
* For: ObjectAccessor, MapManager.
2009-11-08 03:54:41 +01:00
tomrus88
f2d0f6f868 Merge remote branch 'origin/master' into 330 2009-10-28 04:58:48 +03:00
NoFantasy
7b6f4accd1 [8741] Remove trainer npcflags for player that can not train from npc.
Tracking of class and profession trainer should then work as expected client side, but database still need to apply flag values based on trainer function.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-27 01:26:45 +01:00
tomrus88
3e934e4d02 Merge commit 'origin/master' into 330 2009-10-26 01:07:32 +03:00
VladimirMangos
ce3d0170f6 [8729] Fix crash added in [8725]. Sorry. 2009-10-25 03:25:02 +03:00
tomrus88
57267884a8 Merge commit 'origin/master' into 330 2009-10-24 06:04:13 +04:00
VladimirMangos
e79aa4dee2 [8719] More early detection possible crash sources at object deletion.
* If object still in world at delete
* If object still listed in client update queue

Possible with this crash reports will more informative and let find porblem.
2009-10-24 02:09:35 +04:00
tomrus88
5e15a6553c Merge commit 'origin/master' into 330 2009-10-21 23:49:51 +04:00
VladimirMangos
7ffb8e20ff [8696] Replace pure virtual functions for better error output. 2009-10-21 18:11:10 +04:00
VladimirMangos
dcadfb7cae [8679] Remove 2 now unneeded includes. 2009-10-20 01:12:37 +04:00
VladimirMangos
8bf52f7c63 [8678] Move objects updates store and proccessing for send to client in per map way. 2009-10-19 23:46:58 +04:00
tomrus88
aa161f802b Merge commit 'origin/master' into 330 2009-10-19 15:08:16 +04:00
VladimirMangos
abb77cfdbf [8677] Move most client update data functions to object itself from ObjectAccessor.
Also use virtual function BuildUpdateData (old ObjectAccessor::_buildUpdateObject)
that different for world objects and items.
2009-10-19 15:03:06 +04:00
tomrus88
dd9fd414bb Merge commit 'origin/master' into 330 2009-10-17 02:53:46 +04:00
NoFantasy
4011433918 [8647] Use correct check in _BuildMovementUpdate, if creature can fly.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-15 00:28:01 +02:00
tomrus88
b10c3e2287 Merge commit 'origin/master' into 330 2009-10-14 17:32:52 +04:00
SilverIce
023b13f348 [8627] Avoid not needed too oftent send update data, cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-11 19:31:57 +04:00
balrok
02d45b4b54 [8625] feign_death cleanups
use an extra function for setfeigndeath()
like it's done with setfeared already..
allow to apply feigndeath on creatures too
avoid moving of creatures with feign death applied
and start attacking last victim when feigndeath disappears
2009-10-11 14:22:52 +02:00
tomrus88
c9636623bf Added support for 3.3.0 PTR client. 2009-10-06 13:44:48 +04:00
VladimirMangos
59befa2e0e Merge branch 'master' into 320 2009-10-02 19:09:06 +04:00
VladimirMangos
5440deddea [8582] Correctly use yell range for boss textemote broadcast. 2009-10-02 04:50:23 +04:00
XTZGZoReX
63897d56d7 Move visibility update functions to more appropriate classes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-01 19:01:42 +04:00
tomrus88
258e19a4a3 Merge commit 'origin/master' into 320 2009-09-22 18:14:06 +04:00
Ambal
cfea99ea62 [8524] New cell search algorithm implemented. You can now choose different visibility distances on continents, in BG/Arenas and instances.
Please, update your config files and check new options:

Visibility.Distance.Continents    = 90
Visibility.Distance.Instances     = 120
Visibility.Distance.BGArenas      = 180

Thanks everyone involved in patch tests!

Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-21 23:25:29 +03:00
tomrus88
2d86aa4535 Misc fixes. 2009-09-14 18:11:15 +04:00
Opterman
26a104a05a [8461] Correcting buildUpdateValues for GAMEOBJECT_DYNAMIC flag.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-04 01:18:17 +02:00
VladimirMangos
45dd7140b5 [8422] Implement far sight like spells work for long distance.
* Added basic infrastructure for visibility update in case difference player and current view point.
  Just for note: seletect additional arg way beacuse repeatable search object will slow but store pointer will not safe,
  so use middle case: get view point pointer early as possible at visibility updates.
* Implement dynamic object and creature activisation while it's target of far sight spell effect
* Use this for SPELL_AURA_BIND_SIGHT, SPELL_AURA_FAR_SIGHT and SPELL_EFFECT_ADD_FARSIGHT.
* Note2: some spyglass like spells let look _around_ at long distance, this hard implement in current grid loading system
  Without additional changes and not implemented (you will see empty area without creatures in likes case)

* Also fixed warning spam at CMSG_MOVE_SET_CAN_FLY_ACK receive by use proper packet sructure reading.
2009-08-26 08:30:40 +04:00
tomrus88
a0efd034ca [8225] Some fixes from 320 branch.
(backported from commit 4bdcf42)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-21 05:30:58 +04:00
VladimirMangos
36605805b4 [8218] Final part of talent 17962 and ranks fixes.
* Support correct aura state at server set for different casters effects
* Correctly check this telent (per caster) aura state at cast
* Correctly show per-caster aura state for cleitns.
2009-07-20 11:47:59 +04:00
NoFantasy
212ece4e06 [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>
2009-07-16 17:20:58 +02:00
Ambal
58209ee79a [8182] Store and use Map* pointer in WorldObject instead map ids for speedup
Also some code logic cleanups.
Changes let make more cleanups in base map access and other places,
but this chnages not inlcuded in patch.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-15 02:13:52 +04:00
VladimirMangos
9f41772828 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
* Create Gameobject version to make GO with owner more safe for remove
2009-07-01 11:09:34 +04:00