Commit Graph

542 Commits

Author SHA1 Message Date
Subv2112 1975291a98 Core/Achievements: ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM should only be counted once for each new item you receive
closes #5065

Signed-off-by: Subv <s.v.h21@hotmail.com>
2012-02-03 20:04:26 -05:00
QAston c7ea952a47 Core/Entities: Rename UNIT_FLAG_OOC_NOT_ATTACKABLE and UNIT_FLAG_PASSIVE to UNIT_FLAG_IMMUNE_TO_PC and UNIT_FLAG_IMMUNE_TO_NPC respectively. New names tell much more about what those flags do. 2012-02-03 18:46:05 +01:00
Shocker 08be716ef8 Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_* 2012-02-03 19:02:17 +02:00
kaelima e602619912 Core/Player: Remove spell used to unlearn talents and replace with a direct packet send. Spell is not found casted in 3.3.5a sniffs. Thanks Malcrom for the hint. 2012-02-03 14:56:29 +01:00
Subv2112 2786ea1f5e Core/Quests: Fixed a crash caused when trying to add a quest to a player who does not have any free slot in his quest log. fixes #4572
Signed-off-by: Subv2112 <s.v.h21@hotmail.com>
2012-01-31 16:45:36 -05:00
Subv2112 bdae78ac9d Core/LFD: Fixed possible multithreading crash, thanks LihO 2012-01-31 14:38:14 -05:00
Subv2112 1bc370aaf8 Core/Achievements: Fixed achievements with ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, they were not accumulating the amount 2012-01-31 10:01:29 -05:00
click e6d5b21778 Core: Fix non-PCH build and remove a few warnings. 2012-01-24 00:24:39 +01:00
Subv2112 3d4f55723c Core/SAI: Linked events should be executed after the event that linked them is executed.
Core/SAI: Allow SMART_EVENT_GO_STATE_CHANGED to use ActionInvoker target

Signed-off-by: Subv2112 <s.v.h21@hotmail.com>
2012-01-22 20:36:01 -05:00
Machiavelli e652d9043b Missing unsaved changes for previous commit... 2012-01-18 19:00:52 +01:00
Machiavelli 46dda033c8 Core/Items: Blizzlike fix for the recent trade exploit fix 2012-01-18 18:57:21 +01:00
Machiavelli abd94e324b Core/Items: Fix crash and updated documentation in SplitItem 2012-01-18 13:14:06 +01:00
SignFinder cc88681dc5 Core/Items: Really fix a trading spoof exploit.
Thanks Alexsot for fix.
2012-01-18 11:56:34 +04:00
kaelima 819da8af4d Core/Items: Attempt to fix crash in Player::SplitItem caused by 6a44399852.
And some random cleanup
2012-01-18 06:07:30 +01:00
Machiavelli 6a44399852 Core/Items: Fix a trading spoof exploit.
Closes #4713
2012-01-17 18:51:04 +01:00
Shauren 894c27af52 Core/Groups: Need restrictions in need before greed loot method should apply only to LFG dungeons 2012-01-14 18:42:23 +01:00
Subv2112 f4075f0f94 Core/LFG:
Fix priority of the player when its added to the lfg group
        Better implementation of the Dungeon Deserter debuff
        Rewrite the NeedBeforeGreed loot
        Fixed players being shown as Unknown Entity when entering the lfg group
        Some incremental optimizations after original patch
Thanks to Retriman and Paecman for base implementation

Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2012-01-14 17:37:28 +01:00
Machiavelli dbbac0bdaa Core/Movement: Implement spline movement subsystem.
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc).
Proper implementation of effects such as charge, jump, cyclic movement will rely on it.
However, need improve our states system before.

Technical changes:

* Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation.
* Precission increased. There are no more position desync issues since client's position calculation formulas used.
* Now possible to move by paths with multiple points, send whole path to client.

--
Original author of research and implementation: SilverIce. Massive kudos.
Original port for Trinity (ref #4629) Chaplain and Venugh
With the following incremental fixes during my review:

- Restore flightmaster end grid pre-loading
- Fix uninitialized Creature::m_path_id
- Add missing trinity_string entries for .movegens command
- Fix a bug in WaypointMovementGenerator that would trigger unexpected pausing at waypoints for various amounts of time

Known issues:
- Errors like WaypointMovementGenerator::LoadPath creature XXX (Entry: YYYYY GUID: ZZZZZZ) doesn't have waypoint path id: 0.
This is caused by bad DB data. This commit didn't "break" it.

Do not forget to re-run CMake before compiling.
2012-01-14 15:36:07 +01:00
Subv2112 d02c781241 Core/Gossips: Fixed questgiver GOs that also have gossip menus, fixed gossip option selecting on GOs
Signed-off-by: Subv2112 <s.v.h21@hotmail.com>
2012-01-09 09:29:45 -05:00
Subv2112 5584354444 Core/Players: Fix crash in LoadFromDB
Closes #4724
Closes #4673
2012-01-08 18:37:16 +00:00
Machiavelli 1dc6f6a2da Merge pull request #4646 from elecyb/crash1
Core/PacketIO: Fix crash and exploit caused when client sends tampered m...
2012-01-07 03:58:42 -08:00
Shauren 1a8bf13cb6 Core/Events: Last part of seasonal quest loading/saving fixes (should all be one commit) 2012-01-06 15:08:21 +01:00
Shauren 5ae622678a Core/Events: Fixed saving seasonal quest status 2012-01-06 15:01:30 +01:00
Shauren 2bef633e1f Core/Events: Corrected column type when loading seasonal quest status 2012-01-06 14:58:55 +01:00
Shauren 0c2dd2dc7f Core/Events: Fixed crash when loading character_queststatus_seasonal 2012-01-06 14:57:01 +01:00
elecyb 7d7bb8363d Core/PacketIO: Fix crash and exploit caused when client sends tampered mover guids
Closes: #4056
2012-01-05 18:34:56 -03:00
Shauren 01900b5829 Core/Events
* Changed how quests are linked to events (no longer in Quest class)
* Added quest validation when loading game_event_seasonal_questrelation
* Renamed fields in new table to be consistent with game_event* tables
* Corrected db data (some entries had -1 as event id)
2012-01-05 13:27:17 +01:00
Shocker b1129499a2 Merge pull request #4587 from wilds/fix_reenter_bg
Core/Battleground: Fix re-entering battlegrounds after disconnect
Closes #90
2012-01-04 13:18:05 -08:00
Shocker 8d7f77eb00 Merge pull request #4616 from kandera/fix_seasonal_quest_reset
Core/Quests: Add implementation of seasonal quest reset
2012-01-04 13:11:34 -08:00
kandera 34c437e973 [Core/Spells] Fix Blood Tap (finally fixes full spell)
ignore removal of aura provided by Souler thanks!
2012-01-04 11:50:31 -05:00
kandera 46fb199ee1 Core/Quests: Add implementation of seasonal quest reset. uses a new table much like character_queststatus_weekly. fixed typo where WEEKLY was WEKLY. Attempt 2 2012-01-04 07:59:32 -05:00
Wilds 2a38902d2e Core/Battleground: fix re-enter into battleground after disconnect 2012-01-04 11:52:13 +01:00
elecyb 6b35b76fba Core/Spells: Some corrections after 65aca2b806, this should fix the console spam 2012-01-03 16:34:05 -03:00
elecyb aea8b2af44 Core/Spells: Fixed crash introduced in last commit 2012-01-02 22:49:08 -03:00
elecyb 993c4e748f Core/Spells: Update nearby visible objects for new viewpoints, fix spells with Far Sight and Bind Sight effects. 2012-01-02 16:33:14 -03:00
leak ced346076b Merge pull request #4567 from Kiperr/master
Happy new year!
2011-12-31 16:13:28 -08:00
leak cdbeb42e0f Core/DBLayer: Refactor prepared statement defines to new format (char db) 2012-01-01 01:09:38 +01:00
kiper 8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
leak ff8874574f Core/DBLayer: Convert another Execute() query to a prepared statement 2011-12-31 19:51:48 +01:00
leak 8adac3f246 Core/DBLayer: Convert PExecute() queries to prepared statements No. 3 2011-12-31 00:32:05 +01:00
Spp 48829f8ffb Core/Players: Fix out of bound access (by MoltenDev) 2011-12-28 12:32:48 +01:00
leak e646dbb3cd Core/DBLayer: Convert PExecute() queries to prepared statements No. 2 2011-12-27 00:29:48 +01:00
megamage 8cf2062c1f Update grid system. Try to fix some crashes and transport passengers (now they are despawned after a while). 2011-12-20 17:07:09 -05:00
Machiavelli 6c03bf9535 Core/Misc: Some random meaningless Engrish to English conversion in a method name because Discovered is too lazy to do it himself. 2011-12-19 22:06:29 +01:00
leak 7052fbf5cc Core/DBLayer: Convert callback queries to prepared statements 2011-12-18 20:56:38 +01:00
Shocker f3c6904096 Core/Quests: Fix exploits with banked quest items while trying to complete quests 2011-12-18 16:24:10 +02:00
megamage 6a4d68b8c2 Fix a crash caused by m_itemSoulboundTradeable. Fix #4266. 2011-12-15 10:52:09 -05:00
Spp d59c5e627f Fix warnings 2011-12-15 11:12:15 +01:00
Shauren 7147063c17 Core/Instances: Required achievement to enter instance should only apply to group leader, original patch by kandera
Closes #4279
2011-12-12 18:20:46 +01:00
Shauren 3ff67fb257 Core/Achievements: Refactored HasAchieved to take only achievement id as parameter 2011-12-12 18:19:26 +01:00