Commit graph

47 commits

Author SHA1 Message Date
Triply
38fa6b241c [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>
2009-08-21 09:42:21 +02:00
VladimirMangos
ab38b58b12 [8398] Restore proper line-ends in touched sql files. 2009-08-21 03:05:21 +04:00
NoFantasy
9fdfd9f487 [8397] Remove no longer needed ranks of spell 7386.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-21 00:49:27 +02:00
ApoC
6d9448dd7f [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>
2009-08-09 11:00:37 +02:00
VladimirMangos
131978c529 [8104] Always (except 2 cases) for tables in characters DB InnoDB and utf8. 2009-07-01 14:31:42 +04:00
VladimirMangos
1baec77845 [8098] Support uint32 spell ids in code.
* 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.
2009-06-30 11:25:32 +04:00
hunuza
8a32a19bad [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.

Signed-off-by: hunuza <hunuza@gmail.com>
2009-06-23 17:51:48 +02:00
VladimirMangos
7024862b82 [8030] Fixed spell 64901 work and related target selection code refactoring.
* 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.
2009-06-17 01:05:41 +04:00
VladimirMangos
7677a61c6f [7994] Include in mangos.sql/characters.sql changes from sql/updates/7988_*.sql
Also fix old typos in item_template data in mangos.sql
2009-06-11 20:20:56 +04:00
VladimirMangos
f7fd6961c1 [7988] Merge branch '310' - Switch to support client version 3.1.3
Thanks to TOM_RUS for most work to make this switch possible ;)
2009-06-10 21:18:24 +04:00
VladimirMangos
7d6bf1fdbf [7932] Store in DB only spell part of pet action bar, set other to default state (reaction saved). 2009-06-01 04:44:02 +04:00
VladimirMangos
0614a9eb75 [7903] Load and save for pets only talents. Not store unused (in fact) free talent point amount.
* 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.
2009-05-28 03:36:28 +04:00
VladimirMangos
c56ef09fa3 [7887] Drop pet spell teaching code, including field in character_pet. 2009-05-24 07:20:13 +04:00
Sephiroth1983
2bf4660129 [7884] DB cleanup from obsolete 28734 spell.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-23 23:21:00 +02:00
VladimirMangos
fffaec6d71 [7802] Use more appropriate field types in character_achievement* tables. Better check data at loading. 2009-05-08 19:45:04 +04:00
VladimirMangos
263bf2ab22 [7644] Fixed pet slot values using in pet save.
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.
2009-04-10 09:02:04 +04:00
Triply
b09df0aade [7546] Revert [7544] correcty move uptime table to Realm database, use realmid column.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-26 17:58:44 +01:00
invliD
68ec6ae8ab Moved table uptime from world database to character database.
Signed-off-by: Triply <triply@getmangos.com>
2009-03-26 16:23:57 +01:00
Sephiroth1983
2046aee715 [7324] Spells deleted from characters in 3.0.2+
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-22 05:48:55 +03:00
Zerg2000
03fd67aaf5 [7314] Not set GR_RIGHT_WITHDRAW_GOLD_LOCK flag for guild masters, remove in DB.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-21 10:08:01 +03:00
VladimirMangos
1ff51c5326 [7307] Add primary key for table arena_team_member. 2009-02-20 00:31:36 +03:00
VladimirMangos
50b6bfd7f1 [7267] Drop auctionhouse.location. 2009-02-12 04:54:15 +03:00
GriffonHeart
75121a5823 [7255] Allows saving characters in Battle Grounds.
* Now player can join to BG after logout during 5 minutes, if BG in progress.
* All players after server crash or restart should appear at the battlemaster

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-09 16:15:29 +03:00
VladimirMangos
3c38b4d3e6 [7251] Replace wrong spell 52375 by 47541 in spell chain data.
Also remove new and old spell from character's spellbook.
It will added anyway at login as dependent (initial known spell)
2009-02-08 11:18:13 +03:00
VladimirMangos
aa24bd836e [7207] Phase system development continue for DB/in_game objects
* Store phase mask for creatures/gameobjects/corpse in DB
* Propertly set phase for summoned creatures/gameobjects/pets/corpses/spell related dynobjects
* Select proper phase for spawned creature/gameobjects and save it in DB

TODO: in game commands.
2009-01-31 06:11:50 +03:00
Alex
edfeb6597d [7198] SQL update will fix problems with charges old pre-3.0.3 summon spells for pets/companions/etc.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-29 00:19:26 +03:00
VladimirMangos
9fba64aeae [7113] Not update/store achievement progress for counter == 0 2009-01-19 13:30:18 +03:00
Snow
bd30c12169 [7100] More cleanups for character_spell from outdated data.
Signed-off-by: Neo2003 <Neo2003@getmangos.com>
2009-01-18 01:51:45 +03:00
VladimirMangos
5b50e2f9e8 [7077] Implement support castable trainer spells for profession ranks. 2009-01-13 21:09:43 +03:00
VladimirMangos
aff0fa1489 [7075] Remove outdated original spells from character_spell. Update spell_learn_spell for one from original spells. 2009-01-13 01:02:22 +03:00
VladimirMangos
f956a3bf10 [7067] Move inactive form/stance passive spells from playercreateinfo_spell to spell_learn_spell with active field.
This let have in `playercreateinfo_spell` only expected at character creating spells for simplify updating.
2009-01-11 02:09:03 +03:00
VladimirMangos
e1a4ad241d [7059] Drop spell slot fields as unused for characters and pets.
Also temporary fix spell slot setting in 7047_01_characters_character_spell.sql
2009-01-09 22:31:06 +03:00
DiSlord
5f894bf422 Fix prev commit 2009-01-07 21:48:32 +03:00
Wyk3d
75b1db8cd0 [6976] Changed the db_version fields in realmd and characters databases to revision number format 2008-12-29 22:19:15 +02:00
VladimirMangos
353b3c7d27 Prepare sql updates for merge.
This sql updates including chaarcter convertion queries:
  2008_12_22_18_characters_characters.sql
  2008_12_22_19_characters_item_instance.sql
2008-12-22 16:53:30 +03:00
tomrus88
71b1065c8b Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Chat.h
	src/game/Player.h
	src/game/World.h
	src/game/debugcmds.cpp
2008-12-16 07:30:23 +03:00
ApoC
d43bd7efe9 Added missing alters to db_version.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 02:20:45 +01:00
ApoC
8ffb28a174 Added missing changes from arena patch.
Renumbered texts to be continuous.

Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 02:03:23 +01:00
tomrus88
053d60a3f7 Added wotlk sql updates to mangos.sql 2008-12-15 11:25:21 +03:00
KAPATEJIb
480a935216 [6888] Add to character.sql not added changes from 2008_11_12_01_character_character_aura.sql
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-08 11:39:18 +03:00
hunuza
d44b1bc81b Add missing part of last commit.
Update makefile and characters required_* field.

Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-03 17:55:14 +01:00
hunuza
8f355d8e3a [6872] Make guid key in guild_member table unique.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-03 17:47:08 +01:00
arrai
5905aec683 [6819] [2008_11_12_01_character_character_aura.sql] Fixed storing stacked auras 2008-11-12 22:23:17 +01:00
VladimirMangos
d5b713e9c0 [6804] [sql/updates/2008_11_07_03_characters_guild_bank_tab.sql sql/updates/2008_11_07_04_realmd_account.sql] Not use varchar(L) with L > 255 for compatibility with mysql version < 5.0.3. 2008-11-08 06:05:46 +03:00
VladimirMangos
7e10e20810 [6803] [sql/updates/2008_11_07_01_characters_character_db_version.sql sql/updates/2008_11_07_02_realmd_realmd_db_version.sql] Implement characters/realmd DB version requiremnts checks support.
Note: each DB (mangos/charactes/realmd) have independent checks for version.
Also fixed required_* field name in mangos DB. It need updated with each sql update applied to related DB.
2008-11-08 05:07:45 +03:00
vladimir-mangos
606f5c0f6a * [2008_10_18_01_characters_characters.sql] Rename field characters.gmstate to extra_flags base at new stored value meaning. Testing also new sql updates naming scheme. 2008-10-18 05:25:59 +04:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00