Commit graph

4097 commits

Author SHA1 Message Date
VladimirMangos
9508001213 [10696] Avoid selection despawned creatures as spell autoselected targets.
Original patch provided by virusav.
2010-11-08 03:09:01 +03:00
VladimirMangos
d2b3981631 [10695] Cleanup some death state enums usage. 2010-11-08 02:13:25 +03:00
SilverIce
bb3663d94f [10694] Use portable ACE way msecs time value calculation
Avoid use unsafe code for non-Windows platforms
Thanks to Marik for research the problem and Ambal for helping me with this patch
2010-11-08 01:02:57 +02:00
DasBlub
e9869e7470 [10693] Update SpellEntry based on the work of TOM_RUS 2010-11-07 21:08:34 +01:00
VladimirMangos
10d3d3ce24 [10692] Fixed some GCC warnings and code errors.
Thanks to freghar for provide cleaned list of warning messages.
2010-11-07 21:30:55 +03:00
NoFantasy
349719e520 [10691] Add dummy effect of spell 53475, 53487 and 54015
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-07 16:09:46 +01:00
VladimirMangos
2b98f699b7 [10690] Fixed *nix build problem after recent commits. 2010-11-07 03:04:35 +03:00
VladimirMangos
bffc07e4bc [10689] Restore some item checkes for temporary loot case. 2010-11-07 02:20:10 +03:00
VladimirMangos
e219ee99bb [10688] New version of patch for send real diff from last update.
In new version last update time stopred for specific Cell that store all world objects
placed in it. All objects of Cell updated (or not updated) in same time.

Original version provided by ciphercom.
2010-11-06 22:59:54 +03:00
VladimirMangos
464908f453 [10687] UInt32 timer class copies instead using time_t timers for mstime cases.
Also cleanup weather update code and some random code cleanups.
2010-11-06 22:51:40 +03:00
Lynx3d
478bf3b367 [10686] Update outdated comment 2010-11-06 01:12:39 +01:00
VladimirMangos
315da014af [10685] Fixed creature_template loading after vendor changes.
Thanks to insider42 for problem research.
2010-11-05 22:04:45 +03:00
VladimirMangos
a163425b57 [10684] Fixed mangos.sql creature_template default content after adding vendor_id 2010-11-05 21:21:54 +03:00
VladimirMangos
0847d4c8cd [10683] Revert "[10677] Send to creature/etc Update call real diff from last update and use it."
This reverts commit 10784a8c7cc81c468b5411e973d36ecf31de9603.

Main reason: impossibility for me as commiter test problem and fix all corner cases problems.
2010-11-05 19:54:31 +03:00
VladimirMangos
2f144d9d29 [10682] New table 'item_convert' for convertion items.
* Implment vendor at show replace BoA item with reputation requirement
  by identical item without rep. reqs for player that fit this requirements
  of original item.

* Table also can be used for store item convertion data form one team items
  to similar other team items. This case not impement but added function easy
  used for it.

* Note: strict single convert for item not created problem for both way use:
  item converted for same team or all, can't be original item for conversion to
  another team.
2010-11-05 00:41:16 +03:00
SilverIce
225b4db1ca [10681] Added new Cell::Visit* functions to visit grids with center in (x,y) coords
* This fixes possible problems with Spell::FillAreaTargets(center of search should be (x,y) position, not spell caster's position)
* Cleanup Cell class, removed old and unused code
2010-11-04 21:45:49 +02:00
VladimirMangos
ef8789f780 [10680] Update item buy code for new way vendor item lists work. 2010-11-04 20:40:19 +03:00
VladimirMangos
0bf8b0aa79 [10679] New table npc_vendor_template for comon item data for diff vendors.
In vendor list show own vedor items + template ites if any.
Vendor template item lists selected by id stored in creature_template.vendor_id
2010-11-04 20:22:47 +03:00
VladimirMangos
a0cb8494a9 [10678] Revert "[10675] Ignore BOA items reputation requirements at use."
This reverts commit 4ce902e5d9c3cfc635c0eff1ba3552da5ecd0c5b.

Check done at client side so useless skip it at server side.
Proper fix expect show diff items in vendor list depndent from required reputation.
2010-11-04 13:16:58 +03:00
cipherCOM
555c1a9094 [10677] Send to creature/etc Update call real diff from last update and use it.
Now in case when creature/etc some tices not updates in result stay
in not active (no near players or active objects) cell some important
timers (corpse decay, summon timers, group loot expire, aura durations, etc) will
updates at real diff time from last prev. update call.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

For some systems added exclude use real diff time because current limitations
like move generators. So its stay use last tick diff and considered freeze and
skip all time while creature in not active map part.
2010-11-03 07:07:13 +03:00
VladimirMangos
62c0963f37 [10676] Fix repeating looting for milling/prospecting. 2010-11-03 01:55:38 +03:00
VladimirMangos
cb5a666ce3 [10675] Ignore BOA items reputation requirements at use.
Item reputation requirements checked at buy, and in quest case
related quests expected to have own reputation requirements
preventing rewarding items with not fit reputation requirements.
2010-11-02 15:25:14 +03:00
zerg
839104e0cc [10674] Show some SPELL_AURA_MOD_DODGE_PERCENT auras as debufs as expected.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-02 04:59:54 +03:00
VladimirMangos
b806495563 [10673] Include item_loot into pdumps 2010-11-02 02:16:44 +03:00
mns
54d0c9b77d [10672] Allow damage own pet in sanctuary.
Also mome repeating code to new function.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 14:57:54 +03:00
VladimirMangos
a32d68febd [10671] Convert some Unit owner/etc guids to ObjectGuid way. 2010-11-01 13:19:50 +03:00
VladimirMangos
92d98b9fb2 [10670] Restore build at real C++ compilers after recent timed achievements commit. 2010-11-01 09:41:12 +03:00
Ceris
ee1b18cd20 [10669] Fixed mana amount for overheal case for talent 31785 and ranks.
Also thanks to Wojta for patch code improvements.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 09:07:01 +03:00
VladimirMangos
97ff7e6006 [10668] Implement CONDITION_*ITEM_WITH_BANK conditions.
Similar CONDITION_*ITEM but including character bank content in counting.
2010-11-01 06:26:20 +03:00
Schmoozerd
ef5ea6f24f [10667] Timed Achievements, Fail-Support and Opcodes
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 05:47:08 +03:00
emsy
e78887e964 [10666] Implement ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_*_RATING
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 04:14:15 +03:00
emsy
3ada9f635f [10665] Allow use faction data for cases raceMask==0
Also some related code cleanup

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 04:04:40 +03:00
Deleterios
549b44d8ec [10664] Rename arena_team_stats fields for better fit to stored values.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 02:37:10 +03:00
eggxp
6f2625c258 [10663] Fix totem animation at normal unsummon.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 02:26:00 +03:00
VladimirMangos
f48e768a70 [10662] Implement partly item looting
* Not deleted normal item loot at first loot window close.
* Save current item loot content to DB for later continue looting.
* Cleanup spell effect SPELL_EFFECT_OPEN_LOCK check code
* Cleanup Player::AutoStoreLoot calls
2010-11-01 02:04:08 +03:00
zerg
9a5accf8a9 [10661] Update VC10 filers for new ACE
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-31 23:53:54 +03:00
NoFantasy
449a708728 [10660] Make quest for game event be independent of source
Create new table and convert existing data.
Simplify how game event quests are activated during event by adding generic function to set quest active/inactive.
Any quest in game_event_quest are disabled until event start (and deactivated once stopped)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-31 11:35:09 +01:00
SilverIce
1370ead743 [10659] Fixed mistake in [10653] that causes player to fall from the transport at teleporting to another map 2010-10-31 12:15:32 +02:00
NoFantasy
506e93d15d [10658] Add enum as argument for quest special/flags functions
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-30 01:47:37 +02:00
NoFantasy
b6e367bf3c [10657] Separate quest_template.QuestFlags from SpecialFlags
Create enum for SpecialFlags (database flags and internally computed)
Added related functions for specialFlags and update code accordingly.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-30 01:14:17 +02:00
NoFantasy
1210c6d978 [10656] Rename quest function HasFlag to HasQuestFlag
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-29 21:19:35 +02:00
NoFantasy
a38f97f71c [10655] Add support for monthly quests
Quest that can repeated each month are set by quest_template.SpecialFlags |0x04 flag
Quest are reset at midnight the first day of each month.
Note: for the time being, quest must also be set repeatable (SpecialFlags |0x01)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-29 20:39:01 +02:00
NoFantasy
331a7e7f5b [10654] Allow creature to offer same quest for more than one game event
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-28 13:26:39 +02:00
SilverIce
1871cf977f [10653] Implemented MSG_MOVE_KNOCK_BACK opcode
* Player's knockback movement now smooth and doesn't looks like teleporting
 * Cleanup WorldSession::HandleMovementOpcodes, separated opcode specific and generic movement handlers code
 * Handle Feign Death aura interrupting into more appropriate place
2010-10-28 05:48:43 +03:00
NoFantasy
81d3368e29 [10652] Allow set pvp flags from creatures *_addon data
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-27 09:49:55 +02:00
nos4r2zod
f483b41242 [10651] Fixed combat log being bugged by pets without name
Signed-off-by: SilverIce <slifeleaf@gmail.com>
2010-10-26 20:35:25 +03:00
Jethrogibbs
38e4a4936d [10650] One more typo in mangosd.conf.dist.in
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-26 20:55:32 +04:00
eggxp
e87008b339 [10649] Enchanted spell 8017 and ranks should apply to weapon by client auto selection
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-26 20:52:29 +04:00
Veretos
09d468e7ab [10648] Typos in mangosd.conf.dist.in
Also thanks to Marik for additional typo fix and diff preparing

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-26 17:03:23 +04:00
VladimirMangos
fd7e86c79b [10647] Show die animation at totem destroy.
Or any creature type die with linked unsummon.

Original patch provided by Eggxp.
2010-10-26 16:49:29 +04:00