Commit graph

69 commits

Author SHA1 Message Date
VladimirMangos
f145e06e89 [9375] Now really correct sql update with content 2010-02-14 15:24:05 +03:00
hunuza
77dc9d0582 [9374] Fxies for prev. commit.
NOTE: DON'T APPLY prev commit version sql update

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-02-14 15:09:36 +03:00
hunuza
282e0fd8aa Add possibility for second glyph set.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-14 12:26:47 +01:00
EnderGT
230bc2b49e [9359] Load/save current active spec and total spec count.
Still needed for complete dual spec:
* support for second glyph set
* implement gossip options
* support for second talent set

Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-11 20:53:15 +01:00
hunuza
0f7f7c5ada [9354] Add spell efffects for dual spec.
Actual dual spec still not implemented.

Credits to EnderGT for original patch.

Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-10 20:54:45 +01:00
hunuza
acf507fd5a [9349] Add posssibility for one action button set per talent spec. 2010-02-10 18:00:30 +01:00
VladimirMangos
c9c578b5c3 [9339] Use group ids for indexing groups in DB
* Use group ids in DB
* Pack used group ids at server startup
* Finaly drop group search by leader guid.
2010-02-09 14:36:20 +03:00
VladimirMangos
f444a6b9db [9250] Fixed my typo in 9246_01_characters_character.sql
And provide sql update for case if old sql update version already applied.
It's no-op for case when used new sql update version.
2010-01-24 18:50:15 +03:00
hunuza
aa14f45e60 [9246] Move more values from data to own fields.
Now possible (need recheck) glyphs still used form `data`.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-24 17:03:54 +03:00
VladimirMangos
dc643371c8 [9136] Merge branch '330' - Switch to support client version 3.3.0A
You need extract new dbc.

Also recommended extract new map/vmaps.

And apply ofc sql updates that including character convertion.

Special thanks to TOM_RUS for continue work at next client versions support :)
2010-01-10 07:29:44 +03:00
hunuza
4a6da1ad32 [8874] Extract player skills from data blob.
Thanks to vladimir for the update query.

Please make sure to make BACKUPs before you update your database.

The update might take a while depending on the size of your database.

Signed-off-by: hunuza <hunuza@gmail.com>
2009-11-25 18:22:22 +01:00
Splinter
487a8de692 [8843] Drop support removed in 3.2.x spells 31892, 53720.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-20 13:19:41 +03:00
VladimirMangos
37ba6623bb [8828] Independent instance reset time for different difficulties.
* Store reset time for map/difficulty pairs.
* Use DBC data for reset time and max players instead `instance_template` fields (dropped)
  for each existed map/difficulty pair.
* Fix some "heroic" related checks in spells/etc.
2009-11-18 10:08:41 +03:00
leak
455a053b3d [8721] Allow guildmaster to withdraw money before first bank tab is purchased.
Attached sql file needs to be run to repair existing structure.

Signed-off-by: unknown <Jakub@.(none)>
2009-10-24 09:25:44 +02:00
balrok
69abc9ece4 [8702] removed startup-error for creature_loot_template id=0
for alterac valley we've defined Player-loot inside creature_loot_template
with id=0
this hack is used, so that we won't need to create an extra table
player_loot_template for just one case

if later more player-loot will be needed, we should implement
new table and remove this

also added sql-fix for reputation of last commit
it will just fix those which are hated by faction 729/730
2009-10-21 23:32:45 +02:00
balrok
dc382abdf5 [8596] fixed query from last commit
now i also know what the error caused
old sql made "alter table `characters`.`bugreport`"
but my database wasn't supposed to be called "characters"
and the other db had an index defined over the type-field
2009-10-07 01:00:42 +02:00
VladimirMangos
1d9a142237 [8591] Add switch sql update changes into mangos.sql/characters.sql 2009-10-07 00:59:15 +04:00
VladimirMangos
f37f27d3c2 [8589] Merge branch '320' - Switch to support client version 3.2.2A
You need extract new dbc/map/vmaps for correct work.
And apply ofc sql updates that including character convertion.

Special thanks to TOM_RUS for prepering this switch :)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-06 12:59:26 +04:00
NoFantasy
744c6eaac0 [8505] Set character spell 16857 active.
Applies to some characters upgraded from 2.x.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-16 11:05:42 +02:00
The_Game_Master
bf7c15a5a6 [8469] Fix possible garbage in character_spell after [8416]
Removed in sql update spell not expected to be listed in character_spell
long before [8416] as dependent, but reported as partly listed. So do cleanup.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-05 04:36:04 +04:00
VladimirMangos
5cf72882ad [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.
2009-08-29 11:26:57 +04:00
Triply
efa24ced49 [8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:13:09 +02:00
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