Commit graph

29 commits

Author SHA1 Message Date
VladimirMangos
cf5c1c45d6 [10026] PDump code fixes and cleanups
* At pdump creating will propertly saved NULL field values.
* At pdump loading will skipped adding `character_declinedname`
  if name in some way will be changed (explicly or at loading)
2010-06-03 17:11:58 +04:00
VladimirMangos
15dd77873e [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
DasBlub
492ce567d2 [9767] Add the posibility to keep deleted characters in the database for a while and also add related commands.
Added commands:
* .character deleted list [$guid|$name]
* .character deleted restore $guid|$name [$newname]
* .character deleted delete $guid|$name
* .character deleted old [$keepdays]

Command .character delete renamed to .character erase

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-20 22:12:50 +04:00
VladimirMangos
052f02209a [9718] Use proper index for character_pet_declinedname in pdump code. 2010-04-10 07:50:28 +04:00
VladimirMangos
d2ca4a9196 [9703] Include in pdumps more tables.
* character_account_data and then will partly included macros/settings local for character.
			 Mostyl used account wide macros not included.
* character_declinedname
* character_equipmentsets
* character_glyphs
* character_pet_declinedname
2010-04-09 06:04:02 +04:00
Splinter
7a0cb930eb [9698] Fixed .pdump work after 'data' drop.
Also add `character_talent` including to pdump

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also drop save `item_text` as not used in items/mails now after switch to 3.3.3
2010-04-08 22:27:15 +04:00
tomrus88
086e9fa1ce Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/Player.cpp
	src/game/PlayerDump.cpp
2010-03-13 00:54:13 +03:00
VladimirMangos
c4f3578226 [9571] Create and use ObjectGuidGenerator/IdGenerator template classes.
* This is let finally hide guid structure in ObjectGuid.h/.cpp code.
* Shared related code.

NOTE: while switch to use new clasess one more problem has been detected
with not-safe code in .pdump work for future per-map multi-threading.
It's need rewrited before will possible safe use in like case.
For current single world thread case it's safe.
2010-03-11 16:32:09 +03:00
tomrus88
393d46f9f6 Updated to latest PTR build. 2010-03-10 20:21:18 +03:00
AlexDereka
4338c9105d [9324] Fix some gcc warnings 2010-02-08 02:27:34 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
VladimirMangos
d48ce8b717 [8896] Include character_skills table in pdump and drop at character delete. 2009-11-30 15:09:23 +03:00
VladimirMangos
a7cd0f8f44 [8895] Use NULL-terminator instead table count in pdump code.
Also rename function to avoid use same name with type.
2009-11-30 15:01:25 +03:00
XTZGZoReX
0734adb746 [8789] Rename several singleton macros to use more consistent names.
* objmgr -> sObjectMgr
 * spellmgr -> sSpellMgr
 * WaypointMgr -> sWaypointMgr
 * poolhandler -> sPoolMgr
 * objaccessor -> sObjectAccessor
 * mapmgr -> sMapMgr
 * sInstanceSaveManager -> sInstanceSaveMgr
 * ticketmgr -> sTicketMgr
 * CreatureEAI_Mgr -> sEventAIMgr
 * auctionmgr -> sAuctionMgr
 * achievementmgr -> sAchievementMgr
2009-11-08 12:11:34 +01:00
hunuza
ba6494162f [8305] Fixed item loading from pdumps.
This resolve problems with marking all items as readble.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-04 13:19:32 +04:00
freghar
cd17ada2e5 [8221] Removed trailing whitespaces
With excluded dep/ - as usual.

Signed-off-by: freghar <compmancz@gmail.com>
2009-07-20 17:53:14 +02:00
VladimirMangos
104158d93d [8157] Fixes and some tables support finish for pleays pdumps.
* Restore mark character with duplicate for rename at login
* Restore save mail item_text data
* Finish implementaion for propertly load item_text data.
2009-07-10 06:39:38 +04:00
VladimirMangos
715470a898 [8126] Improvemets in player/pet/charter name checks.
* Implement new config options for minimal player/pet/charter name length (2 by default)
* Better error reporting at problems in names.
* Add check from max pet/charter name length (same as for player names at client side)
2009-07-05 20:30:33 +04:00
VladimirMangos
c3c7187841 [7935] Move seldom used access to query data by field names to independent object.
This let not do preparation code for unused later functionlity.
2009-06-01 10:24:14 +04:00
zhenya
8144f30199 [7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
AlexDereka
14b49d1fd6 [7725] Fixed memory leak in PlayerDumpWriter. 2009-04-27 20:54:52 +04:00
VladimirMangos
82b0ff8b5d [7687] Batter player dumps protection from not proper use.
* Prevent direct apply player dumps to DB
* Check expected character DB structure (revision) before apply.
2009-04-19 16:02:15 +04:00
Splash
1ebf1a5ba4 [7665] Include achievement data to pdumps.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-14 01:04:19 +04:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
hunuza
0f12997ef1 [6899] Pass const reference instead of value for some strings in some functions.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-12 14:17:37 +01:00
VladimirMangos
1e9464ea73 [6839] Restore expected storing in guid/id counters first free guid/id.n all cases Prevent use uninitilized values for some id types. 2008-11-19 06:40:54 +03:00
VladimirMangos
0c9f783ddc [sql/updates/2008_10_23_01_mangos_command.sql sql/updates/2008_10_23_02_mangos_mangos_string.sql] Better 'pdump' commands args checking and related error output. 2008-10-23 06:07:03 +04:00
VladimirMangos
b10349a737 [sql/updates/2008_10_22_02_mangos_mangos_string.sql] Allow use in console .event/.reload/.lookup/.list (some)/.guild (some) subcommands. 2008-10-23 03:07:22 +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