Commit Graph

148 Commits

Author SHA1 Message Date
Spp
61bbd284de Core/Player: Add default remove Method to RemoveFromGroup
--HG--
branch : trunk
2010-09-14 16:38:08 +02:00
Shauren
6d0a031a77 Core/Quests: Some cleanup in quest relation accessing
--HG--
branch : trunk
2010-09-13 13:18:27 +02:00
Shocker
fef504e365 Core/Loot: Looting should interrupt casting, fixes issue 3676.
--HG--
branch : trunk
2010-09-13 04:02:57 +03:00
click
4da2cdffea Core/ItemHandler: Force size on abs() value calaulation
The size of the return value of abs() is natively defined, and can exceed 32 bits on x64 systems
Fix by Zor

--HG--
branch : trunk
2010-09-12 02:59:19 +02:00
click
26ec6042be Core/PetitionsHandler: Slight cleanup on enums (sorting by ID, types and costs)
--HG--
branch : trunk
2010-09-12 02:52:44 +02:00
click
bc28f2ab25 Core/Petitions: Remove some magic numbers, and classify types into enums (based on Amkis patch)
Fixes issue #3228

--HG--
branch : trunk
2010-09-12 02:00:42 +02:00
click
bf664b7a44 Cleanup/Core: Remove whitespace and tabs
--HG--
branch : trunk
2010-09-12 01:40:27 +02:00
Shauren
d714d0eb20 Core/Loot: Reverted revision 44a1f284dd3e
Core/Loot: Implemented automatic currency distribution in better way, applying all conditions and updating achievements

Closes issue #3912.

--HG--
branch : trunk
extra : rebase_source : 35c2a59d213793ee29dfd0fc1acb7c15b375b049
2010-09-11 21:28:55 +02:00
Machiavelli
a41e99223e Core/DBLayer:
* Rename QueryResult class to ResultSet
* Rename QueryResult_AutoPtr to QueryResult
* Declare ACE refcounted auto pointer for PreparedResultSet class

--HG--
branch : trunk
2010-09-11 21:10:54 +02:00
Spp
52bc38615c Core/WorldSession: use extra param in SendPartyResult for future use
--HG--
branch : trunk
2010-09-10 13:45:21 +02:00
Machiavelli
9dd6e8f4d0 Core/Worldsession: Fix possible crash in 6 query callbacks
--HG--
branch : trunk
2010-09-09 20:26:56 +02:00
Spp
a9782329ab Core/Dungeon Finder: Move all packet handling from Mgr to Handler (also minor cleanups)
--HG--
branch : trunk
2010-09-09 14:49:52 +02:00
Spp
8509d50a39 Core/Dungeon finder: Missing changes from previous commit
--HG--
branch : trunk
2010-09-08 13:44:57 +02:00
Spp
fcc8d1e4a8 Core/Dungeon Finder: Properly expand random dungeons before adding to queue and minor cleanup
- Groups were being added to queue even with no dungeons. Client was not informed so group couldn't join queue anymore
- Some cleanup in error msgs and function order
Fixes issue 3851

--HG--
branch : trunk
2010-09-08 13:19:05 +02:00
Shocker
6284854965 Core/Handlers: Prevent possible movement hijacking exploit, original code by VladimirMangos
--HG--
branch : trunk
2010-09-08 09:46:42 +03:00
silinoron
b1e7dc1ad2 Core: Disallow race and faction transfers to races for which character creation is not allowed.
--HG--
branch : trunk
2010-09-06 10:42:53 -07:00
azazel
7afc640ef4 Core: add possibility to disable creating of characters of specified races/classes.
--HG--
branch : trunk
2010-09-06 23:34:16 +06:00
click
db0b166116 Core/LFG: Include ObjectMgr.h in LFGHandler (fixes nonPCH-compiles)
--HG--
branch : trunk
2010-09-06 11:39:32 +02:00
silinoron
c8f872da49 May as well make sure of no SQL errors for spells, too.
--HG--
branch : trunk
2010-09-05 16:45:18 -07:00
silinoron
66cc9a5d67 Fix a typo in race and faction transfers - reported by 0xFuture
Fixes issue #3844
Fix a SQL collision in race and faction transfers - reported by Aokromes

--HG--
branch : trunk
2010-09-05 16:34:38 -07:00
Spp
b80e1b4b5b Core/Dungeon Finder: Minor cleanups
--HG--
branch : trunk
2010-09-05 21:29:52 +02:00
Spp
9e4dd760ba Code/Dungeon Finder: Move some packets from Mgr to Handler
--HG--
branch : trunk
2010-09-04 18:20:10 +02:00
silinoron
be7d94f24e Add support for character race and faction transfers.
Based (loosely) on patch by Ner'zhul, DarkXuan, and darkshines@sakha.net.
Fixes issue #3429.

--HG--
branch : trunk
2010-09-05 13:12:24 -07:00
silinoron
2dae023649 Core/[Mail, WorldPacket]: Pull mail packet handlers out of Mail.cpp into MailHandler.cpp
Core/ScriptSystem: Remove unneeded TODO.

--HG--
branch : trunk
2010-09-04 13:46:01 -07:00
silinoron
5179d3149a Core/Game: Fix remaining warnings on windows (and most likely almost all of the ones on *nix)
--HG--
branch : trunk
2010-09-03 21:55:57 -07:00
silinoron
1e1c596dda Core/WorldPacket: Fix the core spamming complaints about CMSG_QUEST_QUERY being sent post-logout
Core/Spells: A little bit of "cleanup"

--HG--
branch : trunk
2010-09-03 20:30:29 -07:00
Machiavelli
273679c5ba Core/DBLayer
- Store threadbundlemask internally per database pool and prevent direct access to config file post startup
- Fix threadbundlemask flag checking for ReactorRunnable, WorldRunnable
- Remove CLI threadbundlemask flag, CLI doesn´t need a seperate mysql connection nor thread
- Remove unused Character Database connection from WorldSocketMgr / ReactorRunnable
- Add proper LoginDatabase connection to RA Runnable (soon to be overhauled)

Note: still experimental and not tested for live use

--HG--
branch : trunk
2010-09-03 10:52:32 +02:00
Shauren
277f2674ac Core/Tickets: Fixed lag report db saving query
--HG--
branch : trunk
2010-09-03 09:58:26 +02:00
runningnak3d
a15c45808c Core/Build: Fix non-PCH compile for Linux (don't know about Windows)
--HG--
branch : trunk
2010-09-02 17:55:55 -06:00
Machiavelli
39027133e4 Fix Linux build
--HG--
branch : trunk
2010-09-03 00:04:14 +02:00
silinoron
80df469a38 Oooh, C++... How I love you.
--HG--
branch : trunk
2010-08-31 17:41:18 -07:00
Spp
b9e19572c4 Core: Fix more warnings (very few left under linux 32)
--HG--
branch : trunk
2010-08-31 11:39:51 +02:00
Spp
e252b8abe7 Core: Fix more warnings
--HG--
branch : trunk
2010-08-30 23:07:14 +02:00
Spp
405f312918 Core: Fix more warnings
--HG--
branch : trunk
2010-08-30 15:25:15 +02:00
silinoron
08205afcc9 Rewrite much of the GM ticket system
* Extract storage and manipulation of tickets to TicketMgr (from ObjectMgr)
* Extract ticket commands to TicketCommands.cpp
* Adds support for sending GM responses and GM surveys.
* Fix structure of several ticket-related packets.
* Add support for understanding lag reports.
* Thanks Zor for some of the packet structures, and Cyrax for some sniffs
* Please report any issues encountered via the tracker.

--HG--
branch : trunk
2010-08-29 20:28:14 -07:00
Liberate
9bd804dece Updates the arena rating system to use Matchmaker Rating.
The arena_team_stats sql in this commit sets all ratings to 0.
You start with 0 Team Rating and 1500 Matchmaker Rating.
Personal rating is moved to character_arena_stats, and will not reset when disbanding an arena team.
This new system is based on all the info I could get, but Blizzard didn't leak much info about the new system.
At least this system is really close to the official system.
Any issues found should be reported in an issue.
Huge thanks go to Aokromes for the intensive testing he has done with me.
Also thanks to Parzival for hearing me out and giving his ideas.
Fixes issue #3189

--HG--
branch : trunk
2010-08-27 18:18:26 +02:00
azazel
e3c2bdb722 Core/Cleanup: move repeating code for locale strings retrieval into separate method. Related code cleanup.
--HG--
branch : trunk
2010-08-27 00:57:49 +06:00
azazel
5fa14f58dc Core/Cleanup:
* move repeating code into separate method for storing locale strings in ObjectMgr (copy/paste sucks, you know)
* fix 'signed/unsigned' warnings (at least in VS)
* fix some other warnings and cleanup relative code

--HG--
branch : trunk
2010-08-26 15:54:56 +06:00
Machiavelli
bb5f7b6492 More async queries in stable master opcode handlers instead of blocking queries
Please report any issues that pop up.

--HG--
branch : trunk
2010-08-25 21:03:28 +02:00
Shocker
91ebad0016 * Add support for quest 1393 (Galen's Escape), original code by przemratajczak, port by McBitter, closes issue 3463
* Fix typo in AuctionHouseHandler, thanks GriffonHeart, fixes issue 3609
* Forgotten thanks

--HG--
branch : trunk
2010-08-25 21:23:28 +03:00
Machiavelli
e8a7a53bfa Fix crash added in 9c655c11b7
--HG--
branch : trunk
2010-08-25 19:12:53 +02:00
Spp
89d87339d5 Core: Update Player Limit and Player Security Level variables
- Allowed Security Level will be set at server load or with 'server plimit reset' command (before it was read each time someone tried to join)
- If Security Level is updated to a more restrictive value all people under that level will be autokicked

--HG--
branch : trunk
2010-08-24 19:09:41 +02:00
Machiavelli
119e057810 I love you HG
--HG--
branch : trunk
2010-08-24 19:05:59 +02:00
Machiavelli
4185bb3181 DBLayer:
- Implement QueryCallback_2 template for ACE_Future callbacks using 2 parameters for the callback function
- Make MSG_LIST_STABLED_PETS´s handler use async query instead of blocking query

--HG--
branch : trunk
2010-08-24 19:04:25 +02:00
Spp
33f1c597a0 Remove trailing spaces in Dungeon Finder files
--HG--
branch : trunk
2010-08-24 10:32:53 +02:00
silinoron
85e72c9132 Only send LANG_NOT_ENOUGH_GOLD notification during trade if the trader does not have enough money...
Thanks 0xFuture.
Fixes issue #3587
Update THANKS file...

--HG--
branch : trunk
2010-08-23 21:41:29 -07:00
Shocker
5e92a8e55a Fix accessories for vehicle player mounts (the vendors on Traveler's Tundra Mammoth for example)
--HG--
branch : trunk
2010-08-24 07:19:29 +03:00
silinoron
8649bee17f Replace World::getConfig with World::getFloatConfig, World::getIntConfig, and World::getBoolConfig.
Also fix a warning from a previous commit.

--HG--
branch : trunk
2010-08-23 19:56:47 -07:00
silinoron
e581feb551 Pets should inherit owner's hostility status for the purposes of target checking
Based on patch by Toni.Shocker
Fixes issue #3552

--HG--
branch : trunk
2010-08-23 14:46:10 -07:00
azazel
caa3a58213 Core:
* add Player::HasEnoughMoney methods to check, whether player has specified amount of money and use new methods where applicable
* fix some signed/unsigned warnings and some typos

--HG--
branch : trunk
2010-08-23 22:58:32 +06:00