22 Commits
Author SHA1 Message Date
MrSmite 79a2d6b7fc Core/Spells: Fixed Revive Pet to revive the pet near the owner
Closes #11196
2013-11-11 13:22:41 +01:00
MrSmite a45f7fd878 Adds CONF option to show quest levels in dialogs.
Example: [13] Westfall Stew

Default = 0 (off). Make sure to set UI.ShowQuestLevelsInDialogs to 1 to turn it on

NOTES:

* DO NOT supply the quest level when using commands such as .lookup quest, it
is not actually part of the title (even though it will be printed in the result)

* Also adds the level in the quest tracker and quest log

* If locale is used, the level is added after the proper title is looked up

* LUA Mods that offer this feature do not work properly with TC, most will not put the level in all dialogs. Users who have such mods should disable the mod's feature or they may see the quest level listed twice.

Example: [13][13] Westfall Stew
2013-01-25 21:47:07 -05:00
MrSmite 98f502f32f Fix passive pets not using spells when commanded to attack
Closes #8941
2013-01-14 21:47:14 -05:00
MrSmite f7904b1d4d Update src/server/game/Entities/Unit/Unit.cpp
Revert codestyle changes to cut down on calls to GetCharmerOrOwner()
2012-12-25 22:25:18 -05:00
MrSmite a4733863ec Update src/server/game/Entities/Unit/Unit.cpp
Code style cleanup
2012-12-24 23:47:42 -05:00
MrSmite a06006abb0 Update src/server/game/Entities/Unit/Unit.cpp
Fix crash on "tame pet"
2012-12-24 03:35:13 -05:00
MrSmite 8ce003700c Fix pets lagging behind and despawning by slightly adjusting speed
if too far from owner.

Closes #8740
2012-12-23 00:13:05 -05:00
MrSmite 09204f1534 Update src/server/game/Entities/Unit/Unit.h 2012-12-22 12:04:10 -05:00
MrSmite 9a5b17d536 Update src/server/game/AI/CoreAI/PetAI.cpp 2012-12-22 12:01:51 -05:00
MrSmite 4c9451d54c Fix pet stopping approach when attacked by another creature
Fix pet placed on stay after "attack" not attacking new attackers

Closes #8735
2012-12-21 20:57:22 -05:00
MrSmite 3cf2600688 Core/AuctionHouse: Fix a possible auctionhouse crash 2012-12-18 21:34:02 +01:00
MrSmite 04f08d26a7 Implements saving of loot (items / money) contained inside lootable inventory items.
* Unlooted items / money persist across player sessions
* Loot inside items is tied to the item rather than the player so if trading
  partially looted items becomes possible, this implementation will still work

* New tables added:

    characters_database.sql (first time users)
    characters_create_item_loot.sql (existing users)

Implementation Can be tested with:

 Watertight Trunk [21113]
 Bulging Sack of Gems [25422]
 Fat Sack of Coins [11937]

Closes #2048
2012-12-15 00:06:32 -05:00
MrSmite 777b287dff PetAI - Overhaul / bug fix
* Aggressive pets now use aggro radius check based on level diff of target
  * Aggro radius limited to max 45 yards (per wowwiki)
  * Pets no longer "dance" when fighting a creature
  * Pets returning will defend themselves (if not passive) if owner didn't click "follow"
  * Pets at stay will properly pick up their owner's attackers that pass within range
  * Fix "no empty line at end of file" warning in PetAI
  * Fix typo in GetAggroRange()
  * Fix spell "Eyes of the Beast" - player can move pet freely
  * Code style cleanup

  * Update commit comment

Closes #8398, #7455
2012-12-07 22:13:57 -05:00
MrSmite ced723a53a Core/Pets: Pet "at rest" distance from owner is now closer as it should be
Original PR modified

Closes #8358
Closes #8181

Signed-off-by: Nay <[email protected]>
2012-11-19 23:55:42 +00:00
MrSmite 0dfac02446 Fix PetAI missing aggressive pet target select
PetAI minor cleanup of target selection
2012-11-18 00:24:24 -05:00
MrSmite 69377bc1d2 Pets should face same direction as owner after follow.
Fixes #8248
2012-11-04 04:32:25 -05:00
MrSmite d28a62e579 Cleanup PetAI, remove unnecessary and broken JustDied(). Closes #7242
Thanks to Oiler2112 for suggestions and testing.
2012-10-12 16:48:33 -04:00
MrSmite ce6785d9db Core/Combat: Fix Evade Mechanics
- Can now kite mobs beyond ThreatRadius (CONF) if continuing to damage them. World bosses still use ThreatRadius to prevent pulling them to cities
- A mob that is beyond the ThreatRadius, it will return home (evade) after 10 seconds of no damage if there are no valid targets within attack distance of it, otherwise it will still attack
- Mobs now properly report "Evade" if attacked while returning home.

(modified - Nayd)

Closes #830
Closes #7748
2012-09-22 02:11:31 +01:00
MrSmite fb39566f1f Core/Pets: Fix bugged reactstate behaviour after spline system implementation.
Signed-off-by: Machiavelli <[email protected]>
2012-02-21 10:26:14 +01:00
MrSmite d55c8c7cc4 Core/Misc: Correct console output for ObjectMgr::LoadCorpses
Closes #5299

Signed-off-by: Machiavelli <[email protected]>
2012-02-18 11:46:05 +01:00
MrSmite ebcff354a2 Core/AuctionHouse: Delete no longer linked item_instace entries due to an auction. 2011-05-03 08:36:20 -04:00
MrSmite a92038feaf Core/AuctionHouse: Delete expired auctions at startup. 2011-05-03 08:32:57 -04:00