Commit Graph

9951 Commits

Author SHA1 Message Date
Spp
4db7e4aaa0 Core/Command: Fix 'character titles' command, patch by Shadowstep
closes issue 3939

--HG--
branch : trunk
2010-09-16 10:59:02 +02:00
azazel
a034ac9937 Scripts: enhance SCRIPT_COMMAND_TALK command to make Players talk (add 0x1 bit to datalong2 and command will expect Player instead of Creature for talking).
--HG--
branch : trunk
2010-09-16 13:28:16 +06:00
azazel
236356628a Scripts/Quests:
* add support for quest 12634 Some Make Lemonade, Some Make Liquor (implement 51840 spell and Adventurous Dwarf AI, thanks akadabeer)
* implement dummy effect for 49587 Seeds of Nature's Wrath spell (used in quest 12459 That Which Creates Can Also Destroy)
* implement dummy effect for 19512 Apply Salve spell (used in quest 6124/6129 Curing the Sick)
Scripts/Misc: some cleanup in chat log
Core/Locales: fix issue when default locale for trinity_string strings was not used (thanks Aokromes for testing).

--HG--
branch : trunk
2010-09-16 13:14:14 +06:00
linencloth
9739bea487 Core/Loot: Reimplement the proper check for loot recipient to prevent rewarding loot without tagging the creature by the player.
Also fix the related skinning problem, and do not set the skinnable flag for creatures without any loot recipient.

--HG--
branch : trunk
2010-09-15 17:44:56 +02:00
linencloth
52bc2478c9 Core/Creature: Do not reward XP for creatures without any loot recipient. (XP fix part for the "pet-only"-kills)
--HG--
branch : trunk
2010-09-15 17:37:03 +02:00
linencloth
91d2c1d64c Core/Creature: Initialize the recipient group for creatures.
It fixes creatures appearing as tagged units, and may also prevent crashing which could happen by using the bad pointer.

--HG--
branch : trunk
2010-09-15 17:30:42 +02:00
Machiavelli
0856197d87 Core/Unit: Fix a crash in GetCurrentMovementGeneratorType(). Author: dr.tenma
Fixes issue #1876

--HG--
branch : trunk
2010-09-15 15:38:46 +02:00
Shauren
e132da9547 Core/Pools: Reverted PoolMgr part of revision 4c50fada8a (fixes compile) and fixed the compile warning that was supposed to be fixed there
--HG--
branch : trunk
2010-09-15 15:11:19 +02:00
Liberate
23a49147cd Fix a typo in previous rev. I thought renaming a function shouldn't be too hard. I guess I was wrong...
--HG--
branch : trunk
2010-09-15 14:38:22 +02:00
Liberate
97a93573cb Core/PetAI: When commanding your pet to attack while being Passive, it will actually start attacking.
Fixes the PetAI so that your pet stops attacking when the target is Crowd Controlled (including Frost Nova, Fear, etc) unless you specifically ask it to.
Tested extensively with click.

--HG--
branch : trunk
2010-09-15 14:16:10 +02:00
Shauren
a72fc44f9a Core/Loot: Reverted part of revision fe39cb058b75, fixes skinning loot
Core/Loot: Some logic fixes for group looting
Buildsystem/MSVC: Fixed compile warning
Config: Added missing description for Rate.Drop.Item.ReferencedAmount

Closes issue #4004.

--HG--
branch : trunk
2010-09-15 13:44:40 +02:00
Spp
e550494338 Core: Fix warnings added in recent commits
--HG--
branch : trunk
2010-09-15 13:23:36 +02:00
Spp
cc3d4cc823 Core/Scripts: Add OnPlayerLogin, OnPlayerLogout, OnPlayerCreate and OnPlayerDelete
--HG--
branch : trunk
2010-09-15 13:23:07 +02:00
Shauren
9d9f18f9d2 Core/Loot: Add new config option "Rate.Drop.Item.ReferencedAmount" which allows multiplication of referenced loot count
Closes issue #814.

--HG--
branch : trunk
2010-09-15 10:44:38 +02:00
Shauren
48786f2996 Core/Pools: Fixed a possible infinite loop in quest pools
Core/Pools: Fixed loading of quest pools
Core/Pools: Fixed possible startup crash

Closes issue #4015.

--HG--
branch : trunk
2010-09-15 10:35:54 +02:00
Shauren
5a312bdc3e Core/Loot: Check conditions before distributing currency
--HG--
branch : trunk
2010-09-15 10:35:51 +02:00
linencloth
a582ab9d9d Core/Spells: Allow AoE spells to target dead units.
Also removes some unneeded checks from ally targeting.

--HG--
branch : trunk
2010-09-15 06:33:38 +02:00
linencloth
ec5edaf6bf Core/Creature: Initialize the creature's default movement generator on respawn.
Fixes creatures which are moving by default, but not continuing it after respawning.

--HG--
branch : trunk
2010-09-15 06:23:25 +02:00
linencloth
356a263059 Core/Creature: Fix creature respawn time in unloaded/inactive grid cells.
Fixes issue 1865.

--HG--
branch : trunk
2010-09-15 06:22:54 +02:00
Spp
cce61839f8 Core/Player: after removing player from group, if group is deleted assign pointer to NULL to make sure no garbage pointer is used later in code
--HG--
branch : trunk
2010-09-14 20:14:10 +02:00
Spp
e12c01950a Code style (remove double blank line)
--HG--
branch : trunk
2010-09-14 20:10:48 +02:00
Spp
b5172ea7d4 Core/Dungeon Finder: LfgUpdatePlayer and LfgUpdateParty opcodes will be sent only when LfgUpdate is active
--HG--
branch : trunk
2010-09-14 20:09:34 +02:00
Spp
64e60aaeda Core/Dungeon Finder: Add extended debug info to handler
--HG--
branch : trunk
2010-09-14 20:05:30 +02:00
Spp
3a890a16fc Core/Dungeon Finder: Redo update proposal algorithm when a group is found
- Store wait times earlier to form new group to ensure we don't miss it
- Fixes earlier removal of group/player from LFG system
- Fixes issue 4009

--HG--
branch : trunk
2010-09-14 20:04:00 +02:00
click
88d0744f1b Core/PetAI: Make pets respect being in passive mode (fixes a few "stuck in front of target"-issues with pets on certain occations)
- setting pet into passive mode before reaching its target (after an attack-command) will break attack (return "home" to follow/stay position)
- setting pet into passive mode and fully attacking target will make it return home properly

--HG--
branch : trunk
2010-09-14 18:36:56 +02:00
Shauren
74ca173923 Core/Loot: Fixed currency items being automatically distributed to players outside the instance, now if player is outside he will still be able to claim his emblems but will have to loot it manually
Closes issue #4005.

--HG--
branch : trunk
2010-09-14 16:56:30 +02:00
Spp
61bbd284de Core/Player: Add default remove Method to RemoveFromGroup
--HG--
branch : trunk
2010-09-14 16:38:08 +02:00
Spp
80051c6d3c Core/Scripts: Add GroupScript class
--HG--
branch : trunk
2010-09-14 16:37:54 +02:00
Spp
8c74993a43 Core: Fix includes in ScriptMgr files
--HG--
branch : trunk
2010-09-14 16:37:40 +02:00
Shauren
c2c3302d2f Core/Vehicles: Removed hacky setting entry for multi-passenger mounts
Core/Pools: Fixed compile

--HG--
branch : trunk
2010-09-14 16:14:43 +02:00
Shauren
102e51d620 Core/Pools: Implemented quest pooling
Core/DBLayer: Added GetNumRows() method to PreparedResultSet

--HG--
branch : trunk
2010-09-14 13:56:27 +02:00
Shocker
cdd8f446fa Core/Spells: combo points requirement should be changed before CheckCast
--HG--
branch : trunk
2010-09-14 13:28:25 +03:00
Shocker
5e7bec0268 Core/Spells: Triggered spells should ignore combo points check, fixes issue 4006
--HG--
branch : trunk
2010-09-14 12:56:32 +03:00
Shocker
e5e980b686 Core/Spells: Fix Health Funnel health cost, fixes issue 1985
--HG--
branch : trunk
2010-09-14 10:54:16 +03:00
linencloth
6bdfc77b42 Core/Player: allow dead players to see dead creatures near their corpses
--HG--
branch : trunk
2010-09-14 02:57:53 +02:00
Shocker
df9d62d2b1 Core/Spells: Set maximum affected targets value for Unholy Frenzy (50312), will be used in DB AI scripting
--HG--
branch : trunk
2010-09-14 01:27:05 +03:00
linencloth
5bd9afb9fa Core: Prevent critters from rewarding XP.
Also avoid unnecessary XP rate calculations.

--HG--
branch : trunk
2010-09-14 00:09:58 +02:00
click
a6efc4dad5 Core/Loothandling: Make sure "pet-only"-kills doesn't drop loot (when pet is killing a creature on its own without any assistance from player)
(Also fix unintended typo from r701f212a00)

--HG--
branch : trunk
2010-09-13 22:49:20 +02:00
Shocker
6528a82b61 Core/Spells: Remove duplicate healing bonus calculation for Prayer of Mending, closes issue 3879, thanks dr.tenma
--HG--
branch : trunk
2010-09-13 22:54:04 +03:00
Shocker
de9ed810ef Core/Guilds: Fix Guild bank event log for big stacks, fixes issue 3996, thanks maketheking for pointing out the problem
--HG--
branch : trunk
2010-09-13 22:41:32 +03:00
click
a48923ee8c Core: Properly handle pet killing critters and also remove some old code - fixes a few issues:
- make pets return home after killing a critter (they refused to return to player on critter death)
- kills of an OLD bug : make critters lootable if they have loot (for quests). Fixes issue #1950.
Thanks to linencloth for the help on finding this bugger.

--HG--
branch : trunk
2010-09-13 18:22:16 +02:00
Machiavelli
88f378e7ae Core/DBLayer: Fix a memory leak in prepared statement parameter/result binds. Original author: raczman
--HG--
branch : trunk
2010-09-13 17:07:27 +02:00
Shauren
6d0a031a77 Core/Quests: Some cleanup in quest relation accessing
--HG--
branch : trunk
2010-09-13 13:18:27 +02:00
Spp
c7289967b0 Code Style: Tab to spaces
--HG--
branch : trunk
2010-09-13 09:51:40 +02:00
Spp
9a7990e4ed Core/Dungeon Finder: Restore consistency after an inconsistency is found while checking compatibilities
Closes issue 3950

--HG--
branch : trunk
2010-09-13 09:43:59 +02:00
Spp
1f9b2b5af7 Core/Dungeon Finder: Use proper function to find players
--HG--
branch : trunk
2010-09-13 09:20:07 +02:00
Spp
6e55c22a12 Core: Add function to find players by low guid
--HG--
branch : trunk
2010-09-13 09:16:57 +02:00
Spp
62d0d8921d Core/Dungeon Finder: Offer to continue only if dungeon is not complete
Updates issue 3916

--HG--
branch : trunk
2010-09-13 08:47:24 +02:00
Spp
afad2447c7 Fix wrong sql file name
--HG--
branch : trunk
2010-09-13 08:18:46 +02:00
Shocker
fef504e365 Core/Loot: Looting should interrupt casting, fixes issue 3676.
--HG--
branch : trunk
2010-09-13 04:02:57 +03:00