Commit Graph

773 Commits

Author SHA1 Message Date
Tuxity 9fc75cffc9 Core/Stats:
- Update dodge base, parry cap and dodge cap values to cataclysm.
- Remove useless function since defense skill was remove in 4.0.1
2012-08-15 01:19:48 +02:00
Tuxity 9818406555 Core/Stats: Feral attack power doesn't exist since 4.0.1 2012-08-15 00:48:30 +02:00
Nay c0adf370e5 Core/Vendors: Add currencies to vendors
npc_vendor table gets a new field, type (1 is item, 2 is currency)
for type 1 fields still mean the same, for type 2 maxcount is buycount (without any "precision")

changed structure of SMSG_UPDATE_CURRENCY(_WEEK_LIMIT) but not enabled, wrong values are being wrongly calculated
2012-08-14 18:11:06 +01:00
Shauren e761458b24 Core/Taxi: Updated taxi mask building 2012-08-14 15:29:43 +02:00
Nay a768bba3c6 Core: Add enum for currency flags, update MAX_VENDOR_ITEMS and fix build 2012-08-14 02:56:45 +01:00
kiper 12ad39c43c Fix code style. 2012-08-14 02:08:29 +02:00
kiper cf30a0aaaf Core/Player: Now players will able to equip all types of relics when meet requirements from items and have relic skill. 2012-08-14 01:59:20 +02:00
Sovak 45e0cae7be Core/Totems: In cata totem items are no longer needed
Signed-off-by: Sovak <Sovak007@gmail.com>
2012-08-14 00:17:06 +02:00
Subv 5cc8bc200b Core/Entities: Updated rage to Cataclysm 2012-08-12 17:49:06 -05:00
Subv 24b1a27985 Core/Entities: Fixed block for Cataclysm 2012-08-12 15:46:02 -05:00
Nay 706f3fa7d7 Merge pull request #7346 from cyberbrest/pull11
[434][Object] Fix Freezes at loading chars and at teleportation (and by transport too;))
2012-08-12 09:10:38 -07:00
Subv d5694f520b Core/PacketIO: Enabled one more opcode 2012-08-10 19:20:20 -05:00
cyberbrest fcbc45ec23 [Object]: at teleportaion transform orientation to 0-2pi range. As we cat set bad orientation to plr by transport teleportation or bad db data.
+ additionally check orientation at loading, for priventing loading bad orientation (Fix Freeze at loading in some cases)
2012-08-11 00:36:05 +03:00
Nay 274a54c152 Core: Cleanup whitespace, fix build and enable 1 opcode 2012-08-10 16:58:39 +01:00
kaelima 878f88b250 Core/PacketIO:
- Enable a bunch of spline packets.
- Correct emblems written in SMSG_GUILD_INVITE
- Revert changes in GuildCommandType and add more errors to GuildCommandError
- Rename Powers to match names in Lua code from client
2012-08-10 14:25:04 +02:00
Nay 260782f316 Core/ChatAddon: Implement server side addon communication filtering 2012-08-10 02:01:25 +01:00
Subv ab771aef1f Core/PacketIO: Fixed a few more opcodes 2012-08-09 19:18:31 -05:00
Nay 4d465f78da Core: Add missing FlushBits and fix some typos (/slap subv) 2012-08-09 12:57:55 +01:00
Subv 0434d3ab69 Core/PacketIO: Enabled/Fixed more opcodes 2012-08-08 21:01:33 -05:00
Nay 10c9c55700 Core/Quests: Fix and enable all quest related opcodes 2012-08-09 00:58:04 +01:00
Nay 7249992e28 DB: Rename characters' void_storage to character_void_storage
Core: Fix build (/slap subv)
Also proper names for sql files
2012-08-08 03:42:48 +01:00
Subv cb5b85d9e0 Core/PacketIO: Enabled/Fixed more opcodes 2012-08-07 19:54:42 -05:00
Subv 46cf08684d Core/PacketIO: Fixed and enabled SMSG_ITEM_REFUND_RESULT 2012-08-07 18:24:10 -05:00
Subv d82266bc0e Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts:
	src/server/authserver/Server/AuthSocket.cpp
	src/server/game/Achievements/AchievementMgr.cpp
	src/server/game/Chat/Chat.h
	src/server/game/Chat/Commands/Level1.cpp
	src/server/game/Chat/Commands/Level2.cpp
	src/server/game/Chat/Commands/Level3.cpp
	src/server/game/DataStores/DBCStores.cpp
	src/server/game/DataStores/DBCStructure.h
	src/server/game/Entities/Object/Object.cpp
	src/server/game/Entities/Object/Updates/UpdateData.cpp
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Globals/ObjectMgr.cpp
	src/server/game/Guilds/Guild.cpp
	src/server/game/Guilds/GuildMgr.cpp
	src/server/game/Handlers/AuctionHouseHandler.cpp
	src/server/game/Handlers/CharacterHandler.cpp
	src/server/game/Handlers/ChatHandler.cpp
	src/server/game/Handlers/GroupHandler.cpp
	src/server/game/Handlers/ItemHandler.cpp
	src/server/game/Handlers/MailHandler.cpp
	src/server/game/Handlers/MiscHandler.cpp
	src/server/game/Handlers/MovementHandler.cpp
	src/server/game/Handlers/PetHandler.cpp
	src/server/game/Handlers/QuestHandler.cpp
	src/server/game/Handlers/VehicleHandler.cpp
	src/server/game/Server/WorldSession.cpp
	src/server/game/Server/WorldSocket.cpp
	src/server/game/Spells/Auras/SpellAuraEffects.cpp
	src/server/game/Spells/SpellEffects.cpp
	src/server/game/Spells/SpellMgr.cpp
	src/server/game/World/World.cpp
	src/server/scripts/Commands/cs_debug.cpp
	src/server/scripts/Commands/cs_modify.cpp
	src/server/scripts/Commands/cs_reload.cpp
	src/server/scripts/Kalimdor/azuremyst_isle.cpp
	src/server/shared/Logging/Log.cpp
	src/server/shared/Logging/Log.h
	src/server/worldserver/worldserver.conf.dist
2012-08-07 13:44:22 -05:00
Nay 16035a9eff Core/PacketIO: Enable many verified opcode handlers 2012-08-07 17:10:13 +01:00
Shauren f8cd39b2ed Core/Players: Improved alcohol handling, weeeeeeeeeeeeeeeee
Closes #7293
2012-08-07 17:45:10 +02:00
Shauren 7770c82097 Core/Items: Finished reforging (mostly by subv) 2012-08-06 23:00:57 +02:00
Shauren a83c2ca60a Core/Movement: Added another researched spline flag 2012-08-06 17:42:12 +02:00
Subv 89482323b7 Protocol/PacketIO: Enabled more opcodes 2012-08-06 10:03:01 -05:00
Spp 97c4b92eb0 Core/Logging: Try to simplify configuration of loggers and appenders
Changed multiple lines to a simple format:
- Logger.name=Type,LogLevel,Flags,AppenderList
- Appender.name=Type,LogLevel,Flags,optional1,optional2
  * Type = File: optional1 = File name, optiona2 = Mode
  * Type = Console: optional1 = Colors

Created a default set of loggers and appenders.
- Root logger defaults to Error, that means you will see nothing on console by default (not even loading)
- You need to add the loggers to Loggers options if you want to enable them, otherwise Root logger will be used for all types

Restored outSQLDriver (LOG_FILTER_SQL_DRIVER), outSQLDev (LOG_FILTER_SQL_DEV), outArena (LOG_FILTER_ARENA) and outChar (LOG_FILTER_CHARACTER) functionality by creating new types (LOG_FILTER_CHARACTER is a rename of LOG_FILTER_DELETE.

Note: You need to update your config file... again (yeah sorry... trying to make it simpler)
2012-08-06 12:10:33 +02:00
Subv 8b8fa24fec Core/PacketIO: Enabled another bunch of opcodes and made some misc fixes here and there 2012-08-05 21:52:36 -05:00
Subv 1928964443 Core/Items: Implemented SOCKET_COLOR_COGWHEEL.
Codestyle/Misc: Renamed recv_data to recvData
2012-08-05 19:40:30 -05:00
Nay c7c714eb38 Merge pull request #7267 from cyberbrest/pull5
[434][Item] remove support KeyRing Slots and CurrencyTokenSlots.
2012-08-04 11:40:42 -07:00
kaelima f5d19939bf Core/Guilds: Implemented some guild packets, some basic guild functions is working, though most are still WIP/TODO 2012-08-04 18:41:18 +02:00
Subv d9da2e8e50 Core/Player: Use DBC data to set the correct amount of hp and mana based on player level and class 2012-08-04 11:33:49 -05:00
Nay 5518daa74b Core/Chat: Send addon prefix in addon messages
Correct structure of some CMSG_MESSAGECHAT_ADDON_x opcodes
Fix a compile error in HandleReforgeItemOpcode
2012-08-04 15:58:09 +01:00
Nay 48db4b2b7d Core/PacketIO: Fix and enable SMSG_MESSAGECHAT
TODO: 	- Send addon prefix in this packet when language is Addon
	- Cleanup uses of SMSG_MESSAGECHAT (17 different "handlers" for it is not okay) (long term)
	- Missing a CMSG_MESSAGECHAT_ADDON_x or two
2012-08-04 01:39:18 +01:00
Nay f9a0821b2b Core/PacketIO: Correct a value sent in BuildPlayerChat (just for the sake of being correct, no noticeable changes) 2012-08-03 22:50:02 +01:00
cyberbrest b2f42fef44 [Item] remove support KeyRing Slots and CurrencyTokenSlots.
ToDo: on rewarding currency items no need create item, just set curency count.
2012-08-03 22:24:09 +03:00
Spp 55ce180f28 Core/Logging: Add Asyncronous logging with Loggers ("What to log") and Appenders ("Where to log") system. Will allow to select to full log some parts of core while others are not even logged.
- Logging System is asyncronous to improve performance.
- Each msg and Logger has a Log Type and Log Level assigned. Each msg is assigned the Logger of same Log Type or "root" Logger is selected if there is no Logger configured for the given Log Type
- Loggers have a list of Appenders to send the msg to. The Msg in the Logger is not sent to Appenders if the msg LogLevel is lower than Logger LogLevel.
- There are three (at the moment) types of Appenders: Console, File or DB (this is WIP, not working ATM). Msg is not written to the resource if msg LogLevel is lower than Appender LogLevel.
- Appender and Console Log levels can be changed while server is active with command '.set loglevel (a/l) name level'

Explanation of use with Sample config:

Appender.Console.Type=1       (1 = Console)
Appender.Console.Level=2      (2 = Debug)

Appender.Server.Type=2        (2 = File)
Appender.Server.Level=3       (3 = Info)
Appender.Server.File=Server.log

Appender.SQL.Type=2           (2 = File)
Appender.SQL.Level=1          (1 = Trace)
Appender.SQL.File=sql.log

Appenders=Console Server      (NOTE: SQL has not been included here... that will make core ignore the config for "SQL" as it's not in this list)

Logger.root.Type=0            (0 = Default - if it's not created by config, server will create it with LogLevel = DISABLED)
Logger.root.Level=5           (5 = Error)
Logger.root.Appenders=Console

Logger.SQL.Type=26            (26 = SQL)
Logger.SQL.Level=3            (2 = Debug)
Logger.SQL.Appenders=Console Server SQL

Logger.SomeRandomName.Type=24 (24 = Guild)
Logger.SomeRandomName.Level=5 (5 = Error)
Loggers=root SQL SomeRandomName

* At loading Appender SQL will be ignored, as it's not present on "Appenders"

* sLog->outDebug(LOG_FILTER_GUILD, "Some log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomName is found but it's LogLevel = 5 and Msg LogLevel=2... Msg is not logged

* sLog->outError(LOG_FILTER_GUILD, "Some error log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomeName is found with proper LogLevel but Logger does not have any Appenders assigned to that logger... Msg is not logged

* sLog->outDebug(LOG_FILTER_SQL, "Some msg related to SQLs")
  - Msg is sent to Logger SQL (matches type), as it matches LogLevel the msg is sent to Appenders Console, Server and SQL
    - Appender Console has lower Log Level: Msg is logged to Console
    - Appender Server has higher Log Level: Msg is not logged to file
    - Appender SQL has lower Log Level: Msg is logged to file sql.log

* sLog->outDebug(LOG_FILTER_BATTLEGROUND, "Some msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). As Logger has higher LogLevel msg is not sent to any appender

* sLog->outError(LOG_FILTER_BATTLEGROUND, "Some error msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). Msg has lower LogLevel and is sent to Appender Console
    - Appender Console has lower LogLevel: Msg is logged to Console
2012-08-03 14:20:18 +02:00
Shauren 69bbe1fded Core/Items: Added loading and saving transmogrification. 2012-08-01 14:31:09 +02:00
Nay ce1391840f Core/VS: Finally fix item swapping, correct a file name 2012-07-30 21:51:21 +01:00
Nay 940f655a3c Core/VS: Allow to store/retrive random stats items in void storage
Also set items to soulbound on withdraw
2012-07-30 18:34:39 +01:00
Nay 3df10d8273 Core/DBLayer: Fix a typo in void_storage table name 2012-07-30 16:41:48 +01:00
Nay c24de2c6d8 Core: Implement Void Storage 2012-07-30 16:39:46 +01:00
stfx bb9b98098e Fix sending wrong world states in Shattrath 2012-07-25 11:50:34 +03:00
Nay 6dd20770af Core/Misc: Few more missed chances related to money
Expect more commits like this :/
2012-07-24 15:47:47 +01:00
Nay 0f04b2fc36 Core/Misc: Update money to 64 bits (from 32), increasing the maximum gold possible
This got a bit messy and will be further fixed when all related packets are updated.
(Also fixed a typo in atoll msvc macro)
2012-07-24 15:27:42 +01:00
Shauren fc453ab623 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4 2012-07-23 00:13:13 +02:00
Shauren 1fd37ac61b Core/Object: Use updatefield flags extracted from client to determine whether to send or not a field value instead of sending all data to client for non-player objects 2012-07-22 14:20:26 +02:00