Commit graph

292 commits

Author SHA1 Message Date
VladimirMangos
7c3ab4b453 Move auction related code from ObjectMgr to AuctionHouseMgr. 2009-02-12 04:50:29 +03:00
VladimirMangos
5a4358dda9 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
* Use in functions and fields BattlegroundTypeId type instead uint32
* Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
  Many bg have same raw values for type id and queue id but some can be affected by this bug:
  BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
* Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
* Remobe redundent for header itself includes for BG headers.
* Use Auction location enum instead raw valus.
2009-02-08 11:05:11 +03:00
zhenya
c5f20ff9a9 [7248] Check battlemaster_entry data at loading. Code cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-08 04:22:46 +03:00
VladimirMangos
e83be70aca [7220] Check creature spells data at server startup. 2009-02-02 18:11:00 +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
VladimirMangos
a1b5c3cb02 Cleanup code for UNIT_FIELD_BYTES_1 parts.
Move defines to Unit (values can be used with creatures)
Better gameobject barber chairs check at loading.
2009-01-31 05:55:10 +03:00
VladimirMangos
339c7f05f1 [7201] Prevent use 0 guid for pets and only odd guids for vehicles. 2009-01-30 05:12:08 +03:00
VladimirMangos
737600a665 [7166] Make reserved name check case-insensitive.
Original patch provided by jpmythic.
2009-01-25 02:38:08 +03:00
begemot
9bede601a2 [7151] Startup log cleanup and beautification.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-23 04:29:35 +03:00
VladimirMangos
100801b713 [7147] Check creature template type/family at server startup. 2009-01-23 01:28:05 +03:00
VladimirMangos
3afd542de2 [7143] Avoid selection quest taxi nodes for taxi master map.
Preper at loading more stricted taxi nodes mask for normal taxi network
with excliuded quest only nodes (used from spells with SPELL_EFFECT_SEND_TAXI.
Use prepered mask at search nearest to taxi master taxi node.
2009-01-22 05:14:26 +03:00
Energy
f26d6151c8 [7141] Implement heroic raid instance mode support.
* Heroic mode player amount for instances in DB. Can be used for any instances but added for heroic raid instance.
* Output transfer error at max playrs limit.
* FIXME notes ;) for raid required implementing store 2 reset time and do global reset for 2 modes. But currently raid have inmmap entry data
same reset time for both cases.
* Update instances list where mounts allowed.
* Simplify and fix code for SMSG_RAID_INSTANCE_INFO.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 03:27:59 +03:00
GriffonHeart
d9d30fd40e [7135] Implement support for single taxi master with different path for teams.
Side effect: quest taxi flights (without mount id provided) will impossible start from normal taxi master.
But for its expected starting from scripts.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-21 17:50:21 +03:00
VladimirMangos
ed14e59de4 Fixed typo in log output and misc code cleanups. 2009-01-16 18:11:58 +03:00
DiSlord
014ab283dd [7092] Work vs XP per level data
Add new table "player_xp_for_level" for this
Fill table data 1-79 level
Remove old code

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-16 01:00:41 +03:00
VladimirMangos
c0824b35c6 Fix item Unk0 field type as expected signed and related log output.
Also restore item class check at server loading but not subclass check. Problems only with subclass check case.
2009-01-15 03:08:25 +03:00
VladimirMangos
c7a5537bac [7087] Use signed type as expected for item material field. This also fix -1 value output for it.
Also disable Class/Subclass item_template check by dbc data for avoid unexpected log spam (dbc have some wrong values for this fields).
2009-01-15 00:12:48 +03:00
VladimirMangos
950df723d7 [7083] Implement support for cast-spells in trainer lists for riding also. 2009-01-14 02:41:19 +03:00
VladimirMangos
d3615532b5 [7081] Fix comments in recent added code. 2009-01-14 00:33:03 +03:00
VladimirMangos
d53b43024a [7080] More item_template data checks at loading.
Not all checks can be 100% correct result possible. Plerase, report proved wrong output and this checks part will disabled.
2009-01-14 00:29:32 +03:00
VladimirMangos
5b50e2f9e8 [7077] Implement support castable trainer spells for profession ranks. 2009-01-13 21:09:43 +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
dc19fc4ca3 [7040] Move achievment rewards dat to new DB table. Implement sending item rewards by mail.
Support localization string fields for new table.
Move achievments related code and data from ObjectMgr to new AcievmentGlobalMgr.
2009-01-06 16:21:22 +03:00
VladimirMangos
dbc228370c [7021] Not check allowed class/race for items with inventory type INVTYPE_NON_EQUIP that can't be used from inventory. 2009-01-04 19:56:20 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
ee505ec9da [7015] Implement support -1 in item_template.stackable and item_template.maxcount fields.
Also disable incorrect used vanity pets/currences/quest items special slotes. All items in its will be send by mail to characters at re-login.
Fixed code for item stacks operations with size > 255.
2009-01-03 19:19:53 +03:00
arrai
88208bc9a7 [7010] Teleport players to the entrance of instances if they are in reset ones at login 2009-01-03 01:10:31 +01:00
VladimirMangos
bd4fc1b0ae [7005] Request Area/Zone Ids using 3D coordinates.
.map files not have 3D specifci area infor. So use hack way for update areaflag for some cases (areas 4281, 4342)
where exist area dependent auras.
2009-01-02 19:30:43 +03:00
hunuza
70c7dda068 [6959] Merge some queries on item load.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-28 00:38:38 +01:00
begemot
128f808858 [6925] Correctly show loaded 100% for empty playercreateinfo_item.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-22 12:47:35 +03:00
freghar
d75812749f [6922] Whitespace and newline fixes
This should fix the GCC "no newline at end of file" warnings.

Signed-off-by: freghar <compmancz@gmail.com>
2008-12-22 12:47:33 +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
a5331ab517 [6910] Implemented rewritten arenas. Original author w12x@getmangos.com
Many thanks also to:
  Balrok@github.com for long time updating.
  Triply@github.com for great work in rewriting process.
  All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
VladimirMangos
35f54d365d Replace hardcoded client(100) and server side (255) level limtation values by defines.
(cherry picked from commit 389a1784e288f11587067d3a6d4b70cce9214cb9)

Conflicts:

	src/game/Player.cpp
	src/game/World.cpp
	src/shared/Database/DBCStructure.h
2008-12-14 23:52:32 +03:00
VladimirMangos
c798318b7b Replace hardcoded client(100) and server side (255) level limtation values by defines. 2008-12-14 22:18:52 +03:00
Neo2003
3b753b830b Allow creature equipments to use item.dbc entries since it's enough
This will no more allow custom items to be equiped by creatures.
Btw, since it uses client data to display them, it would not work.

Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
2008-12-12 20:26:27 +01:00
tomrus88
5d4d7292b9 Merge branch 'master' into 303
Conflicts:
	src/game/Player.h
2008-12-12 18:14:49 +03:00
Wyk3d
d8be07eabc [6902] Fixed a bug in GetScriptId related to missing script names. 2008-12-12 15:47:16 +02: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
tomrus88
ef69f6b80c Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/shared/revision_nr.h
2008-12-09 00:32:47 +03:00
balrok
2e08a63da7 [6884] Replaced iterator++ with ++iterator in for-loop-headers
i used this script
for i in ls *.[ch]*; do cat $i | sed -r 's/(.*for.*iterator.*;\
    *)([a-z0-9\_\*]+)\ *\+\+(.*)/\1++\2\3/' > /tmp/mangos/$i; done
for i in ls *.[ch]*; do cp /tmp/mangos/$i $i; done

and rechecked it with my eyes, if everything is right
i took only for-loops cause they can be gathered easier with a script

Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-07 19:49:45 +01:00
tomrus88
518d7f6297 Merge branch 'master' into 303 2008-12-01 08:21:10 +03:00
VladimirMangos
d6b8b1fa13 [6870] Not output error message at loading empty db_script_string table. 2008-11-30 22:25:13 +03:00
tomrus88
ee7f7a0a08 Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/mangosd/mangosd.conf.dist.in
2008-11-30 14:05:56 +03:00
arrai
8cb9e2becb [6857] Fixed crash in ObjectMgr::CheckScripts 2008-11-28 21:05:05 +01:00
tomrus88
93cf13acec Merge branch 'master' into 303
Conflicts:
	src/shared/Database/DBCStores.cpp
	src/shared/Database/DBCfmt.cpp
2008-11-28 07:20:02 +03:00
VladimirMangos
9fc7dd9ead [6853] [2008_11_27_01_mangos_playercreateinfo_item.sql] Use DBC data for creating initial character items.
Thanks to WCell team for DBC structure research.
`playercreateinfo_item` content removed from mangos.sql and table can be used now only for custom additional initial items.
2008-11-28 02:20:02 +03:00
tomrus88
af6acab8f8 Merge branch 'master' into 303
Conflicts:
	src/game/Creature.cpp
2008-11-26 19:44:03 +03:00
VladimirMangos
4ccfa1e71e [6848] Implement possibility creating gm log per account files using new option in mangosd.conf. Releated cleanups. 2008-11-24 22:44:29 +03:00
tomrus88
6224f95fd5 Merge branch 'master' into 303
Conflicts:
	src/game/ObjectMgr.cpp
2008-11-22 17:23:44 +03:00