Commit Graph

123 Commits

Author SHA1 Message Date
teacher
8a60550d9d Added missing sql data to fulls.
Proper renaming and reformatting for some sql files.
Removed not-core-related data. You can find it in the usual place: http://trinitydatabase.org/index.php?/forum/122-core-related-db-content/

--HG--
branch : trunk
2010-05-12 20:18:04 +02:00
Spp
d6df19cd99 Add GUID to groups
--HG--
branch : trunk
2010-05-08 01:58:47 +02:00
Trazom62
eee3ebe6d6 Fix raid groups load from DB and save to DB.
Fixes issue #299.

- In table GROUPS, since rev 7841, isRaid is used to store the groupType. The DB was not updated. this is now fixed.
- Fix isRaid set to 1 when group converted to raid (shall be the groupType).
- Fix isRaidGroup check as groupType is now a set of flags.
- Fix dungeon/raid check when difficulty change.

--HG--
branch : trunk
2010-05-05 12:40:52 +02:00
click
123d40dcfe * Add some more transactioncontrol to pet database handling + adjust character_aura keys to avoid duplicates
--HG--
branch : trunk
2010-04-21 20:34:04 +02:00
click
e79d50fa2d Reapply the previous "actionbars"-fix/handling db/coreside
Fixes issue #1669
Note: This issue has been a pain in the rear, as it was actually messing up
clients that ran a vanilla client without addons. The issue only comes
in to place when players load a SINGLE actionbar, and not selecting
"activate all bars". Extensive testing and debugging done to figure out
why this actually happened - I'll fricking shoot the next one messing
with it!

--HG--
branch : trunk
2010-04-16 02:14:21 +02:00
teacher
9b90c343e4 Changed worldstates.comment field to allow NULL values (by Spp).
Proper naming for recent sql files. Who was the fool to give me push access!?

--HG--
branch : trunk
2010-04-15 21:44:21 +02:00
teacher
c5f0e94966 Fixed my typo in characters.sql (thx Kaelima for whacking me)<2
--HG--
branch : trunk
2010-04-15 21:24:59 +02:00
teacher
34d8f5cbf9 Added worldstates values in characters.sql and re-dumped to prevent any issues.
The first time there was no insert statement in the sql update.

--HG--
branch : trunk
2010-04-15 21:14:24 +02:00
Spp
08785d63ab Fix bad use of worldstates table in last commit
--HG--
branch : trunk
2010-04-15 10:18:38 +02:00
n0n4m3
8abcca0a06 Another fix quest flags, Implement support weekly quests cooldowns(Original patch by GriffonHeart), also code cleanups.
--HG--
branch : trunk
2010-04-15 08:26:30 +04:00
Rat
c81451ebe5 *fix typo in characters.sql thanks to D3VIL
--HG--
branch : trunk
2010-04-14 21:46:44 +02:00
n0n4m3
a6af93c3d6 Create new table character_stats for external tools(website,etc). This table use only when player logout. Original code by hunuza.
--HG--
branch : trunk
2010-04-14 13:29:56 +04:00
n0n4m3
8b6005666d Add index for some tables in characters DB. by AlexDereka.
--HG--
branch : trunk
2010-04-14 13:02:05 +04:00
n0n4m3
e3e5ca6227 Drop not needed table 'item_text', add new column 'text' in table 'item_instance'. Original patch by Vladimir.
--HG--
branch : trunk
2010-04-14 12:43:42 +04:00
click
b5e9b5fa13 * Fix actionbars-issue with talent-based spells/actions disappearing
* Revert previous mess someone(tm) made with the "reinstating" actionBars -field (me!)

--HG--
branch : trunk
2010-04-13 18:35:00 +02:00
click
52ba3d3a96 Restore load/save shown actionbars, missing from 3.3.3 upgrade
Original SQL by hunuza/MaNGOS project

--HG--
branch : trunk
2010-04-12 14:04:08 +02:00
n0n4m3
c03240d79b Add sql for drop mail column 'itemtextid' and add new column 'body'.
--HG--
branch : trunk
2010-04-11 11:35:46 +04:00
n0n4m3
1dc4f7c745 Drop characters data blob. Bit thx to hunuza.
--HG--
branch : trunk
2010-04-11 11:00:02 +04:00
Spp
cd372966af * Add support to save and load worldstates.
will be mainly used by outdoorPvP system
* Update next arena auto distribute points time to custom worldstate

--HG--
branch : trunk
2010-03-26 16:48:33 +01:00
teacher
9d5049da94 Little sql improvement.
--HG--
branch : trunk
2010-03-19 14:21:21 +01:00
Machiavelli
35a7f4849e Store alternate currency spent on an item by Item ExtendedCost entry instead of honorPts/arenaPts/items seperately. Thanks to Opterman for the idea.
--HG--
branch : trunk
2010-03-18 22:56:48 +01:00
Machiavelli
ce51f24ff3 Change field crc in characters.addons to int(32) to support proper values.
--HG--
branch : trunk
2010-03-15 13:24:45 +01:00
Machiavelli
24ab54f213 Small update to the group/party system.
- Fixes raid assistant privileges, Fixes issue #248
- Proper designation for Main tank and Main assistant roles
- Remove 2 redundant columns in DB, namely groups.mainTank and groups.mainAssist. These are now defined by the value of group_member.memberFlags

--HG--
branch : trunk
2010-03-09 20:33:59 +01:00
Brian
2278f6ac45 * Add change to characters.sql from last commit
--HG--
branch : trunk
2010-03-02 20:21:17 -07:00
Brian
74ccd57597 * Move some values out of the data blob in the characters table
* (honor, kills, title, currencies, watched faction, drunken-status, health and power)
* Original Author Hunuza - thank you
* Ported to Trinity by RammboNr5 - thank you
* Tested by Aokromes - thank you
* Closes Issue #911

--HG--
branch : trunk
2010-03-02 10:12:47 -07:00
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