Commit graph

3761 commits

Author SHA1 Message Date
VladimirMangos
13acbefbbf [9218] Fixed check in CMSG_QUEST_POI_QUERY proccessing for max quest amount.
This fix work quest poi for filled quest list
and fix unexpected spam about unreaded packet content.
2010-01-20 07:43:54 +03:00
laise
627d74f192 [9217] Fixed spell 34471 applying from 34692.
(based on commit 7a9dc4e from insider42/mangos)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-20 07:00:19 +03:00
Lightguard
0088d1300c [9216] Fixed hunter pet XP requirements.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also move calculation to function. And avoid use operator[] for access to per-area base xp table data.
2010-01-20 05:05:23 +03:00
Wowka321
2b891624c6 [9215] Move template function specializations before uses to make gcc happy.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-20 00:53:23 +03:00
NoFantasy
cc5ed7a48b [9214] Add helper function StoreNewItemInInventorySlot
Mainly function for script side store new item, but may also be used to simplify similar task in code.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-19 15:01:42 +01:00
VladimirMangos
64ba6c5714 [9213] Fixed typos in unit states used in waypoint movegen. 2010-01-19 16:15:23 +03:00
VladimirMangos
eaecc467d5 [9212] Implement pet speed synchronization with owner only for follow mode.
* This allow pet use own speed (and all speed affects appiedto pet itself) in combat.
* Apply this speed synhronization to minipets/guardians also.
* Also rename Unit::SetSpeed to SetSpeedRate as more close to real functionality.
2010-01-19 03:56:26 +03:00
Derex
a6a5935406 [9211] Fixed recent build problems at *nix.
Thanks to DasBlub and Lightguard for teating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-19 01:22:41 +03:00
NoFantasy
de4d8c3a04 [9210] Fix visual bug making npc run-in-same-position in client.
Not send MOVEMENTFLAG_FORWARD (even if expected). As result npc will not run in same position when npc becomes visible at client side.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-18 20:38:36 +01:00
VladimirMangos
e1d0c1cdba [9209] Finish synchonization walk mode for pets.
* Re-sync at follow mode switches
* Support sync for creature pets

Also
* Attempt fix build at *nix
* Drop unused unut state mask with typo in name.
2010-01-18 14:35:19 +03:00
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
VladimirMangos
7d6b1b292e [9207] Fixed chase/follow functions calls in movegen templates system.
This commit specially made indeepndent from other changes for show problem
in my prev. commit where 2 new movegens added.

For proper call Initilize/Finilize/Reset/Interrupt/Update functions _important_
set second template arg in MovementGeneratorMedium< T, D >
in _last_ class in class chain. In other case in chase/follow instead TargetedMovementGeneratorMedium
In other cases will called referenced functions from TargetedMovementGeneratorMedium
instead proper subclasses.
2010-01-18 10:33:56 +03:00
VladimirMangos
98adbbc3d3 [9206] Some code cleanups.
* UNIT_STAT_SEARCHING not used
* Remove some commented wrong code
* WaypointMovementGenerator<Creature>::Initialize() not have code
2010-01-18 09:13:50 +03:00
NoFantasy
544d396beb [9205] Move script call GOHello to GameObject::Use
This provide more accurate call in case of delay use from spell effects

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 23:44:33 +01:00
NoFantasy
16c0ff3ef7 [9204] Move remaining handling of GO from SendLoot to GameObject::Use
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 23:06:31 +01:00
tomrus88
f7de2ce1d7 Possible queue bug fix.
Player flags enum update.
2010-01-17 22:09:54 +03:00
NoFantasy
925ea7630e [9203] Use CalculateSimpleValue as delay, used in spell effect 86
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 17:05:54 +01:00
VladimirMangos
f94b7b4452 [9202] In attempt make GCC happy with chase/follow movegens code. 2010-01-17 17:58:28 +03:00
NoFantasy
55b6b0eb26 [9201] Fix typo from [9200] and clean up code in function.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 12:02:45 +01:00
NoFantasy
95f9ec5fb2 [9200] Move handling of most GO's from SendLoot() to GameObject::Use()
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 11:45:14 +01:00
NoFantasy
07a5c698ca [9199] Clarify debug log message in GameObject::Use
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 10:52:01 +01:00
VladimirMangos
8a03785470 [9198] Replace targeted movegen by 2 new: chase/follow movegens.
NOTE: this is mostly just formal adding 2 movegens with very limited cleanups.
Real result from adding 2 new movegens possible after apply more deep cleanups/fixes
in UNIT_STAT_CHASE/UNIT_STAT_FOLLOW set. But this will need more cereful changes
because we have currently sometime strange dependences and places for set for this flags.
Similar cleanups required for other movegen related flags. Infact i have related patches but
need more testing before apply step by step.
2010-01-17 09:37:11 +03:00
VladimirMangos
2e9bf5ad6a [9197] More propertly update walk mode for player pets.
* Use AddMonsterMoveFlag instead SetMonsterMoveFlags for set walk-mode
* Apply walk/run mode to all copntrolled units (except totems).
* Synchronize walk/run mode at pet creating/loading.
2010-01-17 07:51:00 +03:00
VladimirMangos
b0809f63b2 [9196] Prevent corrupt in-game used strings by DB escaping. 2010-01-17 05:54:18 +03:00
NoFantasy
dd27fa0f6e [9195] Update some comments for GO autoCloseTime to reflect changes in 9179
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-17 02:14:33 +01:00
VladimirMangos
ccbf14d4ac [9194] Implement default min player per team at BG same as max players.
This let use now default requirement for not set in `battleground_template` min/max values (or =0)
In other cases just set expected data into template table.
2010-01-17 02:31:42 +03:00
VladimirMangos
0a1dd54b7f [9193] Implement dummy effect for 46797. 2010-01-16 22:55:00 +03:00
VladimirMangos
d59c394370 [9192] Fixed typo in error output for lock id gameobject template data check. 2010-01-16 20:58:19 +03:00
VladimirMangos
c6d378ad70 [9191] Fixed crashes related to recently totem acccess function
* No search if not in world (no totems then)
* Check NULL.
2010-01-16 18:17:53 +03:00
NoFantasy
5a4944385e [9190] Remove not needed and currently unused header file
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-16 09:20:12 +01:00
VladimirMangos
6f703bab57 [9189] Fixed build error at *nix. 2010-01-16 08:37:50 +03:00
VladimirMangos
132b1cbabd [9188] Implement MoveGen::Interrupt call.
It can be used in time when need do some tasks before
another movement generator add on top to motion stack.
This just finish pair Interrupt->Reset similar Initilize->Finilize
In general movementgenerator have states:

Initilize=>Interrupt<=>[-some addition movegen->]<=>Reset=>Finalize
2010-01-16 07:02:13 +03:00
VladimirMangos
cc062f16ac [9187] Fixed problem with non-attackable pes/totems at arenas
... and other FFA areas. Problem is result chnages in related flags work after old 3.x switch.

* Added high-level functions for FFAPvP state set for unit
* Apply FFA PvP to all controlled units also at set, and at summon/load
2010-01-16 05:41:42 +03:00
VladimirMangos
6704929d56 [9186] Templated functions for apply some code to all controlled units.
Also fix some related problems with not updates totems/etc
2010-01-16 04:41:44 +03:00
VladimirMangos
7272b52daf [9185] Auto-leave player at login back to bg/arena when bg/arena finished. 2010-01-16 03:13:26 +03:00
VladimirMangos
1adcf67349 [9184] Fixed unread packet tail spam for CMSG_LEAVE_BATTLEFIELD 2010-01-16 03:12:54 +03:00
NoFantasy
ed06932361 [9183] Add filter in VC project files for motion/movement generators and related
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 11:55:39 +01:00
NoFantasy
dbf0fafbfe [9182] Replace 0 with NULL in a few CastSpell calls (removed where not needed)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:43:02 +01:00
NoFantasy
0d6b7f144c [9181] Rewrite parts of GameObject use for GO type 10
This implement using autoclose time for type 10 and also sending a custom animation for some.
To avoid duplicate code, remove code from SendLoot() (handled in Use() instead)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 01:23:45 +01: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
NoFantasy
c4b0406e7d [9179] Update formula for GameObject 'autoclose' time (dataN-field in _template)
This require database support/dataN-fields update for correct calculation of time (now in milliseconds)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-15 00:43:53 +01:00
VladimirMangos
98f3ed3d4b [9178] Lost changesat my prev. push :( 2010-01-14 21:11:16 +03:00
XTZGZoReX
9b1f98b5d9 [9177] Remove /Wp64 option for git_id vcproj files.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-14 21:04:41 +03:00
XTZGZoReX
ee26f74796 [9176] Add commented check for unit_class == 0.
In fact creature unit class must not be 0, but some creatures (like triggers) have this.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-14 21:00:41 +03:00
VladimirMangos
9901282592 [9175] Remove duplicate fclose call.
At some platform can cause cras at server startup.
2010-01-14 17:12:04 +03:00
Rockette
f02d897828 [9174] Target limit for spell 25991.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-14 13:06:43 +03:00
VladimirMangos
1def2a0977 [9173] Remove character_queststatus_daily data at character delete.
Data deleted anyway at next daily status update so just more early and expected cleanup.
2010-01-14 08:10:15 +03:00
VladimirMangos
cd1c1942e3 [9172] Fixed unreaded packet tail spam at group inviting. 2010-01-14 08:01:13 +03:00
NoFantasy
12096177e2 [9171] Update pet and minipet monster move flag at player toggle walk/run
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-13 14:52:59 +01:00
VladimirMangos
83bd854030 [9170] Impleament DBCs build check at server startup.
* Extractor now include in extarcted DBC dir data file with build info.
* Mangosd use this data for check at startup for main DBC dir and DBC local subdirs intergrity.
* Also updates DBC checks for raw data.

NOTE: You need reextract DBC data by _new_ extractor for correct work mangosd.
2010-01-13 11:40:27 +03:00