Commit Graph

98 Commits

Author SHA1 Message Date
p0wer
ee40f67b6f Missed changes from last commit. Sorry bout that.
--HG--
branch : trunk
2010-02-23 21:18:09 -06:00
Brian
486c00891b * Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.

--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
teacher
65705a16c1 Updated world.sql and characters.sql.
Removed commented code form realm.sql and set account.expansion field default value to 2 (wotlk) (thx Aokromes).
Properly set default values for some world DB fields.
Properly set some world DB fields to allow Database import in strict mode (by Brian).
Updated world_script_full with recent committed npc script.
Renamed a couple of files with proper revision number.
Note: no DB data will changed nor harmed by this commit.

--HG--
branch : trunk
2010-02-01 18:52:42 +01:00
XTZGZoReX
48b085124e * Add basic AddonMgr.
* All this really does at the moment is save addon names + CRCs to DB for use for.. whatever, later.

--HG--
branch : trunk
2010-01-20 16:24:52 +01:00
QAston
8e9d2cdf01 Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
  * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
  * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
  * Aura data is shared for all units which have AuraApplication of the Aura
   * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
  * Remove spell source and AreaAuraEffect classes
  * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
  * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
  * AreaAura updates are done in owner _UpdateSpells cycle
  * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
  * And you can access area aura target list
  * Add basic support for aura amount recalculation
  * Save recalculation state and base amount of auras to db
  * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
  * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
  * Sort aura effect handlers in SpellAuras.cpp and .h by their use
  * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
  * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
  * Send aura application client update only once per unit update - prevent unnecesary packet spam
 * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
 * Fix memory leak at player creation (not deleted auras)
 * Updated some naming conventions (too many to mention)
 * Added Unit::GetAuraOfRankedSpell() function
 * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
 * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
 * Implement AURA_INTERRUPT_FLAG_LANDING
 * Implement EffectPlayerNotification (thanks to Spp)
 * Remove wrong aura 304 handler
 * Add better handler for death runes
 * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
 * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
 * Add many assert() procection from idiots using some functions in wrong way
 * I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please

--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
n0n4m3
bb2ddadae9 Added missing sql updates
--HG--
branch : trunk
2009-12-18 07:06:53 +01:00
n0n4m3
4ef64a65e5 Added sql updates 3.1.3-3.2.2a
--HG--
branch : trunk
2009-12-17 15:49:28 +01:00
Kudlaty
379cbb72af Mangos merge: [8874] Extract player skills from data blob. #526
Converted by Azazel.

--HG--
branch : trunk
2009-12-14 20:47:43 +01:00
maximius
b257a28fa9 *Cleanup, fix many cases of unoptimized loops, potential crashes, excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on..
*Proper Maexxna Web Spray locations (old locations sent players flying into the air)

--HG--
branch : trunk
2009-11-01 17:53:07 -08:00
Chaz Brown
7a7cd10933 Clean up some sqls to make sure they all have at least one newline at the end (part of the coding standard) helps stop errors when sqls are batched together.... Also, add a missing Delete query to one sql.
--HG--
branch : trunk
2009-09-02 20:38:18 -04:00
megamage
dc68c2b269 [8433] Implement proper store and use character specific account data.
* Base at TOM_RUS reseach save/load character specific account data in new table `character_account_data`
    * Move its in sql update from `account_data` to new table.
    * For client packets that can be send in loggined state or just after logout but assocualted
      with recently logout character add new login status STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT
    * Store low guid for loggedin player or recently logout into WorldSession.

Author: VladimirMangos, TOM_RUS

--HG--
branch : trunk
2009-09-01 16:47:49 -05:00
megamage
4a1a82c5e2 [8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
Signed-off-by: Triply <triply@getmangos.com>

--HG--
branch : trunk
2009-08-24 20:25:32 -05:00
megamage
6e8009446d [8402] Optimalized guild_eventlog and guild_bank_eventlog loading from database.
Added config options to set count of eventlog records stored in DB.
    Attached SQL files will DROP existing and create new tables. Make sure you create backup (if you need old data).
    Renamed few variables in Guild class.
    Signed-off-by: Triply <triply@getmangos.com>

*Note: existing guild bank log will be removed.

--HG--
branch : trunk
2009-08-24 19:23:31 -05:00
megamage
8871c2952a *Some better check of well-fed buff. Source: Mangos
--HG--
branch : trunk
2009-08-24 19:12:22 -05:00
Chaz Brown
1a5da75838 AHBot - Fix maxstack DB option to correctly set stacks to a random choice between 1 and the maxstack setting of the item, instead of 1. - Thanks T`lexii for pointing this out
--HG--
branch : trunk
2009-08-18 00:06:11 -04:00
Machiavelli
977e655e2a Channel system update:
* Fix bug that player does not have moderator priveliges when ownership was passed on to him after previous owner left the channel.
* Comment out code + alter DB field that are responsible for storing ownerGUID in the database, making it no longer possible for an ex-owner to instantly regain ownership by rejoining the channel as this is not blizzlike.
The code is commented out in case someone wants to make a configurable option out of it.
* Cleanup some other code in affected files.

--HG--
branch : trunk
2009-08-17 22:06:37 +02:00
maximius
2fd68eab44 *Add Dual Spec support, original by EnderGT, thanks to Thyros and XTElite1 for helping me test :)
--HG--
branch : trunk
2009-08-14 17:24:52 -07:00
megamage
4f4775a31b [8339] Improved storing/restoring BG entry point
* Introduced new table character_battleground_data
    * Entry point is now stored on BG enter event not join event
    * Entry point for dungeons is now correctly set to nearest graveyard
      (this prevent well known assert in GetInstance because of porting to already destroyed instance)
    * Teleporting from BG correctly restore mount state
    * Teleporting from BG correctly restore taxi flight
      (in multipath flight you will end up in nearest transition point on the route)

    Signed-off-by: ApoC <apoc@nymfe.net>

--HG--
branch : trunk
2009-08-12 20:27:00 -05:00
Chaz Brown
a2c2bad94b Add config options for filters, add some, delete some, change others. Make sure you update your trinitycore.conf
--HG--
branch : trunk
2009-08-08 02:08:20 -04:00
Anubisss
a00473d795 *Add table channels to characters.sql
--HG--
branch : trunk
2009-07-21 21:16:30 +02:00
megamage
9385a01a38 [8104] Always (except 2 cases) for tables in characters DB InnoDB and utf8. Author: VladimirMangos
--HG--
branch : trunk
2009-07-01 18:37:45 -05:00
megamage
e1d93bd00f *Backup your DB!
[8098] Support uint32 spell ids in code. Author: VladimirMangos

    * Propertly work with uint32 spell ids in player action bar
    * Fix in same time bug with not save equipment set button with id==0
    * Merge misc field in character_action and playercreateinfo_action to action field as 3 byte
    * Propertly load uint32 spell ids from character_spell
    * Fixed types for some pet/creature related structure for spell id storing.

--HG--
branch : trunk
2009-07-01 18:07:20 -05:00
megamage
d9ec2d2196 [8072] First step to get rid of data blob.
Adds new fields gender, level, xp, money, playerBytes, playerBytes2 and playerFlags to characters table.

    The update will not work if your database contains characters with an old data field (not fitting to the actual client version).

    It's recommended to backup your character database before applying this patch.

--HG--
branch : trunk
2009-06-27 17:39:51 -05:00
QAston
ad91c6b1e2 [8052] Fixed typo in error log output. Author: The_Game_Master
[8049] Added energize effect after last heal tick for 33763 and ranks. Author: bobaz
[8053] At character talents reset using chat command also reset talents
for all character pets. Author: VladimirMangos

--HG--
branch : trunk
2009-06-23 13:05:15 +02:00
megamage
e0553121f2 *Merge
--HG--
branch : trunk
2009-06-18 20:26:49 -05:00
hunteee
491bc7569b *Add new line to end of sqls.
--HG--
branch : trunk
2009-06-18 20:10:59 +02:00
hunteee
c6c1284eb0 *Second part of previous commit.
--HG--
branch : trunk
2009-06-18 19:31:55 +02:00
megamage
a2f10c496f [8030] Fixed spell 64901 work and related target selection code refactoring. Author: VladimirMangos
* Replace 64904 by 64901 in spellbook and action bars.
    * Implement proper max mana percent buff
    * Implement proper target selection.
    * Move group/raid targets seelction code to functions for reuse code.

--HG--
branch : trunk
2009-06-17 18:35:40 -05:00
megamage
5f9cc4138b [7994] Include in mangos.sql/characters.sql changes from sql/updates/7988_*.sql Author: VladimirMangos
Also fix old typos in item_template data in mangos.sql

--HG--
branch : trunk
2009-06-11 19:48:53 -05:00
Chaz Brown
6be9e51035 Forgotten changes in characters.sql
--HG--
branch : trunk
2009-06-11 06:29:35 -04:00
Chaz Brown
6c069aa5b8 Forgotten changes in characters.sql
--HG--
branch : trunk
2009-06-11 06:29:05 -04:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
Chaz Brown
8f41a7b86f Add forgotten sql changes for 3791
--HG--
branch : trunk
2009-06-05 21:15:17 -04:00
Chaz Brown
715f410fb7 Fix AHBot to calculate the deposit for auctions so it can be used to check the code for figuring deposit amount on a wide range of items. Fix ahbotoptions command so it works from the server console again. change commented out lines in GetAuctionDeposit so they display in debug loglevel. Min/Max Time settings replaced with a function that selects 12 24 and 48 randomly as the auction times. Backport from TC2
--HG--
branch : trunk
2009-06-05 21:12:12 -04:00
megamage
4e31ec051d [7932] Store in DB only spell part of pet action bar, set other to default state (reaction saved). Author: VladimirMangos
--HG--
branch : trunk
2009-06-01 21:49:42 -05:00
megamage
cfa2e223c0 [7903] Load and save for pets only talents. Not store unused (in fact) free talent point amount. Author: VladimirMangos
* Other pet spell types auto-learned at level setup/load.
    * Code will cleanup pet_spell table from non-talents spell if detect any at load.
    * Free talents points recalculated at loading and levelup so store its in DB useless.

    Note: bug with not highlighting learned pet talents (except first line) until learn one more talent not fixed.

--HG--
branch : trunk
2009-05-28 18:22:54 -05:00
Kudlaty
d32ddea085 Update characters.sql
--HG--
branch : trunk
2009-05-25 13:28:34 +02:00
megamage
09b386a786 [7886] Drop use table petcreateinfo_spell
This is first commit in chain for remove oudated and not used pet functionality.

    * Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets)
    * Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures)
    * Fixed bug with not removing from action bar spell icon for not ranked unlearned spells.

    Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template.

[7887] Drop pet spell teaching code, including field in character_pet.

Author: VladimirMangos

--HG--
branch : trunk
2009-05-24 12:16:12 -05:00
Chaz Brown
67cf05ca73 Add forgotten column in characters.sql
--HG--
branch : trunk
2009-05-11 08:32:50 -04:00
megamage
ff8d1cf55c [7802] Use more appropriate field types in character_achievement* tables. Better check data at loading. Author: VladimirMangos
--HG--
branch : trunk
2009-05-08 19:22:17 -05:00
Chaz Brown
f4b96f0347 fix more forgotten changes in full characters.sql
--HG--
branch : trunk
2009-05-04 16:46:57 -04:00
Chaz Brown
1119991420 fix more typos in full characters.sql
--HG--
branch : trunk
2009-05-04 12:39:40 -04:00
Chaz Brown
8ade78cf69 fix typo in full characters.sql
--HG--
branch : trunk
2009-05-04 12:18:03 -04:00
Chaz Brown
9e46994506 Fix characters.sql bad merge leftovers
--HG--
branch : trunk
2009-04-21 02:09:52 -04:00
megamage
4d277430c5 [7644] Fixed pet slot values using in pet save. Author: VladimirMangos
Problem exist from client version switch when stable slot amount changed.
    In result this has been source problems with stable use (3-4 slots) and possible pet lost in some cases
    or "not save state" for summoned pets.
    Use enums to avoid repeating problem, use more safe value for not-in-slot save (for summoned pets)
    Fixed data preparing for MSG_LIST_STABLED_PETS.

--HG--
branch : trunk
2009-04-10 18:18:44 -05:00
Chaz Brown
aa6347538a Fix typo in characters.sql - Spotted by Tux
--HG--
branch : trunk
2009-04-10 07:02:34 -04:00
megamage
74d553bc4c *Merge.
--HG--
branch : trunk
2009-04-08 12:28:41 -05:00
Chaz Brown
756e14518f Fix several errors in characters.sql world.sql realmd.sql and world_scripts_structure.sql
--HG--
branch : trunk
2009-04-07 03:00:23 -04:00
Chaz Brown
81e2f4ab89 Fix typo in characters.sql
--HG--
branch : trunk
2009-04-07 02:53:48 -04:00
Chaz Brown
24cd89ea9a Add missing column stackcount to full characters.sql
--HG--
branch : trunk
2009-04-06 01:36:11 -04:00